PHP

首页 -  PHP  -  宝塔mysql无法连接 mysql SQLSTATE[HY000] [1044]

宝塔mysql无法连接 mysql SQLSTATE[HY000] [1044]

宝塔数据库代码无法连接数据库production.ERROR: SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' {"exception":"[object] (Doctrine\\DBAL\\Driver\\PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/dkysh.toolsale.cn/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31, PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge'


解决方案:

宝塔-》软件商城-》找到安装的PHP版本-》设置-》禁用函数-》找到putenv函数=》删除即可

宝塔mysql无法连接 mysql SQLSTATE[HY000] [1044]

(1)
分享:

本文由:xiaoshu168.com 作者:xiaoshu发表,转载请注明来源!

标签:

相关阅读