SQL 错误消息: "Access denied for user 'wuliuadmin'@'localhost' (using password: YES)"
SQL 语句: "mysql_connect('localhost', 'wuliuadmin') failed!"
SQL 错误代码: "7335941".
错误原因:
您看到这个错误页面是因为应用程序抛出了没有捕获的异常。
异常的详细内容:
exception 'FLEA_Db_Exception_SqlQuery' with message 'SQL 错误消息: "Access denied for user 'wuliuadmin'@'localhost' (using password: YES)"
SQL 语句: "mysql_connect('localhost', 'wuliuadmin') failed!"
SQL 错误代码: "7335941".' in /var/www/vhosts/acty-b.net/subdomains/logistics/httpdocs/FLEA/FLEA/Db/Driver/Mysql.php:69
Stack trace:
#0 /var/www/vhosts/acty-b.net/subdomains/logistics/httpdocs/FLEA/FLEA.php(752): FLEA_Db_Driver_Mysql->connect()
#1 /var/www/vhosts/acty-b.net/subdomains/logistics/httpdocs/FLEA/FLEA/Db/TableDataGateway.php(301): FLEA->getDBO()
#2 /var/www/vhosts/acty-b.net/subdomains/logistics/httpdocs/FLEA/FLEA.php(422): FLEA_Db_TableDataGateway->FLEA_Db_TableDataGateway()
#3 /var/www/vhosts/acty-b.net/subdomains/logistics/httpdocs/APP/Controller/HomePage.php(28): FLEA->getSingleton('Model_Client')
#4 /var/www/vhosts/acty-b.net/subdomains/logistics/httpdocs/FLEA/FLEA/Dispatcher/Simple.php(106): Controller_HomePage->Controller_HomePage('HomePage')
#5 /var/www/vhosts/acty-b.net/subdomains/logistics/httpdocs/FLEA/FLEA/Dispatcher/Simple.php(77): FLEA_Dispatcher_Simple->_executeAction('HomePage', 'Index', 'Controller_Home...')
#6 /var/www/vhosts/acty-b.net/subdomains/logistics/httpdocs/FLEA/FLEA.php(816): FLEA_Dispatcher_Simple->dispatching()
#7 /var/www/vhosts/acty-b.net/subdomains/logistics/httpdocs/index.php(11): FLEA::runMVC()
#8 {main}
Exception: FLEA_Db_Exception_SqlQuery
Message: SQL 错误消息: "Access denied for user 'wuliuadmin'@'localhost' (using password: YES)"
SQL 语句: "mysql_connect('localhost', 'wuliuadmin') failed!"
SQL 错误代码: "7335941".
Filename: /var/www/vhosts/acty-b.net/subdomains/logistics/httpdocs/FLEA/FLEA.php [752]
#8 FLEA_Db_Driver_Mysql::connect()
ARGS:
Array
(
)
SOURCE CODE:
742 |
|
743 |
$driver = ucfirst(strtolower($dsn['driver']));
|
744 |
$className = 'FLEA_Db_Driver_' . $driver;
|
745 |
if ($driver == 'Mysql' || $driver == 'Mysqlt') {
|
746 |
require_once(FLEA_DIR . '/Db/Driver/Mysql.php');
|
747 |
} else {
|
748 |
FLEA::loadClass($className);
|
749 |
}
|
750 |
$dbo =& new $className($dsn);
|
751 |
/* @var $dbo FLEA_Db_Driver_Abstract */
|
752 |
$dbo->connect();
|
753 |
|
754 |
$GLOBALS[G_FLEA_VAR]['DBO'][$dsnid] =& $dbo;
|
755 |
return $GLOBALS[G_FLEA_VAR]['DBO'][$dsnid];
|
756 |
}
|
757 |
|
758 |
/**
|
759 |
* 分析 DSN 字符串或数组,返回包含 DSN 连接信息的数组,失败返回 false
|
760 |
*
|
761 |
* @param string|array $dsn
|
762 |
*
|
Filename: /var/www/vhosts/acty-b.net/subdomains/logistics/httpdocs/FLEA/FLEA/Db/TableDataGateway.php [301]
#7 FLEA::getDBO()
ARGS:
Array
(
)
SOURCE CODE:
291 |
// 当 skipInit 为 true 时,不初始化表数据入口对象
|
292 |
if (isset($params['skipConnect']) && $params['skipConnect'] != false) {
|
293 |
return;
|
294 |
}
|
295 |
|
296 |
// 初始化数据访问对象
|
297 |
if (!isset($params['dbo'])) {
|
298 |
if (isset($params['dbDSN'])) {
|
299 |
$dbo =& FLEA::getDBO($params['dbDSN']);
|
300 |
} else {
|
301 |
$dbo =& FLEA::getDBO();
|
302 |
}
|
303 |
} else {
|
304 |
$dbo =& $params['dbo'];
|
305 |
}
|
306 |
$this->setDBO($dbo);
|
307 |
|
308 |
// 当 skipCreateLinks 不为 true 时,建立关联
|
309 |
if (!isset($params['skipCreateLinks']) || $params['skipCreateLinks'] == false) {
|
310 |
$this->relink();
|
311 |
}
|
Filename: /var/www/vhosts/acty-b.net/subdomains/logistics/httpdocs/FLEA/FLEA.php [422]
#6 FLEA_Db_TableDataGateway::FLEA_Db_TableDataGateway()
ARGS:
Array
(
)
SOURCE CODE:
412 |
} else {
|
413 |
$classExists = class_exists($className);
|
414 |
}
|
415 |
if (!$classExists) {
|
416 |
if ( |