|
Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Connection refused in /usr/share/nginx/html/php/opencart/vendor/illuminate/database/Connectors/Connector.php:70 Stack trace: #0 /usr/share/nginx/html/php/opencart/vendor/illuminate/database/Connectors/Connector.php(70): PDO->__construct('mysql:host=10.1...', 'root', 'admin123', Array) #1 /usr/share/nginx/html/php/opencart/vendor/illuminate/database/Connectors/Connector.php(46): Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=10.1...', 'root', 'admin123', Array) #2 /usr/share/nginx/html/php/opencart/vendor/illuminate/database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=10.1...', Array, Array) #3 /usr/share/nginx/html/php/opencart/vendor/illuminate/database/Connectors/ConnectionFactory.php(182): Illuminate\Database\Connectors\MySqlConnector->connect(Array) #4 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() #5 /usr/ in /usr/share/nginx/html/php/opencart/vendor/illuminate/database/Connectors/Connector.php on line 70
从phpMyAdmin是可以访问的 自己写php测试连接也可以成功,但是打开网页就报错、求助大神们
用的是MariaDB-1:10.2.21
php 7.2.9 |
|