×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Import Large SQL Files into MySQL
 

Submitted by: M S Sridhar(sridhar.ms@gmail.com)

Wednesday Sep 13th 2017 by M S Sridhar

Language: SQL, Expertise: Intermediate - Follow these steps to import large SQL files into MySQL.

Do you want to import data from a large SQL file into MySQL? Using the following mechanism, you will be able to import it with the file filename.sql. Just follow the steps listed below:

//Connect to mysql
[root@dev]# mysql -S /opt/mysql/aordb/mysql.sock -u -p 
//Select the database that you want to use
[root@dev]# use 
//Use the source command to import the file. Here the assumption is that the file filename.sql is present from the folder where you have tried to connect to mysql as in line # 1
[root@dev]# source filename.sql;
Home
Mobile Site | Full Site
Copyright 2018 © QuinStreet Inc. All Rights Reserved