Centos7安装mysql

# 安装系统扩展(装一次就可以啦)
[root@localhost ~]# yum install epel-release.noarch
# 开始检索安装
[root@localhost ~]# yum list
[root@localhost ~]# yum list |grep mariadb
[root@localhost ~]# yum install mariadb*
[root@localhost ~]# stytemctl start mariadb
[root@localhost ~]# systemctl enable mariadb
[root@localhost ~]# mysql_secure_installation
[root@localhost ~]# systemctl restart mariiadb
[root@localhost ~]# mysql -uroot -p123456

 

posted @ 2019-02-22 11:27  王禹鑫  阅读(164)  评论(0编辑  收藏  举报