希望有人可以帮助我,我已经研究了许多关于 stackoverflow 的恢复答案。
我犯了从mysql复制数据文件夹并将其粘贴到新的wamp 2.5 mysql/mysl5.6.17/data文件夹中的错误。
当我单击一个表格时,它会给出“表格不存在”。下面显示了显示的内容
3688 [警告] InnoDB:尽管存在表的 .frm 文件,但无法从 InnoDB 的内部数据字典中打开表 craigmedia/wp_eg_grids。请参阅http://dev.mysql.com/doc/refman/5.6/en/innodb Troubleshooting.html 了解如何解决问题。
我有包含 .frm 文件的数据库文件夹。
我一直在尝试使用 mysqlfrm 来恢复表,如以下链接所述:https ://dba.stackexchange.com/questions/71596/restoreing-mysql-tables-from-ibd-frm-and-mysqllogbin-files
但是,当我将信息放入 mysqlfrm 时,结果如下所示:
1.mysqlfrm --server=root@localhost --port=445 --user=root C:/wamp/bin/mysql/mysql5.6.17/data/craigmedia/wp_eg_grids.frm > wp_eg-grids.txt
Source on localhost: ...connected
ERROR: Cannot read wp_eg_grids.txt. You must have read privileges to the file or path and it must exist. Skipping this argument.
ERROR: Cannot read .frm file from >.frm.
实用程序的执行:'mysqlfrm --server=root@localhost --port=445 --user=root C:/wamp/bin/mysql/mysql5.6.17/data/craigmedia/wp_eg_grids.frm > wp_eg-grids.txt'以返回代码“1”结束,但没有错误消息流式传输到标准错误,请查看其执行的输出。
然后我尝试了这个。
2. mysqlfrm --server=root@localhost:3306 c:/wamp/bin/mysql/mysql5.6.17/data/craigmedia/wp_eg_grids.frm --port=3307 --user=root
警告:在命令行界面上使用密码可能不安全。
Source on localhost: ...connected.
Spawning server with --user=root.
Starting the spawned server on port 3307 ...
The console has detected that the utility 'mysqlfrm' ended with an error code. You can get more information about the error by running the console command 'show last error'.
Execution of utility: 'mysqlfrm --server=root@localhost:3306 c:/wamp/bin/mysql/mysql5.6.17/data/craigmedia/wp_eg_grids.frm --port=3307 --user=root' ended with return code '1' and with the following error message:
Traceback <most recent call last>:
File "G:\ade\build\sb_0-16088143-1438774726.78\Python-2.7.6-windows-x86-64bit\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module>
File "scripts\mysqlfrm.py", line 422, in <module>
File ".\mysql\utilities\command\read_frm.py", line 439, in read_frm_files
File ".\mysql\utilities\command\read_frm.py", line 166, in _spawn_server
File ".\mysql\utilities\command\serverclone.py", line 180, in clone_server
File ".\mysql\utilities\command\tools.py", line 254, in get_mysqld_version
I0Error: [Errno 13] Permission denied: 'version_check'
目前我正在尝试访问一个 .frm 进行测试,即 wp_eg_grids.frm 并将其制成 wp_eg_grids.txt。任何人都可以注意到我做错了什么或知道如何解决这个问题。