[Solved] Can't connect to local MySQL server ...
Posted: Thu Aug 21, 2008 11:09 am
Hello,
So the background is I've moved from my dev box to a hosting server. Details on the hosting server are:
CMS Made Simple Version 1.2.3.
PHP Version 4.4.7
Apache/1.3.37 (Unix)
MySql Version 4.1.15
Dev box details are in my sig if anybody should want them.
I've followed the moving server steps in the wiki to a T. Now when I visit the site I get the following error:
I've copied up the install folder to see if that would work and it does but fails at the db step, returning error message: Could not connect to the database. Verify that username and password are correct, and that the user has access to the given database.
PHP is working as I've included a test.php file to return phpinfo() at the root and it works fine. I'm coming from Windows so the *nix stuff is all new to me. Anybody got any suggestions as to how I should troubleshoot this problem?
thanks in advance.
So the background is I've moved from my dev box to a hosting server. Details on the hosting server are:
CMS Made Simple Version 1.2.3.
PHP Version 4.4.7
Apache/1.3.37 (Unix)
MySql Version 4.1.15
Dev box details are in my sig if anybody should want them.
I've followed the moving server steps in the wiki to a T. Now when I visit the site I get the following error:
Database Connection Failed
Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (2002)
Function Performed: CONNECT
Host/DB: localhost/ dbname
Database Type: mysql
I've copied up the install folder to see if that would work and it does but fails at the db step, returning error message: Could not connect to the database. Verify that username and password are correct, and that the user has access to the given database.
PHP is working as I've included a test.php file to return phpinfo() at the root and it works fine. I'm coming from Windows so the *nix stuff is all new to me. Anybody got any suggestions as to how I should troubleshoot this problem?
thanks in advance.