mysql

2021/10/31 19:12:21

本文主要是介绍mysql,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

开启不验证登录

mysql配置文件[mysqld]下输入

skip-grant-tables

重启服务

修改密码

use mysql;

update mysql.user set authentication_string=password('root_password') where user='root';

开启远程登录

先修改密码策略

set global validate_password_policy=0;

set global validate_password_length=1;

修改更新密码

alter user 'root'@'localhost' identified by 'root';

开启远程登录用户root密码为root登录网络为*.*任意网段

grant all privileges on *.* to 'root'@'%' identified by 'root';



这篇关于mysql的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程