1.登錄MySql
mysql -u root -p
2.(可選)創(chuàng)建數(shù)據(jù)庫(kù)(已有則不用創(chuàng)建)
create database test;
3.選擇數(shù)據(jù)庫(kù)
use test;
4.導(dǎo)入sql文件
source /xxx/xxx/xxx/xxx.sql
1.登錄MySql
mysql -u root -p
2.(可選)創(chuàng)建數(shù)據(jù)庫(kù)(已有則不用創(chuàng)建)
create database test;
3.選擇數(shù)據(jù)庫(kù)
use test;
4.導(dǎo)入sql文件
source /xxx/xxx/xxx/xxx.sql