Knowledge Base/E-Commerce/Database

How do I connect to the MySQL database?

Above Media Support Team
posted this on February 05, 2010 02:32 pm

There are two ways you can connect to your database.

1.) You can login to your control panel at https://www.abovemls.com:8443 and click on “Databases”.  Click on your database and then click "DB WebAdmin".

2.) You can use PHP to connect to your database using the following:

// connect to the database
$dbh = mysql_connect('db.abovemedia.com', 'yourusername', 'yourpassword');
mysql_select_db('yourdatabasename');