Answers for "how import data in the database in mysql command line"

SQL
12

how to import database in mysql by cmd

mysql -u username -p database_name < file.sql
Posted by: Guest on February-10-2020
0

import database mysql command line

mysql> create new_database;
mysql> use new_database;
mysql> source (Here you need to import the path of the SQL file);

E.g.:
mysql> source E:/test/dump.sql;
Posted by: Guest on January-13-2022

Code answers related to "how import data in the database in mysql command line"

Code answers related to "SQL"

Browse Popular Code Answers by Language