wordpress 数据库重新导入提示 Can’t select database

2016-12-27 10:28:25 +08:00
 cmisaka

最近把网站从国外服务器搬回国内,但是数据库这块除了问题。 wordpress 一直提示: Can ’ t select database We were able to connect to the database server (which means your username and password is okay) but not able to select the vwvip database.

Are you sure it exists? Does the user root have permission to use the vwvip database? On some systems the name of your database is prefixed with your username, so it would be like username_vwvip. Could that be the problem? If you don ’ t know how to set up a database you should contact your host. If all else fails you may find help at the WordPress Support Forums.

855 次点击
所在节点    数据库
4 条回复
Famio
2016-12-27 16:17:54 +08:00
数据库确认正确吗?
yejinmo
2016-12-27 17:52:56 +08:00
检查 wordpress 根目录下的 wp-config.php 内关于数据库的配置是否正确


检查 mysql 是否有对应数据库及权限是否正确
>mysql -u 用户名 -p 密码
>show databases;
cmisaka
2016-12-29 15:01:07 +08:00
@Famio 正确的
cmisaka
2016-12-29 15:01:47 +08:00
@cmisaka 数据库对应的账号密码都是正确的 权限还没注意我看看

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/330418

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX