
复制[root@mgr2 bin]#cd /zcloud/db/abcMgr/abcMgr02/mysql/bin [root@mgr2 bin]# ./mysqld --initialize --user=mysql [root@mgr2 bin]# ./mysqld_safe --user=mysql & [1] 19556 [root@mgr2 bin]# 2020-03-12T01:32:26.503048Z mysqld_safe Logging to ‘/rock/mysqldata/error.log’. 2020-03-12T01:32:26.536292Z mysqld_safe Starting mysqld daemon with databases from /rock/mysqldata [root@mgr2 bin]# [root@mgr2 bin]# mysql -uroot -p -P3307 Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 8.0.19 Copyright © 2000,篇搞
2019, 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. root@localhost:(none) 09:33:06 >alter user user() identified by ‘root1234’; Query OK, 0 rows affected (0.00 sec) root@localhost:(none) 09:33:26 >flush privileges; Query OK, 0 rows affected (0.00 sec) root@localhost:(none) 09:33:31 >exit Bye 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.