【发布时间】:2018-07-28 02:13:38
【问题描述】:
我无法使用 WP CLI 安装插件。任何帮助将不胜感激。
我在 Windows 10 上使用 MAMP 运行本地 WordPress 站点。我在 Ubuntu 终端上使用 WP CLI,它在我的 Windows 10 机器上的 VirtualBox 上运行。
在 Ubuntu 终端中,当我尝试运行 wp plugin install jetpack 时,我收到以下错误消息:
PHP Warning: mysqli_real_connect(): (HY000/2002): No such file or directory
in /home/matt-j/windows-desktop/projects/wp-rest-api-with-js/wp-includes/wp-
db.php on line 1531
Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in
/home/matt-j/windows-desktop/projects/wp-rest-api-with-js/wp-includes/wp-
db.php on line 1531
Error: Error establishing a database connection. This either means that the
username and password information in your `wp-config.php` file is incorrect
or we can’t contact the database server at `localhost`. This could mean your
host’s database server is down.
【问题讨论】:
-
它清楚地表明用户名或密码或数据库名称错误
-
这要么意味着您的
wp-config.php文件中的用户名和密码信息不正确,要么它无法联系localhost的数据库服务器
标签: wordpress