首页 > 数据库 >MySQL8.4的安装与部署

MySQL8.4的安装与部署

时间:2024-05-02 18:22:54浏览次数:15  
标签:部署 rpm root MySQL8.4 innodb file mysql mysqld 安装

MySQL8.4的安装与部署


下载

wget https://cdn.mysql.com//Downloads/MySQL-8.4/mysql-8.4.0-1.el8.aarch64.rpm-bundle.tar

安装

清理 mariadb
rpm -qa |grep maria |grep -v connect |xargs rpm -e -f
本地安装
tar -xvf mysql-8.4.0-1.el8.aarch64.rpm-bundle.tar
yum localinstall *.rpm -y

配置文件

[mysqld]
datadir=/mysql/data
max_allowed_packet = 1G
innodb_log_file_size = 512M
innodb_log_buffer_size = 512M
innodb_file_per_table = 1
innodb_buffer_pool_size=8G
innodb_flush_log_at_trx_commit=0
max_connections=2000
lower-case-table-names=1
innodb_strict_mode = 0
character_set_server=utf8
secure_file_priv = 
default-time-zone='+08:00'
binlog_expire_logs_seconds = 7200
transaction-isolation = READ-COMMITTED
mysql_native_password=on
[mysql]
prompt="\\u@\\h : \\d \\r:\\m:\\s>"
default-character-set=utf8

初始化

mkdir -p /mysql/data
chown mysql:mysql /mysql/data -R
mysqld --initialize-insecure

启动异常处理

注意我使用的是 银河麒麟v10 on 鲲鹏920
但是发现启动报错, 提示为:
mysqld: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: Permission denied

提示很奇怪. 发现这个 libcrypto 是我之前 软连接的
原始的文件的确 是 700 
我改成 777 模式 
然后就可以启动服务了. 

修改密码

root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
所以理论上 root 在本地可以直接登录

注意需要先启动数据库
chown mysql:mysql /mysql/ -R
systemctl restart mysqld

mysql -uroot  -h127.0.0.1

创建用户和修改密码:
create user root@'%' identified by 'xxxxx';
alter user root@localhost identified by 'xxxxx';

查看用户以及密码验证信息
select user,host,plugin from mysql.user ;

冷备份

关闭服务
覆盖文件
修改属主
重启服务

标签:部署,rpm,root,MySQL8.4,innodb,file,mysql,mysqld,安装
From: https://www.cnblogs.com/jinanxiaolaohu/p/18170402

相关文章

  • 【Python&文字识别】基于HyperLPR3实现车牌检测和识别(Python版本快速部署)
        闲来无事,想复现一下网上的基于YOLOv5的单目测距算法。然后就突然想在这个场景下搞一下车牌识别,于是就有了这篇文章。今天就给大家分享基于HyperLPR3实现车牌检测和识别。原创作者:RS迷途小书童博客地址:https://blog.csdn.net/m0_56729804?type=blog1、HyperLP......
  • mysql安装教程
    1、先下载好mysql5.7版本的安装包,https://www.mysql.com/downloads/官网自己下载 2、这里选则windows 3、选择我们需要的版本  4、最后下载成功安装包就下载完毕了(官网下载可能较慢需要安装包的可以私信我) 一.mysql安装下载后双击安装包开始mysql5.7.33......
  • ESXI上安装和使用MegaCli
    一、下载安装包目前官网找不到安装包了,这里提供一个MegaCli-8.04.07:https://www.lanzoub.com/iUzBn1tyhdxi二、将安装包解压上传到esxi可以通过sftp或者其他工具上传到esxi中,不太建议在esxi上直接下载,我提供的是rar压缩包。这里我使用WinSCP工具上传到esxi中,下载地址:https://ww......
  • [POM]idea安装pom文件maven依赖查询插件
    安装前: 安装:Fle->Setting plugin->marketplace搜索“”mavenhelper“”,点击install 安装后,下方多了“DependencyAnalyzer”,支持查看全部依赖、依赖冲突,依赖树,过滤  ......
  • Linux白屏部署OceanBase集群版
    本次将部署三个节点,将介质OceanBaseAllinOne传到一个节点上即可。#下载并解压安装包[root@tidb01db_ob]#tar-xzvfoceanbase-all-in-one-4.3.0.1-100000242024032211.el7.x86_64.tar.gz[root@tidb01db_ob]#cdoceanbase-all-in-one/[root@tidb01oceanbase-all-in-on......
  • 鸿蒙安装apk软件失败(不支持该设备)
    魔芋爽要犯了.jpg1.关闭纯净血压增高模块2.安装外部来源(默认文件管理器是没有权限的)3.没登华为账号,等七天过了再来试试后续(matepad11.5就是垃圾,快退!.jpg)......
  • OceanBase单机版重新部署提示[ERROR] Deploy “demo“ is running. You could not dep
    执行介质里uninstall.sh脚本删除部署信息后重新安装Demo提示:[root@tidb01bin]#obddemo[ERROR]Deploy"demo"isrunning.Youcouldnotdeployanrunningcluster.Seehttps://www.oceanbase.com/product/ob-deployer/error-codes.TraceID:b18c41ba-07af-11ef-bd8f-......
  • Ubuntu 20.04下安装Samba(Cifs/Smb)
      接上一篇,本篇记录一下Ubuntu下Samba的安装配置,windows下的共享目录的设置有很多文章,这里就不说了。  Samba是在Linux和UNIX系统上实现SMB协议的一个免费软件,我们可以使用apt安装,也可以去官网下载软件或者源码:  apt安装  如果是使用apt,那么安装就方便很多了:  #......
  • 怎么在windows上用vcpkg方法安装libcurl
    1、到网站上找libcurl的下载页面   https://curl.se/download.html  2、在windows64bit(或者其它下载栏目)中的“Windows64-bit8.7.1libcurlVcpkg”里点击 "8.7.1"(意味着下载libcurl的windows64位版本8.7.7下用vcpkg编译的源码);3、下面是相关说明:Build......
  • 自动安装环境shell脚本使用和运维基础使用讲解
    准备和说明确认有网。依赖程序集,官网只提供32位压缩包,手动编译安装后,在64位机上识别不出来,只能用yum包管理从源上拉下来,需要有网。安装unzip,git,wget,用来解压安装包,如果服务器已有会自动跳过安装yum-yinstallunzipyum-yinstallgityum-yinstallwget使用r......