2.grant 作用在单个数据库上: grant select on testdb.*to dba@localhost;dba 可以查询 testdb 中的表。3.grant 作用在单个数据表上: grant select,insert,update,delete on testdb.orders to dba@localhost;4....
2.grant 作用在单个数据库上: grant select on testdb.*to dba@localhost;dba 可以查询 testdb 中的表。3.grant 作用在单个数据表上: grant select,insert,update,delete on testdb.orders to dba@localhost;4....
1)编辑 mysql 主配置文件 vim/etc/my.cnf 在[mysqld]字段下添加参数 skip-grant 2)重启数据库服务 service mysqld restart3)这样就可以进入数据库不用授权了 mysql-uroot 4)修改相应用户密码 use mysql;mysql>...
2.grant 作用在单个数据库上: grant select on testdb.*to dba@localhost;dba 可以查询 testdb 中的表。3.grant 作用在单个数据表上: grant select,insert,update,delete on testdb.orders to dba@localhost;4....
2.grant 作用在单个数据库上: grant select on testdb.*to dba@localhost;dba 可以查询 testdb 中的表。3.grant 作用在单个数据表上: grant select,insert,update,delete on testdb.orders to dba@localhost;4....