select user(); 在輸入sql語句的過程當中 若是想要放棄本條語句
# mysql> set password = password('123');
# create user 'alex'@'192.168.16.%' identified by '123'; # create user 'eva'@'%' identified by '123'; # > mysql -ueva -p123 -h 192.168.16.39 遠程登陸一個mysql服務 # 新建立出來的用戶eva沒有使用數據庫的權限
# grant 操做(select/all) on '庫.表' to '用戶'@'ip地址' # grant select on '*.*' to 'eva'@'%'
# mysql> grant all on *.* to 'eva'@'%' identified by '123'
create database 數據庫名 [charset utf-8];
show databases; show tables
alter database 數據庫的名字 你要修改的內容;
drop database 數據庫名;
desc 表名