红联Linux门户
Linux帮助

CentOS 7安装MySQL

发布时间:2015-07-27 10:22:21来源:linux网站作者:ittinybird

说说在CentOS 7下安装MySQL数据库的过程,希望对大家有所帮助。


从MySQL官网下载源再用yum安装:

# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
# rpm -ivh mysql-community-release-el7-5.noarch.rpm
# yum install mysql-community-server


重新启动
# service mysqld restart


为数据库root用户设置密码:usr/bin/mysqladmin -u root password 123456


就这么简单,enjoy your time!


CentOS 7下源码安装MySQL 5.6:http://www.linuxdiyf.com/linux/12759.html

Linux编译安装MySQL5.6及修改字符集:http://www.linuxdiyf.com/linux/12546.html

Ubuntu 14.10下编译安装MySQL 5.6.23:http://www.linuxdiyf.com/linux/12221.html

CentOS6.5系统下RPM包安装MySQL5.6:http://www.linuxdiyf.com/linux/10779.html

CentOS系统安装MySQL支持远程连接的方法:http://www.linuxdiyf.com/linux/5.html