本人菜鸟,初学MYSQL,请问在命令提示符(cmd)下如何将我已经写好的建库和建表语句导入到Mysql数据库中。
例如:
create database test;
use test;
create table login_set(
id int(4) auto_increment not null primary key,
Log_open int(3) not null,
Start_money float(8),
is_autocheck int(3),
by1 varchar(1000),
by2 varchar(1000)
);create table estop_list(
id int(4) auto_increment not null primary key,
estop_type varchar(50),
estop_value varchar(100)
);这些内容是我写在testsql.txt中的内容,在D盘的跟目录下。
现在我想通过cmd的命令提示符将改内容导入到mysql数据库中运行。请问命令我应该怎么打?在线等,谢谢各位。
如果大家不明白我的意思,我随时将问题补充。诚心求解!