当前位置:首页 - MySql

linux centos如何修改mysql root用户密码

作者:高景洋 日期:2023-05-01 15:02:20 浏览次数:1005
use mysql;

set sql_safe_updates=0; 

update user set authentication_string=password('12345678') where user='root';

flush privileges;
本文永久性链接:
<a href="http://r4.com.cn/art231.aspx">linux centos如何修改mysql root用户密码</a>
当前header:Host: r4.com.cn X-Host1: r4.com.cn X-Host2: r4.com.cn X-Host3: 127.0.0.1:8080 X-Forwarded-For: 18.97.9.175 X-Real-Ip: 18.97.9.175 X-Domain: r4.com.cn X-Request: GET /art231.aspx HTTP/1.1 X-Request-Uri: /art231.aspx Connection: close User-Agent: CCBot/2.0 (https://commoncrawl.org/faq/) Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 If-Modified-Since: Thu, 08 Aug 2024 09:58:21 GMT Accept-Encoding: br,gzip