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

centos6.8安装mysql并配置远程登陆

时间:2018-03-25 18:08:11      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:修改   tar   local   ase   color   new   ack   comm   back   

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

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

3.yum install mysql-community-server

4.service mysqld start

5.mysql

6.修改密码

  mysql> SET PASSWORD FOR ‘root‘@‘localhost‘ = PASSWORD(‘newpass‘);

7.

  grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘上一部的newpass‘ with grant option;

  FLUSH PRIVILEGES;

8.service mysqld restart

 

  

centos6.8安装mysql并配置远程登陆

标签:修改   tar   local   ase   color   new   ack   comm   back   

原文地址:https://www.cnblogs.com/sumcet/p/8645436.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!