首页 > 教育培训

ubuntu系统怎么解除密码 ubuntu20.04修改mysql密码?

ubuntu20.04修改mysql密码?

先进入root模式:

sudo-s

1

ubuntu系统怎么解除密码 ubuntu20.04修改mysql密码?

1

然后输入命令mysql

:/home/cdd/desktop/django/typeidea-env/typeidea/typeidea#mysql

welcometothemysqlmonitor.commandsendwithorg.

yourmysqlconnectionidis22

serverversion:8.0.21-0ubuntu0.20.04.4(ubuntu)

copyright(c)2000,2020,oracleand/oritsaffiliates.allrightsreserved.

oracleisaregisteredtrademarkoforaclecorporationand/orits

affiliates.othernamesmaybetrademarksoftheirrespective

owners.

type#39help#39or#39h#39forhelp.type#39c#39toclearthecurrentinputstatement.

mysqlgt

1

2

3

4

5

6

7

8

9

10

11

12

13

14

1

2

3

4

5

6

7

8

9

10

11

12

13

14

下面就是修改初始密码的步骤:

现在mysql命令下输入

mysqlgtusemysql

1

1

然后修改密码:

mysqlgtalteruser#39root#39@#39localhost#39identifiedwithcaching_sha2_passwordby#39你的新密码#39

1

1

到这里新密码就设置好了,下面我们登录下:

$mysql-uroot-p

enterpassword:#这里输入你的新密码

welcometothemysqlmonitor.commandsendwithorg.

yourmysqlconnectionidis28

serverversion:8.0.21-0ubuntu0.20.04.4(ubuntu)

copyright(c)2000,2020,oracleand/oritsaffiliates.allrightsreserved.

oracleisaregisteredtrademarkoforaclecorporationand/orits

affiliates.othernamesmaybetrademarksoftheirrespective

owners.

type#39help#39or#39h#39forhelp.type#39c#39toclearthecurrentinputstatement.

mys

ubuntu12.04删除了管理员密码和root密码后无法更改设置,现如何重置,求大神指点~~详细点~~~谢谢~?

“更改root密码:sudopasswdroot更改管理员密码:把上面的root改成相应的账号名。”希望能帮到你

密码root#39toclearthecurrentinputstatementcopyright(c)20002020oracleand\/oritsaffiliates.allrightsreserved.oracleisaregisteredtrademarkoforaclecorporationand\/oritsaffiliates.othernamesmaybetrademarksoftheirrespectiveow

原文标题:ubuntu系统怎么解除密码 ubuntu20.04修改mysql密码?,如若转载,请注明出处:https://www.wmyjt.com/tag/9873.html
免责声明:此资讯系转载自合作媒体或互联网其它网站,「共道号」登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,文章内容仅供参考。