①:update mysql.user set Host=‘%‘ where Host=‘::1‘;
②:update mysql.user set password=password(‘1234‘);
③:flush privileges;
2.连接不到Linux的数据库的修改方法
①:chmod 644 /data0/mysql/3306/my.conf
②:/data0/mysql/3306/mysql start
时间: 2025-01-29 05:22:26
①:update mysql.user set Host=‘%‘ where Host=‘::1‘;
②:update mysql.user set password=password(‘1234‘);
③:flush privileges;
2.连接不到Linux的数据库的修改方法
①:chmod 644 /data0/mysql/3306/my.conf
②:/data0/mysql/3306/mysql start