This section describes how to setup direct connection to your MySQL server.
Store Manager for OpenCart requires direct MySQL database connection. Most of hosting companies allow direct connections to MySQL database.
To configure direct connection to your remote database, follow few steps:
1. Open Tools -> Preferences -> Database Connection Tab
2. Enable Direct connection to remote database checkbox
3. Specify the following Remote (Direct) Database Connection Settings:
$glob['dbhost'] = 'servername.com';
If any is defined here (like 'http://www.servername.com'), you should use the one (servername.com).
If it is defined as 'localhost', it means you should use your store name.
$glob['dbdatabase'] = 'remote_database_name'; //your database name is defined here
$glob['dbpassword'] = 'password'; //your password is defined here
$glob['dbusername'] = 'username'; //your User Name (login) is defined here
You may type database name manually or use 'Select Database' button to see the list of available databases and select the one you need from the drop-down.
Tip: Use the Test Connection button to verify if all settings are correct and connection to your remote database is possible.
4. Click OK to save this entry, close Preferences and to connect to your database, or click cancel to discard this entry.
If you're unable to connect to the remote database, here are few key items to check.
If you got such message as:Please see our troubleshooter at support.emagicone.com under Troubleshooter >> Configure Database Connection to get a step-by-step assistance.
(where 'user' is your username and '184.108.40.206' is your IP) you have to add your IP address to the Access List and allow direct MySQL connections. Please see an article to find out how to add your IP to the Access List.
1. Quick Start Guide >