MySQL console slow on import of huge SQL files

天大地大妈咪最大 提交于 2019-12-20 14:14:11

问题


My import of SQL via the MySQL console is rather slow, and, as our SQL file is increasing every day, I would like to know if there are any alternatives on how to import an SQL file faster.

Changing to Oracle or other systems is not an option, the configuration has to stay the same.

Currently the SQL file is: 1.5 GB. I'm on WAMP with Apache 2.2.14, PHP 5.2.11 and MySQL 5.1.41.

Perhaps the issue is here, import is done by a simple:

mysql -u username -p dbname < sqlfilename.sql

Any suggestions?

来源:https://stackoverflow.com/questions/2956407/mysql-console-slow-on-import-of-huge-sql-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!