Migrating from localhost MySQL to our dedicated server.

If you're moving to our new dedicated MySQL5 server, there are a few changes you'll need to make to your php configuration to tell your php script how to connect to the new database.

 Most php apps include a config.php file - the name may vary somewhat so refer to your documenation for your application to find out where your configuration file is located.  If you've been hosted on our shared server, your config file contains lines that probably look something like this:

$sqlHost="localhost";
$sqlUserLogin="yourdomainhere";
$sqlPassword="yourpasswordhere";
$sqlName="yourdomainhere";

 

Since the database you're using is not located now on the same server as your web files, you need to tell the php application to look for your database on our new server - db.macdock.com.  Your configuration should be updated to look like this:

$sqlHost="db.macdock.com";
$sqlUserLogin="yourdomainhere";
$sqlPassword="yourpasswordhere";
$sqlName="yourdomainhere";

  • 293 Users Found This Useful
Was this answer helpful?

Related Articles

PHP Help

MacDock runs PHP5, allowing you to take advantage of a number of freeware, shareware and...