时间:2021-07-01 10:21:17 帮助过:12人阅读
再次重启mysql服务端
\s;查看mysql软件配置
七、创建mysql用户
如何创建用户和密码
create user "username"@"192.118.1.1" identified by "password";
create user "username"@"192.117.1.%" identified by "password";
create user "username"@"%" identified by "password";
mysql -uusername -h 192.118.1.1 -P 3306 -p
给当前用户授权
grant all privileges on db1.ti to “username”@"192.118.1.1"
取消授权
remove .........................................
show databases; 查看所有的数据库
use db1; 使用数据库
创建表 create table t1(id int,name char(10)) defult charset="utf8";
insert into t1(id,name) values(1,"zhang"),(2,"qing");
查询所有数据
select * from t1;
查询个别字段的数据;
select id from t1;
MySQL服务器
标签:压缩 增删改查 show mysq bst 恢复 文件夹 hang creat