connecting to database

Status
Not open for further replies.

Daiphron

New Member
Messages
25
Reaction score
0
Points
0
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
 

Xemnas

New Member
Messages
812
Reaction score
0
Points
0
Corey hasn't started maintenance on Cossacks yet, so for the moment you'd still be using mysql.x10hosting.com. I wouldn't change it though, since the maintenance on Stoli will probably be finished in the next couple of days.
 
Status
Not open for further replies.
Top