Lon*_*aig 6 mysql recovery file-recovery mysql-python
希望有人可以帮助我,我已经研究了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/restoring-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.
Run Code Online (Sandbox Code Playgroud)
执行实用程序:'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
Run Code Online (Sandbox Code Playgroud)
警告:在命令行界面上使用密码可能不安全.
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'
Run Code Online (Sandbox Code Playgroud)
目前我正在尝试访问一个.frm进行测试,这是wp_eg_grids.frm并将其转换为wp_eg_grids.txt.任何人都可以注意到我做错了或知道如何解决这个问题.
尝试对mysqlfrm使用以下语法,该语法在类似情况下对我有用。
mysqlfrm --server=root:password@localhost:3306 c:/wamp/bin/mysql/mysql5.6.17/data/craigmedia/wp_eg_grids.frm > c:/wamp/bin/mysql/mysql5.6.17/data/craigmedia/wp_eg_grids.txt --diagnostic --port=3307 -vvv --user=root
Run Code Online (Sandbox Code Playgroud)
打开诊断模式以逐字节读取.frm文件并生成尽力而为的CREATE语句。
| 归档时间: |
|
| 查看次数: |
8386 次 |
| 最近记录: |