centos7 yum 安装mysql5.6

这里用科技大学的mysql yum源官方的源太慢

[root@localhost ~]# rpm -ivh http://mirrors.ustc.edu.cn/mysql-repo/mysql-community-release-el7.rpm
[root@localhost ~]# yum install mysql mysql-server
[root@localhost ~]# systemctl start mysqld
[root@localhost ~]# systemctl enable mysqld

初始化设置

[root@localhost ~]# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here. Enter current password for root (enter for none):

  

  

上一篇:QT中的延时函数


下一篇:linux 驱动学习笔记01--Linux 内核的编译