重新安装后无法导入旧数据库(information_schema 的权限问题)
我最近重新安装了我的开发人员。电脑。
所以我所做的就是在 phpmyadmin 中导出到 .sql 文件并备份所有站点文件。 通常应该足够的东西?
现在我的问题是,它只会部分导入,直到它进入 information_schema 数据库...
由于某种原因,我无法访问它...
有没有办法让此导入再次工作?
我得到的错误:
CREATE DATABASE `information_schema` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
#1044 - Access denied for user 'root'@'localhost' to database 'information_schema'
我希望你们中的一个人可以帮助我。
托马斯·格茨
I have recently re-installed my dev. computer.
So what I did was make an export in phpmyadmin into an .sql file and backedup all the site files.
Something that normally should be enough?
Now my problem is that It will only partially import untill it runs into the information_schema database...
For some reason I can't get acces to it...
Is there a way I can get this import to work again?
The error I get:
CREATE DATABASE `information_schema` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
#1044 - Access denied for user 'root'@'localhost' to database 'information_schema'
I hope one of you guys can help me.
Grtz, Thomas
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
AFAIK
information_schema
是一个 MySQL 系统 DB,我猜 MySQL 只允许你修改它的内容,而不是它的结构。那么您应该只尝试将数据导入其中,而不是发出
CREATE DATABASE information_schema
命令。顺便说一句,这个数据库
information_schema
是否已存在于您的系统上?AFAIK
information_schema
is a MySQL system DB, I guess that MySQL will only allow you to modify its contents, not its structure.Then you should only try to import data into it, not issue a
CREATE DATABASE information_schema
command.BTW, is this DB
information_schema
already existing on your system ?请打开此链接,然后您可以获得解决方案:
现在单击 phpMyAdmin,然后找到您的数据库。
请参阅:如何-使用 WordPress 快速安装并立即启动您的网站
Please open this link then you can get a solution:
NOW CLICK ON phpMyAdmin then find your DATABASE.
Refer:how-to-quick-install-and-start-your-website-right-away-with-wordpress