mysql 5.6.21 rpm_centos_mysql5.6.21_rpm安装
1.查看操作系统相关信息。
[root@linuxidc ~]# cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m
[root@linuxidc ~]# uname -a
Linux linuxidc 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
2.创建需要下载rpm软件包的目录。
[root@linuxidc ~]# mkdir -p /taokey/tools
3.查看下是否有系统自带mysql的rpm包,如果有,需要删除自带的旧rpm包。
[root@linuxidc ~]# rpm -qa | grep mysql
mysql-libs-5.1.71-1.el6.x86_64
[root@linuxidc ~]# yum -y remove mysql-libs-5.1*
[root@linuxidc ~]# rpm -qa | grep mysql
[root@linuxidc ~]#
4.在MySQL官网下载安装MySQL-5.6.21所需的rpm软件包。
需要下载三个rpm软件包:
MySQL-client-5.6.21-1.rhel5.x86_64.rpm
MySQL-devel-5.6.21-1.rhel5.x86_64.rpm
MySQL-server-5.6.21-1.rhel5.x86_64.rpm
[root@linuxidc ~]# cd /taokey/tools/
[root@linuxidc tools]# wget http://dev.mysql.com/Downloads/MySQL-5.6/MySQL-server-5.6.21-1.rhel5.x86_64.rpm
[root@linuxidc tools]# wget http://dev.mysql.com/Downloads/MySQL-5.6/MySQL-devel-5.6.21-1.rhel5.x86_64.rpm
[root@linuxidc tools]# wget http://dev.mysql.com/Downloads/MySQL-5.6/MySQL-client-5.6.21-1.rhel5.x86_64.rpm
5.下载完之后,安装三个rpm软件包。
[root@linuxidc tools]# rpm -ivh MySQL-server-5.6.21-1.rhel5.x86_64.rpm
error: Failed dependencies:
libaio.so.1()(64bit) is needed by MySQL-server-5.6.21-1.rhel5.x86_64
libaio.so.1(LIBAIO_0.1)(64bit) is needed by MySQL-server-5.6.21-1.rhel5.x86_64
libaio.so.1(LIBAIO_0.4)(64bit) is needed by MySQL-server-5.6.21-1.rhel5.x86_64
安装MySQL-server报错,原因是没有安装libaio,系统缺少libaio.so此软件包,下边yum安装一下libaio.so软件包。
[root@linuxidc tools]# yum install -y libaio
[root@linuxidc tools]# rpm -ivh MySQL-server-5.6.21-1.rhel5.x86_64.rpm
[root@linuxidc tools]# rpm -ivh MySQL-client-5.6.21-1.rhel5.x86_64.rpm
Preparing... ########################################### [100%]
1:MySQL-client ########################################### [100%]
[root@linuxidc tools]# rpm -ivh MySQL-devel-5.6.21-1.rhel5.x86_64.rpm
Preparing... ########################################### [100%]
1:MySQL-devel ########################################### [100%]
6.修改配置文件位置。
[root@linuxidc tools]# cp /usr/share/mysql/my-default.cnf /etc/my.cnf
7.初始化MySQL及修改MySQL默认的root密码。
[root@linuxidc tools]# /usr/bin/mysql_install_db
[root@linuxidc tools]# ps -ef | grep mysql
root 2188 1 0 14:48 pts/1 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/linuxidc.pid
mysql 2303 2188 30 14:48 pts/1 00:00:02 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/linuxidc.err --pid-file=/var/lib/mysql/linuxidc.pid
root 2331 1853 0 14:49 pts/1 00:00:00 grep mysql
[root@linuxidc tools]# service mysql start
[root@linuxidc tools]# netstat -anpt | grep 3306
tcp 0 0 :::3306 :::* LISTEN 2303/mysqld
[root@linuxidc tools]# more /root/.mysql_secret
# The random password set for the root user at Thu Apr 9 14:43:59 2015 (local time): F6K3v_xggFoLQeiN
[root@linuxidc tools]# mysql -uroot -pF6K3v_xggFoLQeiN
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.21
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> SET PASSWORD = PASSWORD('123.com');
mysql> exit
Bye
[root@linuxidc tools]# mysql -uroot -p123.com
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.6.21 MySQL Community Server (GPL)
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
8.设置MySQL服务开机自启动。
[root@linuxidc tools]# chkconfig mysql on
[root@linuxidc tools]# chkconfig mysql --list
mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off
mysql 5.6.21 rpm_centos_mysql5.6.21_rpm安装相关推荐
- mysql 4.0.21 下载_W2K下安装 MYSQL 4.0.21 手记
1.从www.mysql.com下载推荐版本(recommended) 4.0.21,我下载的是ZIP而非安装版 2.解压文件到一个目录,我是e:\mysql,这个目录下应该有bin.data及其他目 ...
- mysql 5.7 window x64_window环境配置Mysql 5.7.21 windowx64.zip免安装版教程详解
1.从官网下载mysql-5.7.21-windowx64.zip mysql下载页面 2.解压到合适的位置(E:mysql) 这名字是我改过的 3.配置环境变量,将E:mysqlbin 添加到PAT ...
- 重新安装mysql5.7.21_linux 安装mysql 5.7.21详解以及安装过程中所遇问题解决
在安装过程中所遇到的问题有: 1.my-default.cnf文件找不到 2.mysql启动报错 3.mysql临时密码无法登录 安装环境centos 6.0 下载数据库: [root@CLangua ...
- MySQL 5.6.21 最新版的安装
上一篇 写了对于入门者来说困难的事情,博主最近装了mysql软件,下面来看看mysql的安装. 下载mysql软件安装程序,我的是在百度软件中心上下载的,选择百度是因为里面没有什么捆绑软件: 下载完了 ...
- mysql 5.7.21 winx64_mysql-5.7.21-winx64安装过程
下载好的mysql-5.7.21-winx64解压后是没有data和my.ini两个文件的,先新建my.ini文件和data空文件夹 1,my.ini文件配置如下: [mysql] # 设置mysql ...
- mysql5.7.21压缩版_mysql5.7.21解压版安装配置图文
本文主要和大家详细介绍win10下mysql 5.7.21解压版安装配置方法图文教程,具有一定的参考价值,感兴趣的小伙伴们可以参考一下,希望能帮助到大家. 1. 官网下载MYSQL压缩文件. 下载网址 ...
- mysql 8.0.21 安装配置方法图文教程
一.下载 1.下载安装包 mysql下载路径 直接点击链接也可以下载:mysql 8.0.21 2.解压压缩包 解压到安装的目录: 3.在此目录下新建my.ini配置文件 1 2 3 4 5 6 7 ...
- mysql安装教程8.0.21安装,mysql 8.0.21 安装配置方法图文教程
记录了mysql 8.0.21 的安装配置方法,分享给大家. 一.下载 1.下载安装包 mysql下载路径 直接点击链接也可以下载:mysql 8.0.21 2.解压压缩包 解压到安装的目录: 3.在 ...
- centos7 源码编译安装mysql 5.7.21
1)下载安装包, 5.7版本需要下载一个Boost C++ 1.59.0,(下载比较慢) #cd /data/soft # wget https://dev.mysql.com/get/Downloa ...
最新文章
- ConnectionAbortedError: [WinError 10053] 您的主机中的软件中止了一个已建立的连接
- asp.net 发送邮件
- 离开当前屏幕的判断方法_Android App内存泄露测试方法总结
- G1与CMS的区别是什么
- SAP SADL和SAP Hybris DTO, 以及SAP C4C的transformation object
- NES模拟器开发-PPU笔记
- 如何在TensorFlow中通过深度学习构建年龄和性别的多任务预测器
- [Linux笔记]重装windows后重装grub
- 性能为王:选择模拟监控的10大理由!
- (第十一周)俄罗斯方块测试报告
- 实现导出excel,pdf功能
- 【读书笔记】《M型社会》大前研一
- 微信小程序使用Socket
- 侯捷C++八部曲笔记(二、STL标准库和泛型编程)
- Sql Server 2008R2 安装教程
- Java实训—VII,VIII
- BMP与PPM格式的转换
- 解决vivado赋reg时出现的cannot assign to memory或者cannot assign a packed type to an unpacked type
- 无需下载就能使用的图像编辑器?能代替 Photoshop 吗?#Photopea
- lubuntu输入法设置_Ubuntu 18.04 16.04 设置输入法切换方法 中文输入法
热门文章
- 使用Q查询设计搜索框
- 学习总在继续......
- [工具] CuteMarkEd
- HDU 5763 Another Meaning KMP+DP
- HttpWebRequest 忽略证书
- 2-算法 矩阵 数组类
- python数据分析报告范文_Python数据实战分析之定量和定性数据分析
- Python+OpenGL实现物体快速运动时的模糊效果
- 会议通知|2019暑期全国高校Python数据分析与实训课程高级研修班
- 使用Python+pillow绘制矩阵盖尔圆