Re: Can't connect to local MySQL server through socket.. ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



According to Google, my MySQL db is not on secure.inetwave.com server and have to use "something else" instead of "localhost" for host in mysql_connect(), right?

-afan

afan@xxxxxxxx wrote:

I have an admin area for one page on shared hosting. And I wanted to protect it by shared SSL from my hosting company. I got from them
Your domain, afan.net, can now access our shared SSL certificate.
To securely access the documents folder, go to ...
https://secure.inetwave.com/afan/filename
But, when I go to my admin area
https://secure.inetwave.com/afan/admin
I'm getting Warning:
*Warning*: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in */web/home/afan/admin/includes/functions.php* on line *120* Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

line 120 in file functions.php is
117    #    DATABASE CONNECTING
118    function db_connect($host, $user, $password, $db_name)
119   {
120       mysql_connect($host, $user, $password) or die (mysql_error());
121       mysql_select_db($db_name) or die (mysql_error());
 122  }


????


-afan


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux