Too many connections 这是什么意思??
我到FIFAONLINE2网站参加活动,一登陆就出现这样的Toomanyconnections错误原因:iException详细:exception'iException...
我到FIFA ONLINE2网站参加活动,一登陆就出现这样的Too many connections
错误原因:
iException
详细: exception 'iException' with message 'Too many connections' in /data/site/domain/sns.eafifaonline2.com/core/function/functions.php:225
#0 /data/site/domain/sns.eafifaonline2.com/core/class/db/driver/DbMysql.class.php (38) throw_exception()
#1 /data/site/domain/sns.eafifaonline2.com/core/class/db/db.class.php (194) DbMysql->connect(Too many connections, sys)
#2 /data/site/domain/sns.eafifaonline2.com/core/class/db/driver/DbMysql.class.php (143) Db->initConnect()
#3 /data/site/domain/sns.eafifaonline2.com/core/class/db/driver/DbMysql.class.php (241) DbMysql->_query()
#4 /data/site/domain/sns.eafifaonline2.com/core/class/sns/user_handler.class.php (251) DbMysql->getRow(SELECT uid FROM `core_user` WHERE `uuid`='@00170275877')
#5 /data/site/domain/sns.eafifaonline2.com/htdocs/login.php (136) UserHandler::checkUserExistUuid(SELECT uid FROM `core_user` WHERE `uuid`='@00170275877')
--------------------------------------------------------------------------------
文件: /data/site/domain/sns.eafifaonline2.com/core/class/db/driver/DbMysql.class.php [38]
#6 throw_exception()
参数:
源程序:
28 */
29 public function connect($config='',$linkNum=0){
30 if ( !isset($this->_link_list[$linkNum]) ){
31 if ( empty($config) ){
32 $config = $this->_config;
33 }
34 $conn = $this->_pconnect ? 'mysql_pconnect':'mysql_connect';
35 $this->_link_list[$linkNum] = $conn($config['db_host'].':'.$config['db_port'],
36 $config['db_user'],$config['db_pwd'],true);
37 if ( !$this->_link_list[$linkNum] ){
38 throw_exception(mysql_error(),'sys');
39 return false;
40 }
41 if ( !mysql_select_db($config['db_name'],$this->_link_list[$linkNum]) ){
42 throw_exception('设置数据库失败','sys');
43 }
44 $this->_dbVersion = mysql_get_server_info($this->_link_list[$linkNum]);
45 if ( $this->_dbVersion>='4.1'&&!empty($config['db_charset']) ){
46 //使用UTF8存取数据库 需要mysql 4.1.0以上支持
47 mysql_query("SET NAMES '".$config['db_charset']."'", $this->_link_list[$linkNum]);
48 }
--------------------------------------------------------------------------------
文件: /data/site/domain/sns.eafifaonline2.com/core/class/db/db.class.php [194]
#5 DbMysql::connect('Too many connections', 'sys')
参数:
昨天也是这样,前天没事。以前偶尔发生这样的情况。
我是菜鸟,没积分,望高手帮助我这个菜鸟。拜托了!!! 展开
错误原因:
iException
详细: exception 'iException' with message 'Too many connections' in /data/site/domain/sns.eafifaonline2.com/core/function/functions.php:225
#0 /data/site/domain/sns.eafifaonline2.com/core/class/db/driver/DbMysql.class.php (38) throw_exception()
#1 /data/site/domain/sns.eafifaonline2.com/core/class/db/db.class.php (194) DbMysql->connect(Too many connections, sys)
#2 /data/site/domain/sns.eafifaonline2.com/core/class/db/driver/DbMysql.class.php (143) Db->initConnect()
#3 /data/site/domain/sns.eafifaonline2.com/core/class/db/driver/DbMysql.class.php (241) DbMysql->_query()
#4 /data/site/domain/sns.eafifaonline2.com/core/class/sns/user_handler.class.php (251) DbMysql->getRow(SELECT uid FROM `core_user` WHERE `uuid`='@00170275877')
#5 /data/site/domain/sns.eafifaonline2.com/htdocs/login.php (136) UserHandler::checkUserExistUuid(SELECT uid FROM `core_user` WHERE `uuid`='@00170275877')
--------------------------------------------------------------------------------
文件: /data/site/domain/sns.eafifaonline2.com/core/class/db/driver/DbMysql.class.php [38]
#6 throw_exception()
参数:
源程序:
28 */
29 public function connect($config='',$linkNum=0){
30 if ( !isset($this->_link_list[$linkNum]) ){
31 if ( empty($config) ){
32 $config = $this->_config;
33 }
34 $conn = $this->_pconnect ? 'mysql_pconnect':'mysql_connect';
35 $this->_link_list[$linkNum] = $conn($config['db_host'].':'.$config['db_port'],
36 $config['db_user'],$config['db_pwd'],true);
37 if ( !$this->_link_list[$linkNum] ){
38 throw_exception(mysql_error(),'sys');
39 return false;
40 }
41 if ( !mysql_select_db($config['db_name'],$this->_link_list[$linkNum]) ){
42 throw_exception('设置数据库失败','sys');
43 }
44 $this->_dbVersion = mysql_get_server_info($this->_link_list[$linkNum]);
45 if ( $this->_dbVersion>='4.1'&&!empty($config['db_charset']) ){
46 //使用UTF8存取数据库 需要mysql 4.1.0以上支持
47 mysql_query("SET NAMES '".$config['db_charset']."'", $this->_link_list[$linkNum]);
48 }
--------------------------------------------------------------------------------
文件: /data/site/domain/sns.eafifaonline2.com/core/class/db/db.class.php [194]
#5 DbMysql::connect('Too many connections', 'sys')
参数:
昨天也是这样,前天没事。以前偶尔发生这样的情况。
我是菜鸟,没积分,望高手帮助我这个菜鸟。拜托了!!! 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询