Results 1 to 2 of 2

Thread: Connect to a remote mysql database server

  1. #1

    Connect to a remote mysql database server

    Hi guyz,

    I've been googling on this for 2 days already, but still can't figure it out. I want to connect to my remote database server hosted for my website using my local mysql command line client. I want to query records on my tables. Now, i did this:

    Code:
    mysql> GRANT ALL ON mydb.* TO 'user'@'123.123.123.123' IDENTIFIED BY 'password';
    Query was ok.

    Now, i don't really know if that's the first step. The next thing i did was to connect mysql to my host, i did this:

    Code:
    c:\mysql\bin\mysql -u user -p -h 123.123.123.123
    I got this error:
    ERROR 1045 (2800): Access denied for user 'user'@'123.123.123.123' (using password: Yes)

    Do i have to contact my hosting company with regards to this issue?

    Please help me on this. THank you. Sorry for my english.

    P.S. : The real thing about this is i'll be going to create a standalone application on my local computer doing queries from my remote database.

  2. #2
    You need to contact the host to ask if they allow remote access. If they do then you will probably need to whitelist your IP address. If they don't allow it then you can't

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012