首页 > 系统 > CentOS > 正文

CentOS6.5下安装Mysql5.7.18的教程详解

2020-10-28 18:46:11
字体:
来源:转载
供稿:网友

CentOS6.5下安装Mysql5.7.18,首先先下载mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz,传到CentOS6.5系统下的/usr/local目录下,执行如下命令

yum search libaio # search for infoyum install libaio # install librarygroupadd mysqluseradd mysql -g mysqltar -zxvf /usr/local/mysql-5.7.18-linux-glibc2.5-x86_64.tar.gzmv mysql-5.7.18-linux-glibc2.5-x86_64/ mysqlcd mysql/mkdir datacd ../chown -R mysql:mysql mysql/chmod -R 755 mysql/cd mysql./bin/mysqld --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --initialize

查找密码,一般在命令的末尾,

2017-04-21T02:36:15.620346Z 1 [Note] A temporary password is generated for root@localhost: o*s#gqh)F4Ck
./support-files/mysql.server startcp support-files/mysql.server /etc/init.d/mysqldchmod 755 /etc/init.d/mysqldservice mysqld restartmysql -uroot -po*s#gqh)F4Ckalter user 'root'@'localhost' identified by 'newpswd'update user set user.Host='%' where user.User='root';flush privileges;

以上所述是小编给大家介绍的CentOS6.5下安装Mysql5.7.18的教程详解,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对武林网网站的支持!

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表