• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase
您的位置:首页 > 数据库 >Mysql > centos 6.9安装mysql的实例教程

centos 6.9安装mysql的实例教程

作者:匿名 字体:[增加 减小] 来源:互联网 时间:2018-12-05

匿名通过本文主要向大家介绍了centos,mysql,安装等相关知识,希望本文的分享对您有所帮助
1、确认mysql是否已安装,有下面的代码可知

[root@cdh1 zjl]# yum list installed mysql*Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirrors.zju.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com Installed Packages MySQL-python.x86_64 1.2.3-0.3.c1.1.el6 @base mysql-libs.x86_64 5.1.73-8.el6_8 @anaconda-CentOS-201703281317.x86_64/6.9

2、卸载已安装的mysql,建议使用yum命令,因为yum命令可以自动删除与mysql相关的依赖;如果使用rpm命令,则还需要手动去删除和mysql相关的文件,比较麻烦

[root@cdh1 zjl]# yum remove MySQL-python.x86_64 mysql-libs.x86_64 Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Remove Process Resolving Dependencies--> Running transaction check---> Package MySQL-python.x86_64 0:1.2.3-0.3.c1.1.el6 will be erased--> Processing Dependency: MySQL-python for package: cloudera-manager-agent-5.11.1-1.cm5111.p0.9.el6.x86_64---> Package mysql-libs.x86_64 0:5.1.73-8.el6_8 will be erased--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: 2:postfix-2.6.6-8.el6.x86_64--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: 2:postfix-2.6.6-8.el6.x86_64--> Processing Dependency: mysql-libs for package: 2:postfix-2.6.6-8.el6.x86_64--> Running transaction check---> Package cloudera-manager-agent.x86_64 0:5.11.1-1.cm5111.p0.9.el6 will be erased---> Package postfix.x86_64 2:2.6.6-8.el6 will be erased--> Processing Dependency: /usr/sbin/sendmail for package: redhat-lsb-core-4.0-7.el6.centos.x86_64--> Processing Dependency: /usr/sbin/sendmail for package: cronie-1.4.4-16.el6_8.2.x86_64--> Running transaction check---> Package cronie.x86_64 0:1.4.4-16.el6_8.2 will be erased--> Processing Dependency: cronie = 1.4.4-16.el6_8.2 for package: cronie-anacron-1.4.4-16.el6_8.2.x86_64---> Package redhat-lsb-core.x86_64 0:4.0-7.el6.centos will be erased--> Processing Dependency: redhat-lsb-core(x86-64) = 4.0 for package: redhat-lsb-printing-4.0-7.el6.centos.x86_64--> Processing Dependency: redhat-lsb-core(x86-64) = 4.0-7.el6.centos for package: redhat-lsb-4.0-7.el6.centos.x86_64--> Processing Dependency: redhat-lsb-core(x86-64) = 4.0 for package: redhat-lsb-graphics-4.0-7.el6.centos.x86_64--> Running transaction check---> Package cronie-anacron.x86_64 0:1.4.4-16.el6_8.2 will be erased---> Package redhat-lsb.x86_64 0:4.0-7.el6.centos will be erased--> Processing Dependency: redhat-lsb(x86-64) = 4.0-7.el6.centos for package: redhat-lsb-compat-4.0-7.el6.centos.x86_64---> Package redhat-lsb-graphics.x86_64 0:4.0-7.el6.centos will be erased---> Package redhat-lsb-printing.x86_64 0:4.0-7.el6.centos will be erased--> Running transaction check---> Package redhat-lsb-compat.x86_64 0:4.0-7.el6.centos will be erased--> Processing Dependency: /etc/cron.d for package: crontabs-1.10-33.el6.noarch--> Processing Dependency: /etc/cron.d for package: sysstat-9.0.4-33.el6.x86_64--> Restarting Dependency Resolution with new changes.--> Running transaction check---> Package crontabs.noarch 0:1.10-33.el6 will be erased---> Package sysstat.x86_64 0:9.0.4-33.el6 will be erased--> Finished Dependency Resolution Dependencies Resolved==================================================================== Package Arch Version Repository Size====================================================================Removing: MySQL-python x86_64 1.2.3-0.3.c1.1.el6 @base 246 k mysql-libs x86_64 5.1.73-8.el6_8 @anaconda-CentOS-201703281317.x86_64/6.9 4.0 M Removing for dependencies: cloudera-manager-agent x86_64 5.11.1-1.cm5111.p0.9.el6 @/cloudera-manager-agent-5.11.1-1.cm5111.p0.9.el6.x86_64 71 M cronie x86_64 1.4.4-16.el6_8.2 @anaconda-CentOS-201703281317.x86_64/6.9 174 k cronie-anacron x86_64 1.4.4-16.el6_8.2 @anaconda-CentOS-201703281317.x86_64/6.9 43 k crontabs noarch 1.10-33.el6 @anaconda-CentOS-201703281317.x86_64/6.9 2.4 k postfix x86_64 2:2.6.6-8.el6 @anaconda-CentOS-201703281317.x86_64/6.9 9.7 M redhat-lsb x86_64 4.0-7.el6.centos @anaconda-CentOS-201703281317.x86_64/6.9 0.0 redhat-lsb-compat x86_64 4.0-7.el6.centos @anaconda-CentOS-201703281317.x86_64/6.9 0.0 redhat-lsb-core x86_64 4.0-7.el6.centos @anaconda-CentOS-201703281317.x86_64/6.9 22 k redhat-lsb-graphics x86_64 4.0-7.el6.centos @anaconda-CentOS-201703281317.x86_64/6.9 0.0 redhat-lsb-printing x86_64 4.0-7.el6.centos @anaconda-CentOS-201703281317.x86_64/6.9 0.0 sysstat x86_64 9.0.4-33.el6 @anaconda-CentOS-201703281317.x86_64/6.9 826 k Transaction Summary====================================================================Remove 13 Package(s) Installed size: 86 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Erasing : redhat-lsb-compat-4.0-7.el6.centos.x86_64 1/13 Erasing : redhat-lsb-4.0-7.el6.centos.x86_64 2/13 Erasing : cloudera-manager-agent-5.11.1-1.cm5111.p0.9. 3/13 warning: /etc/cloudera-scm-agent/config.ini saved as /etc/cloudera-scm-agent/config.ini.rpmsave Erasing : redhat-lsb-graphics-4.0-7.el6.centos.x86_64 4/13 Erasing : redhat-lsb-printing-4.0-7.el6.centos.x86_64 5/13 Erasing : redhat-lsb-core-4.0-7.el6.centos.x86_64 6/13 /var/tmp/rpm-tmp.jLbJUk: line 1: lsb_release: command not found Erasing : MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 7/13 Erasing : sysstat-9.0.4-33.el6.x86_64 8/13 Erasing : crontabs-1.10-33.el6.noarch 9/13 Erasing : cronie-anacron-1.4.4-16.el6_8.2.x86_64 10/13 Erasing : cronie-1.4.4-16.el6_8.2.x86_64 11/13 Erasing : 2:postfix-2.6.6-8.el6.x86_64 12/13 Erasing : mysql-libs-5.1.73-8.el6_8.x86_64 13/13 Verifying : redhat-lsb-printing-4.0-7.el6.centos.x86_64 1/13 Verifying : cronie-anacron-1.4.4-16.el6_8.2.x86_64 2/13 Verifying : cronie-1.4.4-16.el6_8.2.x86_64 3/13 Verifying : 2:postfix-2.6.6-8.el6.x86_64 4/13 Verifying : redhat-lsb-4.0-7.el6.centos.x86_64 5/13 Verifying : redhat-lsb-core-4.0-7.el6.centos.x86_64 6/13 Verifying : cloudera-manager-agent-5.11.1-1.cm5111.p0.9. 7/13 Verifying : crontabs-1.10-33.el6.noarch 8/13 Verifying : redhat-lsb-compat-4.0-7.el6.centos.x86_64 9/13 Verifying : MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 10/13 Verifying : redhat-lsb-graphics-4.0-7.el6.centos.x86_64 11/13 Verifying : sysstat-9.0.4-33.el6.x86_64 12/13 Verifying : mysql-libs-5.1.73-8.el6_8.x86_64 13/13 Removed: MySQL-python.x86_64 0:1.2.3-0.3.c1.1.el6 mysql-libs.x86_64 0:5.1.73-8.el6_8 Dependency Removed: cloudera-manager-agent.x86_64 0:5.11.1-1.cm5111.p0.9.el6 cronie.x86_64 0:1.4.4-16.el6_8.2 cronie-anacron.x86_64 0:1.4.4-16.el6_8.2 crontabs.noarch 0:1.10-33.el6 postfix.x86_64 2:2.6.6-8.el6 redhat-lsb.x86_64 0:4.0-7.el6.centos redhat-lsb-compat.x86_64 0:4.0-7.el6.cen
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • centos下安装mysql服务器的方法
  • CentOS Linux更改MySQL数据库目录位置具体操作
  • CentOS 5.5下安装MySQL 5.5全过程分享
  • centos下mysql主从同步快速设置步骤分享
  • CentOS mysql安装系统方法
  • 在CentOS上MySQL数据库服务器配置方法
  • Centos7安装和配置Mysql5.7的方法分享
  • Centos7.3安装mysql5.7.18 rpm教程
  • centos7.3 安装mysql5.7.18实例详解
  • Linux CentOS MySQL数据库安装配置实例分享

相关文章

  • 2018-12-05如何利用Navicat for MySQL数据库进行数据传输
  • 2018-12-05sql语句中如何将datetime格式的日期转换为yy-mm-dd格式
  • 2018-12-05黑马云课堂mongodb实操视频的源码课件推荐
  • 2017-05-11MySQL中使用case when 语句实现多条件查询的方法
  • 2018-12-05总结SQL Server中常用函数使用方法
  • 2017-05-11mysql外键(Foreign Key)介绍和创建外键的方法
  • 2018-12-05MySQL 使用 SSL 连接配置详解
  • 2017-05-11MySQL对limit查询语句的优化方法
  • 2018-12-05MySQL中表分区技术详细解析_MySQL
  • 2018-12-05MYSQL学习总结(一):MYSQL安装

文章分类

  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase

最近更新的内容

    • oracle 更改数据库名的方法
    • Keepalive之MySQL故障自动切换脚本
    • sqlserver 导出插入脚本代码
    • Oracle捕获问题SQL解决CPU过渡消耗
    • sqlserver2005 行列转换实现方法
    • 排名前十的SQL和NoSQL数据库
    • MySQL优化之如何了解SQL的执行频率
    • MySQL压测工具mysqlslap的介绍与使用_MySQL
    • Oracle9i 动态SGA,PGA特性探索
    • MySQL Order By用法分享

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有