1.修改数据库对指定用户和ip权限 a. IP为192.168.0.1的用户jack拥有对数据库datebase的表table的 增删改查权限, ,连接密码为password grant select,insert,update,delete,create,drop on database.table to jack@192.168.0.1 identified by 'password'; b. 192.168.0.1的用户jack拥有对数据库datebase所有表的所有操作权限,连接密码为p
参考:https://www.cnblogs.com/activiti/p/7810166.html # alter user 'root'@'localhost' identified by '123456' # 或者 update user set authentication_string = password('root'), password_expired = 'N', password_last_changed = now() where user = 'root';
1.my.ini文件,删除最后一行的"skip-grant-tables 2.执行"use mysql;",使用mysql数据库; 3.执行:update mysql.user set password=password("123456") where user="root" 4.grant all privileges on . to root@'%' identified by '123456' with grant option