hypernetware — 2010-09-23T08:59:40-04:00 — #1
I have a host running cpanel, and I have phpmyadmin. How do I connect to mysql remotely?
I would have a few websites tapped into one database... probably in a read only mode.
Please point me in the right direction.
elgumbo — 2010-09-24T05:44:16-04:00 — #2
No problem. Glad it help.
elgumbo — 2010-09-23T09:49:52-04:00 — #3
I do this on a few sites.
In cPanel there is a section called: Manage Remote MySQL Access. You want to add the IP address of the site(s) that will be acessing the database.
On the site that is accessing the data you want to replace "localhost" in the DB connection string with the actual site address eg: "mysqlsite.com".
I would also set up a unique user for each site and only give them the permissions they need.
hypernetware — 2010-09-23T22:01:19-04:00 — #4
Oh and one more thing.... if you are on a VPS you may need to get your host to open up the firewall that protects your mysql server.
hypernetware — 2010-09-23T21:05:54-04:00 — #5
You have saved me countless hours of downloading sql and moving it around site by site.