广告
返回顶部
首页 > 资讯 > 数据库 >MySQL使用rpm包安装
  • 181
分享到

MySQL使用rpm包安装

mysqllinux服务器 2023-08-22 06:08:56 181人浏览 薄情痞子
摘要

Mysql使用rpm包安装 安装 下载mysql rpm 安装包 。选择对应的操作系统版本 官网地址 下载对应的rpm包 mysql-commUnity-common-5.7.29-1.el7.x86_64.rpmmysql-communi

Mysql使用rpm包安装

安装

  1. 下载mysql rpm 安装包 。选择对应的操作系统版本 官网地址 下载对应的rpm包
mysql-commUnity-common-5.7.29-1.el7.x86_64.rpmmysql-community-libs-5.7.29-1.el7.x86_64.rpmmysql-community-client-5.7.29-1.el7.x86_64.rpmmysql-community-server-5.7.29-1.el7.x86_64.rpm
  1. 依次执行下面命令
rpm -ivh mysql-community-common-5.7.29-1.el7.x86_64.rpmrpm -ivh mysql-community-libs-5.7.29-1.el7.x86_64.rpmrpm -ivh mysql-community-client-5.7.29-1.el7.x86_64.rpmrpm -ivh mysql-community-server-5.7.29-1.el7.x86_64.rpm

报错

➜  tools rpm -ivh mysql-community-libs-5.7.29-1.el7.x86_64.rpmwarning: mysql-community-libs-5.7.29-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEYerror: Failed dependencies:        mysql-community-common(x86-64) >= 5.7.9 is needed by mysql-community-libs-5.7.29-1.el7.x86_64        mariadb-libs is obsoleted by mysql-community-libs-5.7.29-1.el7.x86_64➜  tools rpm -qa | grep mariadbmariadb-libs-5.5.68-1.el7.x86_64➜  tools  rpm -e mariadb-libs-5.5.68-1.el7.x86_64error: Failed dependencies:        libmysqlclient.so.18()(64bit) is needed by (installed) postfix-2:2.10.1-9.el7.x86_64        libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) postfix-2:2.10.1-9.el7.x86_64➜  tools  rpm -e --nodeps mariadb-libs-5.5.68-1.el7.x86_64
  1. 关于卸载
rpm -qa|grep mysqlrpm -e mysql-community-server-5.7.29-1.el7.x86_64.rpmrpm -e mysql-community-client-5.7.29-1.el7.x86_64.rpmrpm -e mysql-community-libs-5.7.29-1.el7.x86_64.rpmrpm -e mysql-community-common-5.7.29-1.el7.x86_64.rpm

使用

  1. systemctl start mysqld 启动mysql
  2. grep passWord /var/log/mysqld.log 查看密码
  3. 登录mysql
  4. 修改密码
➜  tools grep password /var/log/mysqld.log2022-09-18T04:02:24.435856Z 1 [Note] A temporary password is generated for root@localhost: YeBPgBelw3_O➜  tools mysql -uroot -PYeBPgBelw3_Omysql: [ERROR] Unknown suffix 'Y' used for variable 'port' (value 'YeBPgBelw3_O')mysql: [ERROR] mysql: Error while setting value 'YeBPgBelw3_O' to 'port'➜  tools mysql -uroot -p YeBPgBelw3_OEnter password:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)➜  tools mysql -uroot -pYeBPgBelw3_Omysql: [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 3Server version: 5.7.29Copyright (c) 2000, 2020, oracle and/or its affiliates. All rights reserved.Oracle is a reGIStered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>
  1. 修改密码

在5.7版本不太友好,密码要求比较严格
如果你想要设置一个简单的测试密码的话,比如设置为root,会提示这个错误,报错的意思就是你的密码不符合要求
警告:由于密码将以明文形式发送到服务器,请使用ssl连接以确保密码安全

➜  tools mysqladmin -u root -p password "xxxxx"Enter password:mysqladmin: [Warning] Using a password on the command line interface can be insecure.Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.mysqladmin: unable to change password; error: 'Your password does not satisfy the current policy requirements'

修改设置密码的策略

➜  tools mysql -uroot -pYeBPgBelw3_Omysql: [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 10Server version: 5.7.29Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>  set global validate_password_policy=0;Query OK, 0 rows affected (0.00 sec)mysql>  set global validate_password_length=1;Query OK, 0 rows affected (0.00 sec)mysql> exitBye

再次设置密码成功

➜  tools mysqladmin -u root -p password "xxxxx"Enter password:   #输入原始密码mysqladmin: [Warning] Using a password on the command line interface can be insecure.Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.

来源地址:https://blog.csdn.net/Erice_s/article/details/126918365

您可能感兴趣的文档:

--结束END--

本文标题: MySQL使用rpm包安装

本文链接: https://www.lsjlt.com/news/377588.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • MySQL使用rpm包安装
    MySQL使用rpm包安装 安装 下载mysql rpm 安装包 。选择对应的操作系统版本 官网地址 下载对应的rpm包 mysql-community-common-5.7.29-1.el7.x86_64.rpmmysql-communi...
    99+
    2023-08-22
    mysql linux 服务器
  • 制作MySQL RPM安装包Spec
    适用环境: 数据库版本:MySQL 5.7.26 操作系统:CentOS 7   制作思路: 将数据库初始化和配置工作放到安装脚本中方便定制: 1、打包MySQL应用目录 2、不自动生成配置文件 3、不自动生成数据目录 4...
    99+
    2016-05-28
    制作MySQL RPM安装包Spec
  • mysql 5.6 for linux (rpm包安装)
    mysql 5.6 rpm包 for linux 安装 安装系统,并关闭selinux与iptables 1 关闭selinux 修改selinux配置文件(重启服务器生效) [root@mysql1 ~]...
    99+
    2022-10-18
  • 安装RPM包
    首先确保,虚拟机中的光盘是处于使用状态 小光驱图标必须是点亮的  挂载光驱之前的/mnt/的内容  将光驱挂载到/mnt目录下 mount /dev/cdrom /mnt  /dev/sr0写保护,将以只读方式挂载,光驱是以只读方式...
    99+
    2023-09-11
    linux 运维 服务器
  • centos7安装单节点mysql(rpm包安装)
    1、查看下面软件包是否安装,如果安装卸载。# rpm -qa | grep postfix# rpm -qa | grep mariadb# rpm -qa | grep mysql2、创建目录创建包存放目...
    99+
    2022-10-18
  • 在CentOS 7上使用RPM包安装MySQL 5.7
    shell> wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.18-1.el7.x86_64.rpm-bundle.tarsh...
    99+
    2022-10-18
  • MySQL 5.6.35 RPM包方式的安装
    Mysql 5.6.35版本 RPM包方式的安装 一.删除旧的RPM包: 查询 rpm -qa | grep -i mysql如果有需要先删除rpm -ev mysql-libs- --nodepsrpm ...
    99+
    2022-10-18
  • mysql rpm 安装
    环境:OS: CentOS 6.8mysql:5.7.24安装:删除系统自带mysql:rpm -qa | grep mysqlrpm -e mysql-pkg --nodeps 安装依赖包 安装mysq...
    99+
    2022-10-18
  • 怎样使用rpm安装MySQL
    这篇文章将为大家详细讲解有关怎样使用rpm安装MySQL,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。使用rpm安装MySQL的方法:首先下载rpm包,并开始安装serv...
    99+
    2022-10-18
  • SuSE11下如何使用rpm安装包安装MySQL5.5.60
    下文主要给大家带来SuSE11下如何使用rpm安装包安装MySQL5.5.60,希望这些内容能够带给大家实际用处,这也是我编辑SuSE11下如何使用rpm安装包安装MySQL5.5.60这篇文章的主要目的。...
    99+
    2022-10-18
  • RHEL 6.7利用rpm完整包安装MySQL-5.6.30
    利用rpm完整包安装MySQL(MySQL-server-5.6.30 for rhel 6.7_64bit) 一、检查操作系统上是否安装了MySQL [root@mydb1 backup]# r...
    99+
    2022-10-18
  • Linux平台用RPM包方式安装Mysql 5.7
    这篇文章主要讲解了“Linux平台用RPM包方式安装Mysql 5.7”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Linux平台用RPM包方式安装Mysq...
    99+
    2022-10-18
  • Oracle RPM包安装Oracle19c
    RPM包安装Oracle19c...
    99+
    2022-10-18
  • 用rpm包在centos7.4上安装mysql-5.7.24-1.el7.x86_64
    CentOS7.4系统信息[root@localhost iso]# uname -aLinux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue...
    99+
    2022-10-18
  • Linux下如何使用RPM包安装Dovecot
    这篇文章将为大家详细讲解有关Linux下如何使用RPM包安装Dovecot,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。Dovecot介绍MRA邮件取回代理也有很多如courier-imap,cyrus-...
    99+
    2023-06-27
  • CentOS中怎么使用RPM包安装redis
    这篇“CentOS中怎么使用RPM包安装redis”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“CentOS中怎么使用RPM...
    99+
    2023-06-27
  • mysql如何用rpm安装
    这篇文章给大家分享的是有关mysql如何用rpm安装的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。RedHat 下自带的mysql rpm包为mysql-3.23.54a-11....
    99+
    2022-10-18
  • mysql rpm包安装后修改数据目录
    mysql rpm包安装后修改数据目录1.停止mysql数据服务  /etc/init.d/mysqld stop   2.为创建的数据目录指定权限 chmod -R...
    99+
    2022-10-18
  • 在Linux系统中通过rpm包安装MySQL
    操作系统:CentOS 7 MySQL版本:5.7.29 通过rpm包方式安装就像去服装店买衣服,衣服的大小、颜色等样式都是设计好的,我们只要买来就能穿,方便快捷。 一、下载rpm包 打开MySQL官网的下载页面:http...
    99+
    2016-07-15
    在Linux系统中通过rpm包安装MySQL
  • MySQL 5.6.38在RedHat 6.5上通过RPM包安装
    一、安装环境1、操作系统版本:Red Hat Enterprise Linux Server release 6.5 (Santiago)2、Mysql版本:MySQL-5.6.38-1.el6.x86_6...
    99+
    2022-10-18
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作