首页 > 数据库技术 > 详细

centos 安装mysql

时间:2016-07-30 16:26:05      阅读:119      评论:0      收藏:0      [点我收藏+]

  

wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

rpm -ivh mysql-community-release-el7-5.noarch.rpm 

yum install mysql-community-server

mysql -u root
set password =password(‘你的密码‘);

忘记密码

vim /etc/my.cnf

mysqld添加
skip-grant-tables

mysql -u root

use mysql 

update user set authentication_string = PASSWORD(‘123‘) where User=‘root‘

flush privileges

quit

service mysqld restart

  

 

centos 安装mysql

原文:http://www.cnblogs.com/yangxunwu1992/p/5721029.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!