phpMyAdmin 导入数据库丢失!
我在 phpMyAdmin 中的 sql 数据库消失了,但我将文件保留在 xampp/mysql/data/mydatabase 目录中,扩展名如 .MYD .MYI .frm .opt...
问题是当我尝试在记事本++中打开它时查看他们的信息似乎已损坏或损坏。然后我尝试通过 phpMyAdmin 将这些文件直接导入数据库,但再次没有结果,因为它充满了语法错误......
有人可以告诉我如何解决这个问题吗?
提前致谢!
My sql database in phpMyAdmin is gone but i kept the files in the directory of xampp/mysql/data/mydatabase with extensions like .MYD .MYI .frm .opt...
the thing is when i try to open it in notepad++ to see the information they seem corrupted or damaged. Then i've tried to import these files directly to the database through phpMyAdmin, but again with no results because it's full of syntax errors...
Can someone tell me how to solve this?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
备份文件(备份整个目录结构以防万一),重新创建同名数据库(销毁文件),停止mysql,替换文件,启动mysql。
请务必保留备份,以防出现问题!
Back the files up (back up the entire directory structure just in case), recreate a database with the same name (destroying the files), stop mysql, replace the files, start mysql.
Make sure you keep your backup in case things go wrong!