|
[2002] PDOException in [url=]Connection.php line 295[/url]
SQLSTATE[HY000] [2002] Connection refused
- $this->fetchType = $config['result_type'];
- }
- try {
- if (empty($config['dsn'])) {
- $config['dsn' = $this->parseDsn($config);
- }
- if ($config['debug']) {
- $startTime = microtime(true);
- }
- $this->links[$linkNum = new PDO($config['dsn'], $config['username'], $config['password'], $params);
- if ($config['debug']) {
- // 记录数据库连接信息
- Log::record('[ DB ] CONNECT:[ UseTime:' . number_format(microtime(true) - $startTime, 6) . 's ] ' . $config['dsn'], 'sql');
- }
- } catch (\PDOException $e) {
- if ($autoConnection) {
- Log::record($e->getMessage(), 'error');
- return $this->connect($autoConnection, $linkNum);
- } else {
多语言插件打开后报错,后台提交工单,只是发个下面的操作。按下面操作 ,完全没用。
已卸载并重新安装后的链接因为伪静态不是最新的所以无法正常打开,请按提示自行处理伪静态规则,IIS环境请用根目录.htaccess 文件重新导入伪静态,Nginx环境请自行添加伪静态规则:rewrite ^/language/(.*).html$ /index.php?s=index/plugins&p=multilingual&c=index&a=index&lang=$1 last;
|
|