Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.


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:

    mysql> GRANT ALL ON mydb.* TO 'user'@'' 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:

    c:\mysql\bin\mysql -u user -p -h
    I got this error:
    ERROR 1045 (2800): Access denied for user 'user'@'' (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


Copyright 1999 - 2012