接下来。装逼开始....
命令行创建数据库
示例1:创建数据库testing
root@7c6316b19d80:/# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 16
Server version: 5.6.51 MySQL Community Server (GPL)
mysql> create database testing;
Query OK, 1 row affected (0.00 sec)
mysql>
注意点:在命令行里执行sql语句,一定不要忘了语句后面加“ ; ”,不然就会报错,执行不成功
数据库 testing 已经创建成功......