MDDHosting Forums: What is address or name of MDD's MySQL server? - MDDHosting Forums
Page 1 of 1
What is address or name of MDD's MySQL server?
#1
Posted 30 November 2011 - 09:47 PM
I'm using php to connect to my MySQL database, and I need to know what the address of the database server is.
With 1&1 I had:
$server = "db1437.perfora.net";
in my php code.
So, please, what is the equivalent $server for MDDHosting?
With 1&1 I had:
$server = "db1437.perfora.net";
in my php code.
So, please, what is the equivalent $server for MDDHosting?
#2
Posted 30 November 2011 - 09:55 PM
Since the MySQL and web server run on the same machine, you can just put in "localhost" for the server address.
#3
Posted 30 November 2011 - 11:03 PM
Point of interest for those who are interested,
localhostis correct as well as
127.0.0.1(the default loopback address for all servers). Your domain name or the servers host name can also be used, but is not recommended as it will cause issues if your account is ever moved to another server, or in the event of an unexpected DNS change.
█ Scott S. - MDDHosting, LLC - Professional Hosting Solutions
█ LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
█ Incremental R1Soft CDP Backups on all services!
█ http://www.mddhosting.com/ - Follow us on Twitter! @MDDHosting
█ LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
█ Incremental R1Soft CDP Backups on all services!
█ http://www.mddhosting.com/ - Follow us on Twitter! @MDDHosting
#4
Posted 13 December 2011 - 01:07 PM
Scott S, on 30 November 2011 - 11:03 PM, said:
Point of interest for those who are interested,
localhostis correct as well as
127.0.0.1(the default loopback address for all servers). Your domain name or the servers host name can also be used, but is not recommended as it will cause issues if your account is ever moved to another server, or in the event of an unexpected DNS change.
I'm trying out an external auto backup solution (backupmachine.com). This requires an IP Address. I've tried that associated with my site (173.248.188.177), along with the database credentials, but it always fails authentication.
Any idea how I give it access?
Regards,
Mark
#5
Posted 13 December 2011 - 01:40 PM
There is an option in cPanel to allow external hosts to connect to your MySQL server. Click the link for "Remote MySQL" and add the hostname or IP address of the computer that's going to be performing your backups.
#6
Posted 13 December 2011 - 01:45 PM
kuemerle5, on 13 December 2011 - 01:40 PM, said:
There is an option in cPanel to allow external hosts to connect to your MySQL server. Click the link for "Remote MySQL" and add the hostname or IP address of the computer that's going to be performing your backups.
That did the trick
Thanks very much for the quick reply.
Mark
Share this topic:
Page 1 of 1

Help













