mysql rpm安装
下载
wget http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-5.7.23-1.el6.x86_64.rpm-bundle.tar
解压:
tar xvf mysql-5.7.23-1.el6.x86_64.rpm-bundle.tar
rpm卸载
rpm -qa | grep -i mysqlrpm -ev mysql-community-libs-5.7.23-1.el6.x86_64 --nodeps
mysql安装需要提前安装
yum install numactlyum install libaio
安装顺序
$ rpm -ivh mysql-community-common-5.7.19-1.el6.x86_64.rpm
$ rpm -ivh mysql-community-libs-5.7.19-1.el6.x86_64.rpm
$ rpm -ivh mysql-community-clients-5.7.19-1.el6.x86_64.rpm
$ rpm -ivh mysql-community-server-5.7.19-1.el6.x86_64.rpm
安装错误提示
file /usr/share/mysql/charsets/koi8u.xml from install of mysql-community-common-5.7.23-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.52-1.el7.x86_64file /usr/share/mysql/charsets/latin1.xml from install of mysql-community-common-5.7.23-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.52-1.el7.x86_64file /usr/share/mysql/charsets/latin2.xml from install of mysql-community-common-5.7.23-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.52-1.el7.x86_64file /usr/share/mysql/charsets/latin5.xml from install of mysql-community-common-5.7.23-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.52-1.el7.x86_64file /usr/share/mysql/charsets/latin7.xml from install of mysql-community-common-5.7.23-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.52-1.el7.x86_64file /usr/share/mysql/charsets/macce.xml from install of mysql-community-common-5.7.23-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.52-1.el7.x86_64file /usr/share/mysql/charsets/macroman.xml from install of mysql-community-common-5.7.23-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.52-1.el7.x86_64file /usr/share/mysql/charsets/swe7.xml from install of mysql-community-common-5.7.23-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.52-1.el7.x86_64
解决办法
[root@VM_0_3_centos mysql]# rpm -qa | grep -i mariadb
mariadb-libs-5.5.52-1.el7.x86_64
删除此包后在安装
[root@VM_0_3_centos mysql]# rpm -ev --nodeps mariadb-libs-5.5.52-1.el7.x86_64
Preparing packages...
mariadb-libs-1:5.5.52-1.el7.x86_64
[root@VM_0_3_centos mysql]# rpm -qa | grep -i mariadb
[root@VM_0_3_centos mysql]# rpm -ivh mysql-community-common-5.7.23-1.el6.x86_64.rpm
warning: mysql-community-common-5.7.23-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...1:mysql-community-common-5.7.23-1.e################################# [100%]
[root@VM_0_3_centos mysql]#
应用
[root@centos-linux ~]# rpm -qa|grep mariadbmariadb-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
启动
# service mysqld start
# service mysqld stop
# service mysqld status
密码
[root@VM_0_3_centos my]# cat /var/log/mysqld.log | more
2019-02-03T10:10:08.730690Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --e
xplicit_defaults_for_timestamp server option (see documentation for more details).
2019-02-03T10:10:09.863484Z 0 [Warning] InnoDB: New log files created, LSN=45790
2019-02-03T10:10:10.038902Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2019-02-03T10:10:10.106619Z 0 [Warning] No existing UUID has been found, so we assume that this is the firs
t time that this server has been started. Generating a new UUID: e375b165-279b-11e9-9261-52540054f857.
2019-02-03T10:10:10.110315Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' can
not be opened.
2019-02-03T10:10:10.110788Z 1 [Note] A temporary password is generated for root@localhost: :&rCz7/GOk:a
2019-02-03T10:10:14.771770Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --e
xplicit_defaults_for_timestamp server option (see documentation for more details).
2019-02-03T10:10:14.772914Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.16) starting as process 18364 ...
2019-02-03T10:10:14.775764Z 0 [Note] InnoDB: PUNCH HOLE support available
2019-02-03T10:10:14.775789Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-02-03T10:10:14.775794Z 0 [Note] InnoDB: Uses event mutexes
2019-02-03T10:10:14.775798Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-02-03T10:10:14.775801Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2019-02-03T10:10:14.775804Z 0 [Note] InnoDB: Using Linux native AIO
2019-02-03T10:10:14.775996Z 0 [Note] InnoDB: Number of pools: 1
2019-02-03T10:10:14.776115Z 0 [Note] InnoDB: Using CPU crc32 instructions
2019-02-03T10:10:14.777475Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, ch
unk size = 128M
2019-02-03T10:10:14.784915Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-02-03T10:10:14.786867Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner threa
d priority can be changed. See the man page of setpriority().
2019-02-03T10:10:14.798574Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2019-02-03T10:10:14.812389Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-02-03T10:10:14.812450Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the
file full; Please wait ...
2019-02-03T10:10:14.857969Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-02-03T10:10:14.859259Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s)are active.
2019-02-03T10:10:14.859273Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2019-02-03T10:10:14.860073Z 0 [Note] InnoDB: Waiting for purge to start
2019-02-03T10:10:14.910321Z 0 [Note] InnoDB: 5.7.16 started; log sequence number 2532180
2019-02-03T10:10:14.910612Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
[root@VM_0_3_centos my]#
登陆mysql
[root@VM_0_3_centos my]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.7.16Copyright (c) 2000, 2016, 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> show databases;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
转载于:https://my.oschina.net/u/3011256/blog/3005183
mysql rpm安装相关推荐
- linux rpm mysql mysql_config,Linux CentOS6 mysql rpm安装
选择操作系统及版本: 点击5.6版本链接 将下载好的文件上传至服务器 下面开始安装: 检查是是否有mysql的包 # rpm -qa | grep -i mysql 删除原有包 # yum -y re ...
- linux下mysql(rpm)安装使用手册
linux下mysql(rpm)安装使用手册 安装Mysql 1.下载MySQL的安装文件 安装MySQL需要下面两个文件: MySQL-server-5.1.7-0.i386.rpm 下载地址为:h ...
- Centos安装MySQL(RPM安装方式)
Centos安装MySQL(RPM安装方式) 1.centos中以rpm安装包的方式进行安装测试 2.在MySQL官网下载安装包官网下载 Product Version:5.7.33 Operatin ...
- mysql rpm 安装后修改路径_mysql rpm包安装后修改数据目录
mysql rpm包安装后修改数据目录 发布时间:2020-06-14 23:24:25 来源:51CTO 阅读:1160 作者:梦在这里 mysql rpm包安装后修改数据目录 1.停止mysql数 ...
- mysql rpm 安装多实例_MySQL搭建系列之多实例
所谓多实例.就是在一台server上搭建.执行多个MySQL实例,每一个实例使用不同的服务port.通过不同的socket监听:物理上,每一个实例拥有独立的參数配置文件及数据库. 通常情况下.一台se ...
- mysql rpm 安装6_linux6.5 RPM方式安装 mysql5.6
步骤一.检查下linux是不是已经安装了MySQL # rpm -qa|grep mysql mysql-libs-5.1.71-1.el6.x86_64 # rpm -e --nodeps mysq ...
- mysql rpm怎么用_linux下mysql(rpm)安装使用手册
显示如下信息. warning:MySQL-server-5.1.7-0.i386.rpmsignature: NOKEY, key ID 5072e1f5Preparing... ######### ...
- mysql rpm 安装多实例_MySQL多实例安装
MySQL多实例安装 1.配置3306实例 1.1.查询服务器上是否已经安装的mysql [root@masterMySQL-5.6.25-1.el6.x86_64.rpm-bundle]# rpm ...
- mysql rpm安装报错_Mysql rpm包安装
1.下载 MySQL-client-5.6.25-1.linux_glibc2.5.x86_64.rpm MySQL-devel-5.6.25-1.linux_glibc2.5.x86_64.rpm ...
最新文章
- 美法加三位科学家获2018诺贝尔物理学奖
- 直接通过Binder的onTransact完成跨进程通信
- Windows下编译 Hadoop
- Mediawiki随笔
- 【Python】解决TypeError: 'unicode' object does not support item assignment
- 远程桌面登录 Windows Server 2003时提示无权限
- DLL导出类和导出函数
- 50行代码,搞定敏感数据读写!
- 开源公司 HashiCorp 国内险遭禁,阿里、华为也要做好 B 计划?
- Servlet(2)
- Linux使用sendmail发送邮件
- 原声php 读取excel乱码_如何解决php读取excel乱码问题
- 多页面-HASH-页面间传值 Sloth-state
- excel 柱状图 多个水滴图组合
- python json.dumps(output) ^ SyntaxError: invalid syntax
- R语言dplyr入门到进阶
- 计算机专用英语词汇1695个词汇表,这个收藏了
- 微信域名网址强制跳转至浏览器打开指定HTML网页
- 用Python编写斐波那契数列(Fibonacci Sequence)
- PyCharm配置SSH和SFTP连接远程服务器
热门文章
- 「技术工具」阿里开源Java在线诊断工具 Arthas 进阶教程
- git 忽略某些文件
- 无线网的dhcp服务器是什么,关于DHCP服务里的路由器地址租期什么意思
- android 防止反编译的若干方法
- 升级coda_Coda:从我们周围的结构中学习
- HTML游戏黑屏,“网页游戏黑屏,白屏,无法调出flash.”的解决方案
- 学长毕业日记 :本科毕业论文写成博士论文的神操作20170315
- 【人工智能 卷积神经网络】基础练习:基于torch构建卷积神经网络,测试集正确率达 百分之99
- 图片搜索 拍立淘 按图搜索以图搜索 图搜商品 同款搜索商品
- 机智云物联网技术科普:一文看懂LoRa物联网!