1.创建数据库

2.使用数据库

3.创建表及字段名

4.像表中插入数据

5.查找数据表中数据

6.为用户授权
格式:
grant 权限 on 数据库.* to username@登录主机 identified by "password";
演示样例:
grant all privileges on foo.* to dog@localhost identified by '123456';
然后须要运行刷新权限的命令:
flush privileges;
1.创建数据库

2.使用数据库

3.创建表及字段名

4.像表中插入数据

5.查找数据表中数据

6.为用户授权
格式:
grant 权限 on 数据库.* to username@登录主机 identified by "password";
演示样例:
grant all privileges on foo.* to dog@localhost identified by '123456';
然后须要运行刷新权限的命令:
flush privileges;

被折叠的 条评论
为什么被折叠?