恢复旧的 MySQL 备份
我有一个 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-win32 和 mysql-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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际显示错误是值得的。
但无论如何,如果语法确实有问题,
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.