我的wp config create
命令:
wp core config --dbname=wordpress --dbuser=wordpress --dbpass=\'this is not the real password\'
运行它:
$ wp core config --dbname=wordpress --dbuser=wordpress --dbpass=\'this is not the real password\'
ERROR 1045 (28000): Access denied for user \'wordpress\'@\'localhost\' (using password: YES)
有证据表明,我认为问题出在wp cli试图使用我指定的用户的“\\@localhost版本”;从MariaDB“监视器”中:
MariaDB [(none)]> SELECT Host, User FROM mysql.user;
+-----------+-----------+
| Host | User |
+-----------+-----------+
| % | wordpress |
| 127.0.0.1 | root |
| ::1 | root |
| localhost | |
| localhost | root |
+-----------+-----------+
这也不起作用:
$ wp core config --dbhost=\\% --dbname=wordpress --dbuser=wordpress --dbpass=\'this is not the real password\'
ERROR 2005 (HY000): Unknown MySQL server host \'%\' (8)
如何告诉wp cli使用wordpress用户的\'\'%version\'?
wp cli项目的一个看似相关的GitHub问题: