This topic is locked

Socket

7/11/2013 2:09:40 AM
PHPRunner General questions
author

[size="2"]Hi[/size]
[size="2"]I have been trying to connect to mysql via a socket. My client has just purchased a managed server from 1 and 1 internet. and whatever i do the application returns access denied[/size]
[size="2"]If i log on to the server via SSH using the following it works fine[/size]
[font="Helvetica"][size="2"]however via phprunner I use the following and it fails every time[/size]
[size="2"][font="Helvetica"]$port = "

[size="2"]$user="";[/size]

[size="2"]$pwd="
";[/size]

[size="2"]$sys_dbname="";[/size][font="Helvetica"][size="2"]

[/size]
[size="2"][font="Helvetica"]$host ="localhost:

[font="Helvetica"][size="2"]$port = "";[/size]

[size="2"]$user="
";[/size]

[size="2"]$pwd="";[/size]

[size="2"]$sys_dbname="
";[/size]

[/size]

[size="2"]Any idears what i am doing wrong[/size]
[size="2"]Regards[/size]
[size="2"]Richard[/size]

Sergey Kornilov admin 7/11/2013

See examples of correct syntax at http://php.net/manual/en/function.mysql-connect.php

Example #3 is what you looking for.