I am trying to get my SQL database to work, use Invision Board to connect to it, having restored the database from a backup. It cannot find the database even though the username, password database name are all correct. I used a SQL test file and this is the output.
</span><blockquote><span class="smallfont">Quote:</span><hr size="1" />Originally Posted by
Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/html/stuff/mysqltest.php on line 2
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/html/stuff/mysqltest.php on line 2
Could not connect
<hr size="1" /></blockquote><span class='postcolor'>
This is the output from Invision Board:
</span><blockquote><span class="smallfont">Quote:</span><hr size="1" />Originally Posted by
Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/html/forums/sources/Drivers/mySQL.php on line 66
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/html/forums/sources/Drivers/mySQL.php on line 66
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /var/www/html/forums/sources/Drivers/mySQL.php on line 73
ERROR: Cannot find database flanderz_net_-_forums
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /var/www/html/forums/sources/Drivers/mySQL.php on line 106
<hr size="1" /></blockquote><span class='postcolor'>
Any suggestions? I have sent an email to my hosts but they have yet to get back to me. Is it my end or theirs?
|