I am trying to connect to my database using a php script. The crucial line is
$dbc = mysql_connect ('localhost', 'username', 'password')
where 'username' is the username I specified for the database and 'password' is the password I specified for that username. I get the error message
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in...
what am I doing wrong? I don't think there is anything wrong with the database anymore. It shows up in my database list and phpMyAdmin works fine as well.
Thanks
$dbc = mysql_connect ('localhost', 'username', 'password')
where 'username' is the username I specified for the database and 'password' is the password I specified for that username. I get the error message
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in...
what am I doing wrong? I don't think there is anything wrong with the database anymore. It shows up in my database list and phpMyAdmin works fine as well.
Thanks