MDDHosting Forums: What is address or name of MDD's MySQL server? - MDDHosting Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

What is address or name of MDD's MySQL server?

#1 User is offline   Yone 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 30-November 11

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?

0

#2 User is offline   kuemerle5 

  • Member
  • PipPip
  • Group: Clients
  • Posts: 70
  • Joined: 18-October 09
  • Gender:Male

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.
0

#3 User is offline   Scott S 

  • MDDHosting Staff
  • PipPip
  • Group: Staff Administrator
  • Posts: 139
  • Joined: 24-February 09
  • Gender:Male
  • Location:GMT-8:00

Posted 30 November 2011 - 11:03 PM

Point of interest for those who are interested,
localhost
is 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
0

#4 User is offline   Psionmark 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 13-December 11

Posted 13 December 2011 - 01:07 PM

View PostScott S, on 30 November 2011 - 11:03 PM, said:

Point of interest for those who are interested,
localhost
is 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
0

#5 User is offline   kuemerle5 

  • Member
  • PipPip
  • Group: Clients
  • Posts: 70
  • Joined: 18-October 09
  • Gender:Male

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.
0

#6 User is offline   Psionmark 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 13-December 11

Posted 13 December 2011 - 01:45 PM

View Postkuemerle5, 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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users