i need help with connecting to mysql database from a local computer to my hosting account's database. I need this feature so that i can extract data from my remote server as the data comes in, i intend to write a php script which will reside on the local computer and if refreshed, updates the local database with fresh records from the server. I think i shud be doing this using My Domain IP or Hostname(www.com) instead of the usual Localhost but its just not working. and if there is a better way to accomplish this task, Pls let me know about it. Thanks, I will hang around for a while , hope to get response today.
Hello, You're using the good way, but you should first check if you allow the client to connect to the server. Also don't forget to open your TCP port. Some details: http://help.hardhathosting.com/question.php/87 Cheers ! Thibaut
you need to GRANT access to your DB. Go into your account admin panel and check there. You have to find your IP first, check to see if is behind a router or firewall, then set that IP in your panel.
The most often missed step in making a MySQL connection is installing the MySQL driver for ODBC on your local PC. You will need to setup a DSN on the server. Data Source Name. MySQL ODBC drivers allow you to connect to MySQL running on your Virtual Private Servers and import/export databases to and from your own PC. MySQL Connector/ODBC 3.51 Downloads http://dev.mysql.com/downloads/connector/odbc/ If using Access to connect to remote MySQL. http://www.gsp.com/support/virtual/mysql/odbc/