Hi,
I'm am trying to connect to MySQL via PHP, but when I do i get an error. I think I should set up some socket?(Look at the output). But I don't now enough about it, maybe it's my ADSL or maybe it's the e-smith server I should do something whit?
This happens if I use the www url. e.x
www.my-site.comWarning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /home/e-smith/files/primary/html/index.php on line 11
Successfully connected to server
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /home/e-smith/files/primary/html/index.php on line 15
Warning: MySQL: A link to the server could not be established in /home/e-smith/files/primary/html/index.php on line 15
Couldn't open sample:
--------------
And this happens when I use the local e-smith url,
www.e.smith.my-site.comSuccessfully connected to server
Successfully selected database "sample"
------------
Anybody got an idea?
Regards
Allan