最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

WP MultiSite: Can't select database error after changing to new domain

programmeradmin1浏览0评论

I've been developing a WP Multisite on a temp URL for some time now. The site is ready, so I changed my settings around, did a find and replace in SQL from the temp domain to the permanent domain, pointed my domain over.....

and now I get a "Can't Select Database" error.

I think part of the problem is my DB user is no longer being allowed to access the database anymore. When I went back into cPanel, I tried to connect my DB user to the database and this error came up.

The system received an error from the “MySQL” database “mysql”: ER_NONEXISTING_GRANT (There is no such grant defined for user 'stack_db16' on host 'res154.servconfig')

Of course, mysql is not the actual DB name. It's something else.

So what is going on here? Totally confused and frustrated by this.

I've been developing a WP Multisite on a temp URL for some time now. The site is ready, so I changed my settings around, did a find and replace in SQL from the temp domain to the permanent domain, pointed my domain over.....

and now I get a "Can't Select Database" error.

I think part of the problem is my DB user is no longer being allowed to access the database anymore. When I went back into cPanel, I tried to connect my DB user to the database and this error came up.

The system received an error from the “MySQL” database “mysql”: ER_NONEXISTING_GRANT (There is no such grant defined for user 'stack_db16' on host 'res154.servconfig')

Of course, mysql is not the actual DB name. It's something else.

So what is going on here? Totally confused and frustrated by this.

Share Improve this question asked Jan 27, 2018 at 5:14 Adam BellAdam Bell 1719 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 1

Solved it! Problem was I needed to update the wp_blogs table with the proper domain and path.

That's a standard error if WordPress cannot connect to the database. Did you update the database details in the wp-config.php file?

I recommend double checking the DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST values.

发布评论

评论列表(0)

  1. 暂无评论