Re: [PHP] cant connect to mysql
Is MySQL running? Miles At 08:04 AM 8/29/01 +0530, Sagar N Chand wrote: Hi geeks, I have a strage problem over here. I developed a site which runs fine at my home. When i hosted it on to the remote server it is giving an error saying cant connect to mysql. the error is like this Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /home/httpd/html/procbit/login.php on line 17 the line 17 in my code is as follows: $db=mysql_connect(localhost,root,password); please help me out of this problem. Please reply me at [EMAIL PROTECTED] thank you all sagar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] cant connect to mysql
Hi geeks, I have a strage problem over here. I developed a site which runs fine at my home. When i hosted it on to the remote server it is giving an error saying cant connect to mysql. the error is like this Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /home/httpd/html/procbit/login.php on line 17 the line 17 in my code is as follows: $db=mysql_connect(localhost,root,password); please help me out of this problem. Please reply me at [EMAIL PROTECTED] thank you all sagar
Re: [PHP] cant connect to mysql
Is mysql on the remote server? if so then i doubt very much that they would let you have root access to the DB... so you need to change your connect line to resemble the remote server and if it's a web hosting company that your using as a remote server ask for a user name you can use Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:[EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] X-Apparently-From: [EMAIL PROTECTED] From: Sagar N Chand [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Wed, 29 Aug 2001 08:04:40 +0530 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Subject: [PHP] cant connect to mysql X-Mozilla-Status: X-Mozilla-Status2: X-UIDL: 6badc33ff2c371e368ef53f676502437 Hi geeks, I have a strage problem over here. I developed a site which runs fine at my home. When i hosted it on to the remote server it is giving an error saying cant connect to mysql. the error is like this Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /home/httpd/html/procbit/login.php on line 17 the line 17 in my code is as follows: $db=mysql_connect(localhost,root,password); please help me out of this problem. Please reply me at [EMAIL PROTECTED] thank you all sagar -- Peter Houchin Sun Rentals STR Manager Phone: 03 9329 1455 Fax: 03 9329 6755 [EMAIL PROTECTED] http://www.sun.com.au/rentals = _ __ /\ /_/_/_\/ |_/ \ /_/_/___ __ __ __ / \ \_/_/_\ /_/ /_/ /_/ /_/ \ _ / ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/ \_//_/_/ /_/_/_/ /_/ \/_/v /_/_/_/_/ /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ /_/_ _/_/ __ __ __ /_/ __ __ /_/_/_/_/ /_/_/_/ /_/ /_/ /_/ /_/\_\/_//_/_/_/ /_/ \_\ /_/ _/ /_//\/_/ /_/ /_/__\_\ /_/___ _\_\_\ /_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/ = Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 * We rent the dot in .COM! ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]