mysql06 从git下载sql数据并加载到msyql


1.cd Desktop

2.从github下载mysql表文件数据

git clone https://github.com/shiyanlou/SQL3.git

查看SQL3文件里面的MySQL-03-01.sql是否存在。

 

3.删除之前的mysql_shiyan,因为名字冲突。 

drop database mysql_shiyan;

加载文件中的数据到mysql

source /home/shiyanlou/Desktop/SQL3/MySQL-03-01.sql