问题
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