Centos6.6 以rpm方式安装mysql5.6
2024-08-29 02:13:58
一.查看系统中有没有mysql的源
yum repolist all | grep mysql
二.配置源
1.配置源
参考mysql官方给出的源配置,https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/
新建文件
#/etc/yum.repos.d/mysql-community.repo
# Enable to use MySQL 5.6
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/6/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
2.配置key
新建/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql文件
从https://dev.mysql.com/doc/refman/5.6/en/checking-gpg-signature.html复制key过去
三.安装
1.再次查看源
yum repolist all | grep mysql
2.安装
yum install mysql-community-server
3.启动
service mysqld restart
4.重置默认密码
mysql -u root -p mysql>use mysql;
mysql>UPDATE user SET Password=PASSWORD('newpwd') where USER='root';
mysql>FLUSH PRIVILEGES;
编译安装请参考:http://www.cnblogs.com/itfenqing/p/6054860.html
最新文章
- 深入理解javascript原型和闭包(1)——一切都是对象
- 初涉java库--ArrayList
- XmlDocument解析Soap格式文件案例:
- Python中如何读取xls中的数据
- UIkit框架之UIcollection
- centos 截图命令 screenshot
- debugging tools
- AAABBBBCCCC
- xbmc
- bzoj3573[Hnoi2014]米特运输
- Ubuntu与Ubuntu系统之间的mount挂载
- 值传递 &; 引用传递
- ThinkPadT440 Ubuntu14.04 RTL8192EE 链接无线网
- sql中select语句的逻辑执行顺序
- jmeter利用自身代理录制电脑脚本(一)
- python_unittest学习小结
- 将一个JSON数组[{},{},{}]按一定规则合并到另一个JSON数组[{},{},{}]
- 35 个最好用的 Vue 开源库
- MySQL Session--批量KILL会话
- Site.ForProductsOfApple