恢复旧的 MySQL 备份

发布于 2024-10-08 07:55:15 字数 500 浏览 0 评论 0原文

我有一个 2007 年的大文件,其中包含 MySQL 数据库的备份(作为 SQL 脚本)。它适用于未知版本的 MediaWiki。

-- phpMyAdmin SQL Dump
-- version 2.6.2-Debian-3sarge3
-- http://www.phpmyadmin.net
-- 
-- Host: localhost
-- Generation Time: Aug 29, 2007 at 12:42 PM
-- Server version: 4.0.24
-- PHP Version: 4.3.10-19

我尝试安装 mysql-5.5.8-win32mysql-workbench-gpl-5.2.31a-win32 但出现语法错误。有没有一种简单的方法可以使旧脚本兼容,或者我最好使用旧版本的 MySQL?旧版本的开发工具仍然可用吗?

我正在寻找最快最简单的选项,因为我只想恢复它以获取一些旧的原始数据,而不是完全设置它。

I have a large file from 2007 containing a backup (as a SQL Script) of a MySQL Database. It's for an unknown version of MediaWiki.

-- phpMyAdmin SQL Dump
-- version 2.6.2-Debian-3sarge3
-- http://www.phpmyadmin.net
-- 
-- Host: localhost
-- Generation Time: Aug 29, 2007 at 12:42 PM
-- Server version: 4.0.24
-- PHP Version: 4.3.10-19

I've tried installing mysql-5.5.8-win32 and mysql-workbench-gpl-5.2.31a-win32 but am getting syntax errors. Is there an easy way of making the old script compatible, or am I better of using an older version of MySQL? Are the dev tools still available for the older versions?

I am looking for the quickest simplest option as I only want to restore it to get hold of some old raw data, not to set it up fully.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

温柔女人霸气范 2024-10-15 07:55:15

实际显示错误是值得的。

但无论如何,如果语法确实有问题,SET sql_mode = MYSQL40 可能会对您有所帮助。以前不是关键字但现在是关键字的东西可能会出现问题,在这种情况下您必须转义它。

It would be worth to actually showing the error.

But anyway, SET sql_mode = MYSQL40 might help you if the syntax is really a problem. There might be issue with something what was not keyword before and now is, you would have to escape it in this case.

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