標籤:word 安裝mysql 使用 TE iat gis lin com cti
來源:https://typecodes.com/linux/yuminstallmysql5710.html
wget -i http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpmyum -y install mysql57-community-release-el7-7.noarch.rpmyum -y install mysql-community-serversystemctl start mysqld.service
使用YUM安裝並啟動MySQL服務後,MySQL進程會自動在進程日誌中列印root使用者的初始密碼:
[[email protected] ~]# mysql -uroot -pEnter password: #######輸入預設的root密碼後斷行符號Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 2Server version: 5.7.10Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.mysql> ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘new password‘;Query OK, 0 rows affected (0.00 sec)mysql> exitBye
CentOS 使用yum安裝MYSQL