简体   繁体   English

phpmyadmin在数据库中找不到表

[英]phpmyadmin No tables found in database

I'm sure that there are a lot of people facing my problem; 我确信会有很多人面对我的问题; I had copied the data folder inside mysql on the hard disk, then format my computer, then I have pasted the data folder, then all databases shows the number of tables, and when I make query show tables. 我已经在硬盘上的mysql内部复制了数据文件夹,然后格式化了我的计算机,然后粘贴了数据文件夹,然后所有数据库都显示了表的数量,并且在进行查询时显示了表。

Its showing all tables inside database, but when I try to access the tables, it's showing table does not exist? 它显示数据库中的所有表,但是当我尝试访问表时,它显示表不存在?

Please, I have a lot of projects, can any body help me? 拜托,我有很多项目,有什么机构可以帮助我吗? Note that there was no password on the previous version and the user was root as now. 请注意,以前的版本没有密码,并且用户现在是root用户。 Please help. 请帮忙。

I did not move any database file, but I had the same error message "No tables found in database" within PhpMyAdmin . 我没有移动任何数据库文件,但是在PhpMyAdmin中有相同的错误消息“在数据库中找不到表” But I could access the database by sql. 但是我可以通过sql访问数据库。 I found out that it was caused by the browser. 我发现这是由浏览器引起的。 Using another browser or a private window helped. 使用其他浏览器或专用窗口会有所帮助。 Did not try a restart or deleting cache so far. 到目前为止,尚未尝试重新启动或删除缓存。

Probably a duplicate: MySQL Table does not exist error, but it does exist 可能是重复项: MySQL表不存在错误,但确实存在

But moving files is not the way to save the database,best way is the export,import. 但是移动文件不是保存数据库的方法,最好的方法是导出,导入。

If your phpMyAdmin no longer sees any tables in any of your local databases, that is because permissions change away from mysql.mysql on any database directory under /var/lib/mysql to, say, root.root (most probably). 如果您的phpMyAdmin不再在您的任何本地数据库中看到任何表,那是因为权限从/ var / lib / mysql下的任何数据库目录上的mysql.mysql更改为root.root (很可能是)。

You will have to change the owner from root.root to mysql.mysql , to do this, youâll need root access and putty. 为此,您必须将所有者从root.root更改为mysql.mysql ,您需要root访问权限和腻子。 Key in this command: 键入以下命令:

chown -R mysql.mysql /var/lib/mysql/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM