MySQL Connection Problems?

software development

#1

Hello, whenever I try to create register and login scripts for my website, I get the error message

“Warning: mysql_connect() [function.mysql-connect]: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /home/.reebok/penguins442/vibrai.com/login2.php on line 7
cannot connect”

How do I fix this? I thought I had everything set up correctly. Thanks!

PS- My website is www.vibrai.com if that helps.


#2

Can you give me your code snapshot ? Check out this wiki first. Hope it helps ! :slight_smile:

Dino

Get YOUR $97 off on yearly plan with [color=#CC0000]YOUGET97 [/color] promo code. Sign Up NOW