我在godaddy服务器上有一个数据库。大约是10兆。我成功地导出了它,然后我想将数据库导入到另一个服务器(比如我的本地服务器)中。但是,当我导入它时,会显示以下错误。
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN
我备份和恢复我的数据,但它说:
to use near 'TYPE=MyISAM AUTO_INCREMENT=1' at line...
由于mysql版本不同,只需要更改:TYPE=MyISAM to ENGINE=MyISAM
是否可以运行命令来更改当前表的类型--使用TYPE=MyISAM来使用ENGINE=MyISAM
一个大的数据库文件,我无法打开由文本编辑器编辑。谢谢。
我在我的笔记本电脑上安装了xampp版本3.2.1,之前mysql在它上面工作得很好,但是当apache和其他人工作时,mysql突然停止了工作。当我点击开始mysql,它显示这个错误我使用windows10
8:52:32 AM [mysql] Status change detected: running
8:52:40 AM [mysql] Status change detected: stopped
8:52:40 AM [mysql] Error: MySQL shutdown unexpectedly.
8:52:40 AM [mysql]
当尝试启动XAMPP时,我得到以下信息:
[mysql] Error: MySQL shutdown unexpectedly.
11:02:20 [mysql] This may be due to a blocked port, missing dependencies,
11:02:20 [mysql] improper privileges, a crash, or a shutdown by another method.
11:02:20 [mysql] Press the Logs button to view error logs and check
在我的macOS High中,MySQLVersion5.7.12中存储了存储在/usr/local/ mysql -5.7.12-osx10.11-x86_64/data目录中的数据库文件。然后,我将mysql更新为5.7.23,并创建了一个新目录,作为/usr/local/mysql-5.7.23-macos10.13-x86_64/data,升级的mysql希望数据库文件驻留在其中。我可以简单地将数据库文件从旧目录复制到这个目录并恢复数据吗?我不想导出数据库并将它们导入回。