phpMyAdmin 导入数据库丢失!

发布于 2024-09-30 09:42:26 字数 242 浏览 2 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苄①跕圉湢 2024-10-07 09:42:26

备份文件(备份整个目录结构以防万一),重新创建同名数据库(销毁文件),停止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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文