1. 连接mysql
[root@hadoop4 ~]# mysql -uroot -p
2. 创建库
mysql> CREATE DATABASE spring;
3. 查看并切换数据库
mysql> show databases;
mysql> use spring
3. 执行sql文件(source /usr/user.sql)
标签:文件,spring,mysql,知心,sql,Linux From: https://www.cnblogs.com/yappleorange/p/17291548.html