Hi need some assistance here im having an error connecting my database to the server online,the thing is it is working fine in localhost but when i uploaded it just wont work.. i already change the necessary string to match the server configuration online
from config.php this is in the localhost
<?php
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASSWORD', '');
define('DB_DATABASE', 'subscribe');
?>
to config.php thisis on the server
<?php
define('DB_HOST', 'localhost');
define('DB_USER', 'xxxx');
define('DB_PASSWORD', 'xxx');
define('DB_DATABASE', 'xxxx');
?>
but still having this error
Failed to connect to server: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
all suggestion are welcome thanks and if you want the complete code i can post it