PhpMyAdmin和Mysql数据库 [英] PhpMyAdmin and Mysql databases
问题描述
我在localhost
上安装了 wordpress 并建立了数据库-wordpress un phpmyadmin.
I installed wordpress on localhost
and made database - wordpress un phpmyadmin.
当我尝试通过终端连接wordpress database
时,它表明没有这样的数据库-wordpress,而是mysql,information_schema,performance_schema,test.
When I try to connect wordpress database
through terminal, it shows that there is no such database - wordpress but mysql, information_schema,performance_schema,test.
为什么会这样,我该如何解决?
Why it is like that and how can I fix it ?
推荐答案
尝试在phpmyadmin中添加数据库,并将wp-config-sample.php
更改为wp-config.php
,并提供用户名,密码和数据库名称...
Try to add database in the phpmyadmin and change the wp-config-sample.php
to wp-config.php
and provide your username, password and database name...
喜欢
/** The name of the database for WordPress */
define('DB_NAME', 'test');
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', 'test');
/** MySQL hostname */
define('DB_HOST', 'localhost');
参考 按字词安装
这篇关于PhpMyAdmin和Mysql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!