PhpMyAdmin和Mysql数据库 [英] PhpMyAdmin and Mysql databases

查看:143
本文介绍了PhpMyAdmin和Mysql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆