码迷,mamicode.com
首页 > 数据库 > 详细

centos 6  简单安装mysql

时间:2018-09-13 01:11:39      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:tar   arch   mysqld   wget   grep   epo   --   centos 6   rem   

yum list installed | grep mysql

yum -y remove mysql-libs.i686

yum list installed | grep mysql

wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm

yum list installed | grep mysql

yum install mysql-community-release-el6-5.noarch.rpm

ls /etc/yum.repos.d

cat /etc/yum.repos.d/mysql-community.repo

vi /etc/yum.repos.d/mysql-community.repo

cat /etc/yum.repos.d/mysql-community.repo

yum install mysql-community-server

service mysqld start

grep "password" /var/log/mysqld.log 

mysql

mysql -u root -p

/aqru+UuM6Do/aqru+UuM6Do

 mysql -u root -p

 chkconfig --list |grep mysql

chkconfig mysqld on

chkconfig --list |grep mysql

vim /etc/my.cnf

 mysql -u root -p 1111

mysql -u root -p 

service mysqld restart

 mysql -u root -p

centos 6  简单安装mysql

标签:tar   arch   mysqld   wget   grep   epo   --   centos 6   rem   

原文地址:https://www.cnblogs.com/sxy199343/p/9638175.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有 京ICP备13008772号-2
迷上了代码!