91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

After mysql installation, we need to change the password of root as below

發布時間:2020-08-10 18:51:00 來源:ITPUB博客 閱讀:140 作者:yuanqc 欄目:MySQL數據庫

1. initial mysql like below, With the --initialize-insecure option, no root password is generated.

[LAB] root@jptkytcdh01vl /etc/init.d # /usr/sbin/mysqld --initialize-insecure --user=mysql --datadir=/var/lib/mysql

2018-08-03T01:26:56.052349Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2018-08-03T01:26:56.054339Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.

2018-08-03T01:26:56.054378Z 0 [ERROR] Aborting

 

2. got error as above, need to move existing datadir first.

 

mv /var/lib/mysql /var/lib/mysql_20180803

 

[LAB] root@jptkytcdh01vl /etc/init.d # /usr/sbin/mysqld --initialize-insecure --user=mysql --datadir=/var/lib/mysql

 

[LAB] root@jptkytcdh01vl /etc/init.d # service mysqld start

Starting mysqld:                                           [  OK  ]

 

3. then login and reset the password.

 

[LAB] root@jptkytcdh01vl /etc/init.d # mysql -u root

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 3

Server version: 5.7.23 MySQL Community Server (GPL)

 

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

 

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

 

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

 

mysql>

 

 

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

Query OK, 0 rows affected (0.00 sec)

 

Doc.

https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html

 

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

毕节市| 咸丰县| 汕头市| 五常市| 兴文县| 商城县| 临澧县| 建阳市| 平陆县| 青海省| 雅江县| 本溪市| 德江县| 齐齐哈尔市| 孟津县| 库尔勒市| 长兴县| 太和县| 托克逊县| 安溪县| 泗阳县| 岳阳县| 德兴市| 开封县| 荥阳市| 启东市| 高青县| 彰武县| 金秀| 安康市| 醴陵市| 阿拉善盟| 射阳县| 永靖县| 肥城市| 建平县| 白玉县| 永定县| 洛南县| 伊春市| 安顺市|