A 1.sql file, the file size is 11GB, and the sql content is an Insert statement of more than 100 million pieces of data, which needs to be imported into MySQL.
Environment: (close to production environment)
CentOS 6.5 MySQL 5.7.17
Since the file size exceeds 4G, use WinScp to transfer the file to the server /opt
mysql -u root -p -h 192.168.1.207 -D databaseName < /opt/1.sql
-- 输入密码
Wait an afternoon, it's done.
We need to import data from MySql to SqlServer. The amount of data is in the hundreds of millions. We choose Microsoft SQL Server Migration Assistant v5.3 for MySQL , a tool provided by Microsoft. Before installation, we need to install mysql-connector-odbc