Help - Search - Members - Calendar
Full Version: Mysql_connect() Error Plz Help Me
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
janu121
Dear Fellows my website is showing following error while conecting to database.. I have already set the username, password, servername and database name but it is showing this


[b]Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /www/vndv.com/j/a/n/janu121/htdocs/searchThePlot.php on line 3
Lost connection to MySQL server at 'reading initial communication packet', system error: 111


Please help me out.

thanks
Jacob
What variables are you using? (hostname, db name, etc.)?

Jacob.
janu121
QUOTE(NaRzY @ Aug 1 2009, 07:43 AM) *
What variables are you using? (hostname, db name, etc.)?

Jacob.


mysql_connect("vndv.com", "janu121_javed", "*****" ) or die (mysql_error());
mysql_select_db ("javed121_realestate");

Jacob - No password needed.
Jacob
You need to make your database name smaller. It is over the allowed character limit of 16 (incl. the _)

Once you fix that issue, the correct information should be:
CODE
mysql_connect("localhost", "janu121_javed", "*****" ) or die (mysql_error());
mysql_select_db ("new_dbname");


Jacob.
janu121
QUOTE(NaRzY @ Aug 1 2009, 10:28 AM) *
You need to make your database name smaller. It is over the allowed character limit of 16 (incl. the _)

Once you fix that issue, the correct information should be:
CODE
mysql_connect("localhost", "janu121_javed", "*****" ) or die (mysql_error());
mysql_select_db ("new_dbname");


Jacob.


Sir same error showing i changed my database name (janu121_mydb)
Jacob
So you are using
CODE
mysql_connect("localhost", "janu121_javed", "*****" ) or die (mysql_error());
mysql_select_db ("janu121_mydb");

And you replace ***** with your real password?

Jacob.
Weixo
QUOTE(NaRzY @ Aug 1 2009, 11:16 AM) *
So you are using
CODE
mysql_connect("localhost", "janu121_javed", "*****" ) or die (mysql_error());
mysql_select_db ("janu121_mydb");

And you replace ***** with your real password?

Jacob.

That dosnt work for me.

Warning: include() [function.include]: Unable to access /config.php in /www/vndv.com/b/r/h/brhabbo/htdocs/header.php on line 3

Warning: include(/config.php) [function.include]: failed to open stream: No such file or directory in /www/vndv.com/b/r/h/brhabbo/htdocs/header.php on line 3

Warning: include() [function.include]: Failed opening '/config.php' for inclusion (include_path='.:/usr/lib/php') in /www/vndv.com/b/r/h/brhabbo/htdocs/header.php on line 3

Warning: mysql_query() [function.mysql-query]: Access denied for user 'vhostswww'@'localhost' (using password: NO) in /www/vndv.com/b/r/h/brhabbo/htdocs/header.php on line 4

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /www/vndv.com/b/r/h/brhabbo/htdocs/header.php on line 4
Access denied for user 'vhostswww'@'localhost' (using password: NO)

And I entered it right!
Jacob
Can you please post what you entered in the config file?

Jacob.
janu121
I am using my database password.. but not working.. also check with empty password but same error mesg... please help me out i have to show my work to some one.

thanks
janu121
QUOTE(NaRzY @ Aug 1 2009, 01:38 PM) *
Can you please post what you entered in the config file?

Jacob.


It is running fine in my pc.. but not running on http://janu121.vndv.com/index.php

Jacob
Previous statement still stands. Config file please.

Jacob.
rijo
me too have the same problem...please help me.... i don't know about config file....please let me know about that also..thanks in advance..
rijo joy
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.