CentOS   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了CentOS 使用yum安装MYSQL大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

  来源:https://typecodes.com/linux/yuminstallmysql5710.html wget -i http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm yum -y install mysql57-community-release-el7-7.noarch.rpm yum -y i

 

来源:https://typecodes.com/linux/yuminstallMysqL5710.html

wget -i http://dev.MysqL.com/get/MysqL57-community-release-el7-7.noarch.rpm
yum -y install MysqL57-community-release-el7-7.noarch.rpm
yum -y install MysqL-community-server
systemctl start  MysqLd.service

使用YUM安装并启动MysqL服务后,MysqL进程会自动在进程日志中打印root用户的初始密码:
[[email protected] ~]# MysqL -uroot -p
Enter password:             #######输入认的root密码后回车
Welcome to the MysqL monitor.  Commands end with ; or \g.
Your MysqL connection id is 2
Server version: 5.7.10

Copyright (C) 2000,2015,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> ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘new password‘;
Query OK,0 rows affected (0.00 seC)

MysqL> exit
Bye

大佬总结

以上是大佬教程为你收集整理的CentOS 使用yum安装MYSQL全部内容,希望文章能够帮你解决CentOS 使用yum安装MYSQL所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。