新建用户
1 | create user 'username'@'localhost' identified by '******'; |
删除用户
1 | delect from user where user='username' and Host='localhost'; |
改指定用户password
1 | update mysql.user set password=password('新密码') where User='username' and Host="localhost"; |
1 | create user 'username'@'localhost' identified by '******'; |
1 | delect from user where user='username' and Host='localhost'; |
1 | update mysql.user set password=password('新密码') where User='username' and Host="localhost"; |
centos-mysql-remoteaccess
mysql导入数据出现MySQL server has gone away的解决方法