| Different steps to import SQL file by using command line in MySQL?
Below are the different steps to import SQL file in MySQL command line:-
(1)First we will open the MySQL command line.
(2)Now type the path of our MySQL bin directory and press "Enter".
(3)Now we will paste the SQL file inside the bin folder of MySQL server.
(4)Now we will create a database in MySQL.
(5)Now we will use the particular database where we want to import the SQL file.
(6)Now type source databasefileofSQL.sql and press "Enter"
(7)Now SQL file is upload successfully. | | |