Uploaded by Cassandra Hagstoz

Importing MYSQL Dump - Terminal

advertisement
Quick Guide to Importing MYSQL Dump
TERMINAL
>mysql -u root -p
*Create database that the dump will be imported into if not already created*
>Create database <>;
MYSQL
>set global net_buffer_length=1000000;
>set global max_allowed_packet=1000000000;
>SET foreign_key_checks = 0;
>exit
TERMINAL
>mysql -u root -p {DATABASE NAME} < {/PATH/TOFILE/xxx.sql}
>password:
*Should complete successfully – no message will appear but it will redirect you to current terminal directory*
MYSQL
>mysql -u root -p
>SET foreign_key_checks = 1;
Verify imported data on MYSQL Workbench
•
•
•
Navigate to schemas
Refresh schemas
Left click table to select top 100 rows
Download