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[[email protected]]# mysql -S /opt/mysql/aordb/mysql.sock -u -p //Select the database that you want to use[[email protected]]# 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[[email protected]]# source filename.sql;