Help - Search - Members - Calendar
Full Version: Unable To Connect With The Database
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
Admin @ TLG
Below is what it shows when I tried to view my web: http://tlgweb.vndv.com/intranet/

Warning: mysql_pconnect() has been disabled for security reasons in /www/vndv.com/t/l/g/tlgweb/htdocs/Connections/cnmembers.php on line 9

Fatal error: in /www/vndv.com/t/l/g/tlgweb/htdocs/Connections/cnmembers.php on line 9

What should I use if I don't use the mysql_pconnect() function to connect with the database?!
swordz
Use mysql_connect instead.

swordz
Admin @ TLG
QUOTE(swordz @ Aug 13 2009, 05:10 PM) *
Use mysql_connect instead.

swordz

Thanks but I got this afterwards:

Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /www/vndv.com/t/l/g/tlgweb/htdocs/Connections/cnmembers.php on line 9

Fatal error: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /www/vndv.com/t/l/g/tlgweb/htdocs/Connections/cnmembers.php on line 9

Will it be the problem of the parameters or something else?
Ed
QUOTE(Admin @ TLG @ Aug 14 2009, 03:21 PM) *
Thanks but I got this afterwards:

Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /www/vndv.com/t/l/g/tlgweb/htdocs/Connections/cnmembers.php on line 9

Fatal error: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /www/vndv.com/t/l/g/tlgweb/htdocs/Connections/cnmembers.php on line 9

Will it be the problem of the parameters or something else?


Error 111 is connection refused, so it'll be the database credentials.
Admin @ TLG
QUOTE(Bread @ Aug 14 2009, 02:23 PM) *
Error 111 is connection refused, so it'll be the database credentials.

Then would you please tell me what should I do?
swordz
What details are you using to log in (other than password)?

swordz
Admin @ TLG
QUOTE(swordz @ Aug 15 2009, 10:15 AM) *
What details are you using to log in (other than password)?

swordz

mysql_connect([server],[username],[pwd])
bbriniotis
it is probably NOT the credentials.PHP usually shows a different message for that.Check out this mysql tread:
http://forums.mysql.com/read.php?52,151255,213970#msg-213970
Ed
It is, I imagine the hostname is not set to localhost.
Admin @ TLG
QUOTE(Bread @ Aug 17 2009, 01:02 PM) *
It is, I imagine the hostname is not set to localhost.

Yes, you are right, I set the serverName to "vndv.com"
Thank you all very much!!!! The problem is solved now! smile.gif
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-2009 Invision Power Services, Inc.