MySQL ubuntu启动

service mysql start 

启动

service mysql restart

重启

service mysql stop

停止

mysql -uroot -ppassword 

登入mysql

show databases;

展示数据库db

create database xxx;

建db

show tables;

展示表

create table xxx()charset=utf8;

建表

select * from xxx; 查表

原文地址:https://www.cnblogs.com/unixshell/p/3155583.html