从今天早上开始,每次我尝试更新数据库的架构时,都要感谢以下命令: php bin/console doctrine:schema:update --force
. 我收到4个错误,您可以看到以下输出:
In AbstractMySQLDriver.php line 126:
An exception occurred in driver: SQLSTATE[HY000] [2006] MySQL server has gone away
In PDOConnection.php line 50:
SQLSTATE[HY000] [2006] MySQL server has gone away
In PDOConnection.php line 46:
SQLSTATE[HY000] [2006] MySQL server has gone away
In PDOConnection.php line 46:
PDO::__construct(): Unexpected server respose while doing caching_sha2 auth: 109
从昨天起我什么也没变。
这是我的参数。yml:
parameters:
database_host: 127.0.0.1
database_port: 3306
database_name: theatreP
database_user: root
database_password: ~
mailer_transport: gmail
mailer_host: 127.0.0.1
mailer_user: %mon_mail%
mailer_password: %psw%
secret: ThisTokenIsNotSoSecretChangeIt`
我还检查超时 SHOW SESSION VARIABLES LIKE '%timeout';
: `+
7条答案
按热度按时间gxwragnw1#
nhaq1z212#
-----+
neskvpey3#
在我的例子中,我必须修改mysql用户,使其标识为“caching\u sha2\u password”:
gk7wooem4#
+` 我试图更改值wait\u timeout&&interactive\u timeout,但找不到要修改的文件
我使用mac os:10.13.6(high sierra)
mysql:8.0.12,用于x86\U 64(自制)上的osx10.13
php:7.1.20版本
节点:v8.12.0
npm:6.4.1
jk9hmnmh5#
-----+
xyhw6mcr6#
-----+
yjghlzjz7#