gpt4 book ai didi

mysql - Symfony2 - Doctrine :schema:create Access denied for user

转载 作者:行者123 更新时间:2023-11-29 03:42:55 24 4
gpt4 key购买 nike

/app/config/parameters.ini

[parameters]
database_driver = pdo_mysql
database_host = localhost
database_port =
database_name = my_dbname
database_user = my_user
database_password = my_password

Linux 外壳

/var/www/Symfony$ mysql -u my_user -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
...
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| my_dbname |
| test |
+--------------------+

mysql> Bye
/var/www/Symfony$ php app/console doctrine:schema:create

[PDOException]
SQLSTATE[28000] [1045] Access denied for user 'my_user'@'localhost' (using pa
ssword: YES)

问题的可能原因是什么?

最佳答案

我的密码包含一个 @ 字符,这是造成问题的原因。

关于mysql - Symfony2 - Doctrine :schema:create Access denied for user,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11079499/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com