Fix Warning: mysql_connect() [function.mysql-connect]: Too many connections
RegisterLogin
Fix Warning: mysql_connect() [function.mysql-connect]: Too many connections
Post Description: Fix Warning: mysql_connect() [function.mysql-connect]: Too many connections
Tags: Fix, Warning:, mysql_connect(), [function.mysql-connect]:, Too, many, connections
This Post Was Posted On Feb 29, 2008 By john607 #1456
Post Description: Fix Warning: mysql_connect() [function.mysql-connect]: Too many connections
Tags: Fix, Warning:, mysql_connect(), [function.mysql-connect]:, Too, many, connections
This Post Was Posted On Feb 29, 2008 By john607 #1456
Fix Warning: mysql_connect() [function.mysql-connect]: Too many connections by john607
I got this error on my server
Warning: mysql_connect() [function.mysql-connect]: Too many connections in
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
Tanweer
#1883 1
i have getting and an error "warning: mysql_connect() [function.mysql-connect]: access denied for user 'root' at 'localhost' (using password: no) in /home/qures2/public_html/phpapp/dbc.php on line 12
access denied for user 'root' at 'localhost' (using password: no)"
what does it mean? please help me
thnx in advance,
tanweer
access denied for user 'root' at 'localhost' (using password: no)"
what does it mean? please help me
thnx in advance,
tanweer
Jan 11, 2008 Reply Report abuse
karima
#1882 2
how to contact yoru sales department?
Sep 12, 2007 Reply Report abuse
john607
#1881 3
The reason why are getting this error is because your server is running out of resources. Meaning you have server overload. Simply put, you have too many users in your site for the service you currently have.
Its our recommendation that you move from our shared hosting plan to a dedicated server. Shared hosting is not designed for site such big web sites as yours. If you continue growing with your website demand, you will continue to see these errors and it will only get worst.
Contact our sales team and we can provide you with an affordable dedicated hosting server for as low as $99.
Another option you may have is to streamline your code. However, this will require alot of time and resources from you. If you getting the error below, try making your script code more efficient. Webune can assist you with this task, but to be honest with you, it will be more affordable if you upgrade from your shared hosting plan to one of Webune's dedicated server Packages.
Warning: mysql_connect() [function.mysql-connect]: Too many connections in /imedia/users/user/htdocs/connect.php on line 7
you may want to consider making some modifications to your code, per the PHP.NET Manual, to resolve these errors.
Using mysql_connect(): The advantage of using mysql_connect() for connections to MySQL databases in your code is that the link to the server will be closed as soon as the execution of the script ends, unless it's closed earlier by explicitly calling mysql_close().
More information can be found at the following URL:
http://us3.php.net/manual/en/function.mysql-connect.php
Using mysql_close(): This explicitly closes the connections. The use of mysql_close() in conjunction with mysql_connect() would ensure that the connection is closed.
Using mysql_pconnect(): This has a disadvantage in that the connection to the MySQL server will not be closed when the execution of the script ends. Instead, the link will remain open for future use. While this will work if you need to leave the connection open for additional connections, mysql_close() will not close links established by mysql_pconnect().
More information can be found at the following URL:
http://us3.php.net/manual/en/function.mysql-pconnect.php
Its our recommendation that you move from our shared hosting plan to a dedicated server. Shared hosting is not designed for site such big web sites as yours. If you continue growing with your website demand, you will continue to see these errors and it will only get worst.
Contact our sales team and we can provide you with an affordable dedicated hosting server for as low as $99.
Another option you may have is to streamline your code. However, this will require alot of time and resources from you. If you getting the error below, try making your script code more efficient. Webune can assist you with this task, but to be honest with you, it will be more affordable if you upgrade from your shared hosting plan to one of Webune's dedicated server Packages.
Warning: mysql_connect() [function.mysql-connect]: Too many connections in /imedia/users/user/htdocs/connect.php on line 7
you may want to consider making some modifications to your code, per the PHP.NET Manual, to resolve these errors.
Using mysql_connect(): The advantage of using mysql_connect() for connections to MySQL databases in your code is that the link to the server will be closed as soon as the execution of the script ends, unless it's closed earlier by explicitly calling mysql_close().
More information can be found at the following URL:
http://us3.php.net/manual/en/function.mysql-connect.php
Using mysql_close(): This explicitly closes the connections. The use of mysql_close() in conjunction with mysql_connect() would ensure that the connection is closed.
Using mysql_pconnect(): This has a disadvantage in that the connection to the MySQL server will not be closed when the execution of the script ends. Instead, the link will remain open for future use. While this will work if you need to leave the connection open for additional connections, mysql_close() will not close links established by mysql_pconnect().
More information can be found at the following URL:
http://us3.php.net/manual/en/function.mysql-pconnect.php
Jul 21, 2006 Reply Report abuse
Leave Your Comments...
©2012 Webune Forums - Thu Dec 13, 2012 7:51 am
Powered by: Webune Forums V3
Powered by: Webune Forums V3