centos 安装mysql 5.5.44
来源:互联网 发布:中国小镇 知乎 编辑:程序博客网 时间:2024/06/05 19:53
centOS 7.2
mysql5.5.44
1、卸载系统自带的 mariadb-lib
[root@centos-linux ~]# rpm -qa|grep mariadb
mariadb-libs-5.5.44-2.el7.centos.x86_64
[root@centos-linux ~]# rpm -e mariadb-libs-5.5.44-2.el7.centos.x86_64 --nodeps
2、下载mysql5.5.44 安装包
(csdn限制上传60M。。。 自己的七牛服务器)
http://oubnkvywd.bkt.clouddn.com/MySQL-5.5.44-1.linux2.6.x86_64.rpm-bundle.tar
然后解压[root@linux_node_1 src]# tar -xvf mysql-5.7.16-1.el7.x86_64.rpm-bundle.tar
-rw-r--r-- 1 root root 190187520 Aug 7 22:58 MySQL-5.5.44-1.linux2.6.x86_64.rpm-bundle.tar
-rw-r--r-- 1 7155 wheel 17779956 May 5 2015 MySQL-client-5.5.44-1.linux2.6.x86_64.rpm
-rw-r--r-- 1 7155 wheel 6511721 May 5 2015 MySQL-devel-5.5.44-1.linux2.6.x86_64.rpm
-rw-r--r-- 1 7155 wheel 67638061 May 5 2015 MySQL-embedded-5.5.44-1.linux2.6.x86_64.rpm
-rw-r--r-- 1 7155 wheel 50589717 May 5 2015 MySQL-server-5.5.44-1.linux2.6.x86_64.rpm
-rw-r--r-- 1 7155 wheel 2028525 May 5 2015 MySQL-shared-5.5.44-1.linux2.6.x86_64.rpm
-rw-r--r-- 1 7155 wheel 3956705 May 5 2015 MySQL-shared-compat-5.5.44-1.linux2.6.x86_64.rpm
-rw-r--r-- 1 7155 wheel 41669904 May 5 2015 MySQL-test-5.5.44-1.linux2.6.x86_64.rpm
3.安装 按顺序执行(有依赖关系)
rpm -ivh MySQL-shared-compat-5.5.44-1.linux2.6.x86_64.rpm
rpm -ivh MySQL-client-5.5.44-1.linux2.6.x86_64.rpm
rpm -ivh MySQL-server-5.5.44-1.linux2.6.x86_64.rpm
rpm -ivh MySQL-devel-5.5.44-1.linux2.6.x86_64.rpm
rpm -ivh MySQL-embedded-5.5.44-1.linux2.6.x86_64.rpm
rpm -ivh MySQL-test-5.5.44-1.linux2.6.x86_64.rpm
4.启动mysql服务
service mysql start
5.修改登录密码
/usr/bin/mysqladmin -u root password '123'
登录数据库
show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
+--------------------+
完成!
- centos 安装mysql 5.5.44
- Centos 6.4 +Mysql 5.5 安装
- centos 6.5 安装 mysql 5.5
- 安装centos安装mysql
- CentOS 5.5 编译安装MySQL 5.5
- CentOS下编译安装mysql 5.5.10
- centos下 MySQL 5.5.14 编译安装
- centos源码编译安装mysql-5.5.13
- Centos 6.1源码安装mysql 5.5.21
- CentOS 5.5源码安装apache+mysql+php
- CentOS 源码安装 mysql 5.5.x
- Centos 5.6编译安装mysql 5.5.11
- centos 编译安装 mysql 5.5x
- centos 5.9 安装mysql 5.5.31
- CentOS 5.5 编译安装Apache+MySQL+PHP
- centos 6.2 安装mysql-5.5.17
- CentOS 5.5(Apache+PHP+Mysql)安装
- CentOS-6.3安装Mysql-5.5.29
- Java参数传递,值传递
- querylist 入门query部署,获取网页的信息。
- Excel导入SQL时,如何动态获得Sheet的名字
- stm32成长记之滴答时钟
- 开始多线程
- centos 安装mysql 5.5.44
- 一起来点React Native——你必须要会点FlexBox布局
- 20170803~20170804
- 解析动态代理模式与跟自定义注解配合使用以及事务注解原理
- java Logger类和Apache slf4j
- 如何在阿里云安装和调用R程序
- python 列表分片
- JavaScript中arguments关键字
- Linux 虚拟机:Network error: Connection refused 排查