- Joined
- Apr 7, 2012
- Messages
- 312
- Reaction score
- 121
I have a Web Host and a dedicated server. when people register i need it to go to the mysql database on the server and not the web host. If that is right, would the code look something like this?
And the config.php would look like this?
And i would be putting these files on the WEB HOST's server.
If not, then can someone point me in the right direction?
Code:
$mysqlhost = "DEDICATED SERVER IP"; //Put your MySQL IP/URL here. (Usually localhost or 127.0.0.1)
$mysqluser = "root"; //Put your MySQL username here.
$mysqlpass = "pass"; //Put your MySQL password here.
$mysqldb = "wm"; //Put your MySQL database name here.
And the config.php would look like this?
Code:
<?
$DBHost = "DEDICATED SERVER IP"; // localhost or your IP
$DBUser = "root"; // Database user
$DBPassword = "pass"; // Database password
$DBName = "wm"; // Database name
?>
And i would be putting these files on the WEB HOST's server.
If not, then can someone point me in the right direction?