Answers for "import database by command line"

SQL
12

import database through command line

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

import database with cmd

mysql -h localhost -u username databasename < dump.sql
mysql -h localhost -u root txlabzco_skyphones_phase2 < C:UsersuserDocumentstxlabzco_skyphones_phase2.sql
Posted by: Guest on September-30-2021
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 "import database by command line"

Code answers related to "SQL"

Browse Popular Code Answers by Language