银河麒麟v10 二进制安装包 安装mysql 8.35

银河麒麟v10 二进制安装包 安装mysql 8.35

  • 1、卸载mariadb
  • 2、下载Mysql安装包
  • 3、安装Mysql 8.35
    • 3.1、安装依赖包
    • 3.2、安装Mysql
    • 3.3、安装后配置

1、卸载mariadb

由于银河麒麟v10系统默认安装了mariadb 会与Mysql相冲突,因此首先需要卸载系统自带的mariadb
查看系统上默认安装的Mariadb软件包
使用yum查看已经安装的mariadb软件包

yum list --installed mariadb

在这里插入图片描述

rpm -qa|grep mariadb

在这里插入图片描述

查看默认的mariadb配置文件

在这里插入代码片

默认的配置文件是 /etc/my.cnf

在这里插入图片描述

查看默认的mariadb配置目录

find / -type d  -name my.cnf*

在这里插入图片描述

使用yum卸载 mariadb

yum remove mariadb.x86_64

在这里插入图片描述

验证卸载Mariadb成功

在这里插入图片描述

查看Mariadb配置文件和目录是否还存在 已经不存在了

在这里插入图片描述

至此mariadb卸载完成

2、下载Mysql安装包

访问官网下载链接 链接: https://dev.mysql.com/downloads/mysql/

选择如下 点击下载按钮 下载安装包
在这里插入图片描述

3、安装Mysql 8.35

官方安装文档 链接: https://dev.mysql.com/doc/mysql-installation-excerpt/8.0/en/binary-installation.html

3.1、安装依赖包

yum search libaio

在这里插入图片描述

yum install libaio

在这里插入图片描述

3.2、安装Mysql

命令顺序如下 安装包放在/root/package/mysql/mysql-8.0.35-linux-glibc2.28-x86_64.tar.xz

groupadd mysql
useradd -r -g mysql -s /bin/false mysql
cd /usr/local
tar -xJvf /root/package/mysql/mysql-8.0.35-linux-glibc2.28-x86_64.tar.xz
ln -s /usr/local/mysql-8.0.35-linux-glibc2.28-x86_64/ mysql
cd mysql
mkdir mysql-files
chown mysql:mysql mysql-files
chmod 750 mysql-filesecho -e "[mysqld]\ndatadir=/var/lib/mysql/data\nbasedir=/var/lib/mysql\nsocket=/var/lib/mysql/mysql.sock\nuser=mysql\nport=3306\ncharacter-set-server=UTF8MB4\nsymbolic-links=0\nsql-mode=STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION\n[mysqld_safe]\nlog-error=/var/log/mysqld/mysqld.log\npid-file=/var/run/mysqld/mysqld.pid\n[client]\nport=3306\nsocket=/var/lib/mysql/mysql.sock"  >> /etc/my.cnfchown mysql:mysql /etc/my.cnfmkdir -p /var/lib/mysql/data
chown mysql:mysql /var/lib/mysqlmkdir -p /var/log/mysqld/
touch /var/log/mysqld/mysqld.log
chown -R mysql:mysql /var/log/mysqld
chmod 777 /var/log/mysqld/mysqld.logmkdir -p /var/run/mysqld/
chown mysql:mysql /var/run/mysqld/
chmod 777 /var/run/mysqld/mkdir -p /var/lib/mysql/bin
cp bin/mysqld_safe /var/lib/mysql/bin
chown -R mysql:mysql /var/lib/mysqlbin/mysqld --defaults-file=/etc/my.cnf --initialize --user=mysqlbin/mysql_ssl_rsa_setup
bin/mysqld_safe --user=mysql &
# Next command is optional
cp support-files/mysql.server /etc/init.d/mysql.server

其中执行bin/mysqld --defaults-file=/etc/my.cnf --initialize --user=mysql 会打印出Mysql的默认密码
最后一句:A temporary password is generated for root@localhost: Wyfu?iFAW8tY

[root@kylin mysql]# bin/mysqld --defaults-file=/etc/my.cnf --initialize --user=mysql
2023-12-21T17:06:04.983518Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2023-12-21T17:06:04.983548Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2023-12-21T17:06:04.983669Z 0 [System] [MY-013169] [Server] /usr/local/mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysqld (mysqld 8.0.35) initializing of server in progress as process 2463
2023-12-21T17:06:04.983705Z 0 [ERROR] [MY-010338] [Server] Can't find error-message file '/var/lib/mysql/share/errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
2023-12-21T17:06:04.999543Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-12-21T17:06:06.162453Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2023-12-21T17:06:07.431899Z 0 [Warning] [MY-013829] [Server] Missing data directory for ICU regular expressions: /var/lib/mysql/lib/private/.
2023-12-21T17:06:08.403649Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: Wyfu?iFAW8tY

其中执行bin/mysqld_safe --user=mysql & 是启动Mysql服务 日志如下

[root@kylin mysql]# cat  /var/log/mysqld/mysqld.log 
2023-12-21T16:56:15.955718Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2023-12-21T16:56:15.955759Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2023-12-21T16:56:15.955866Z 0 [System] [MY-010116] [Server] /usr/local/mysql/bin/mysqld (mysqld 8.0.35) starting as process 2724
2023-12-21T16:56:15.955909Z 0 [ERROR] [MY-010338] [Server] Can't find error-message file '/var/lib/mysql/share/errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
2023-12-21T16:56:15.994198Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-12-21T16:56:16.608751Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2023-12-21T16:56:17.123876Z 0 [Warning] [MY-013829] [Server] Missing data directory for ICU regular expressions: /var/lib/mysql/lib/private/.
2023-12-21T16:56:17.132285Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2023-12-21T16:56:17.132330Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2023-12-21T16:56:17.138763Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2023-12-21T16:56:17.165747Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /tmp/mysqlx.sock
2023-12-21T16:56:17.165839Z 0 [System] [MY-010931] [Server] /usr/local/mysql/bin/mysqld: ready for connections. Version: '8.0.35'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server - GPL.
[root@kylin mysql]# 

添加mysql的环境变量
vi /etc/profile 最后面添加2行

export MYSQL_HOME=/usr/local/mysql
export PATH=$PATH:$MYSQL_HOME/bin

在这里插入图片描述

配置Mysql开机自启动

chkconfig --add mysql.server

在这里插入图片描述

完整命令执行记录

[root@kylin ~]# cd  /root/package/mysql
[root@kylin mysql]# groupadd mysql
[root@kylin mysql]# useradd -r -g mysql -s /bin/false mysql
[root@kylin mysql]# cd /usr/local
[root@kylin local]# tar -xJvf /root/package/mysql/mysql-8.0.35-linux-glibc2.28-x86_64.tar.xz
mysql-8.0.35-linux-glibc2.28-x86_64/bin/
mysql-8.0.35-linux-glibc2.28-x86_64/bin/myisam_ftdump
mysql-8.0.35-linux-glibc2.28-x86_64/bin/myisamchk
mysql-8.0.35-linux-glibc2.28-x86_64/bin/myisamlog
mysql-8.0.35-linux-glibc2.28-x86_64/bin/myisampack
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysql
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysql_config_editor
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysql_migrate_keyring
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysql_secure_installation
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysql_ssl_rsa_setup
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysql_tzinfo_to_sql
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysql_upgrade
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysqladmin
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysqlbinlog
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysqlcheck
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysqldump
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysqlimport
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysqlpump
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysqlshow
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysqlslap
mysql-8.0.35-linux-glibc2.28-x86_64/lib/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/authentication_fido_client.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/authentication_kerberos_client.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/authentication_ldap_sasl_client.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/authentication_oci_client.so
mysql-8.0.35-linux-glibc2.28-x86_64/bin/
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysqld-debug
mysql-8.0.35-linux-glibc2.28-x86_64/bin/
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysql_config
mysql-8.0.35-linux-glibc2.28-x86_64/include/
mysql-8.0.35-linux-glibc2.28-x86_64/include/errmsg.h
mysql-8.0.35-linux-glibc2.28-x86_64/include/field_types.h
mysql-8.0.35-linux-glibc2.28-x86_64/include/my_command.h
mysql-8.0.35-linux-glibc2.28-x86_64/include/my_compress.h
mysql-8.0.35-linux-glibc2.28-x86_64/include/my_list.h
mysql-8.0.35-linux-glibc2.28-x86_64/include/mysql/
mysql-8.0.35-linux-glibc2.28-x86_64/include/mysql.h
mysql-8.0.35-linux-glibc2.28-x86_64/include/mysql/client_plugin.h
mysql-8.0.35-linux-glibc2.28-x86_64/include/mysql/plugin_auth_common.h
mysql-8.0.35-linux-glibc2.28-x86_64/include/mysql/udf_registration_types.h
mysql-8.0.35-linux-glibc2.28-x86_64/include/mysql_com.h
mysql-8.0.35-linux-glibc2.28-x86_64/include/mysql_time.h
mysql-8.0.35-linux-glibc2.28-x86_64/include/mysql_version.h
mysql-8.0.35-linux-glibc2.28-x86_64/include/mysqld_error.h
mysql-8.0.35-linux-glibc2.28-x86_64/include/mysqlx_ername.h
mysql-8.0.35-linux-glibc2.28-x86_64/include/mysqlx_error.h
mysql-8.0.35-linux-glibc2.28-x86_64/include/mysqlx_version.h
mysql-8.0.35-linux-glibc2.28-x86_64/lib/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/libmysqlclient.a
mysql-8.0.35-linux-glibc2.28-x86_64/lib/libmysqlservices.a
mysql-8.0.35-linux-glibc2.28-x86_64/lib/pkgconfig/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/pkgconfig/mysqlclient.pc
mysql-8.0.35-linux-glibc2.28-x86_64/share/
mysql-8.0.35-linux-glibc2.28-x86_64/share/aclocal/
mysql-8.0.35-linux-glibc2.28-x86_64/share/aclocal/mysql.m4
mysql-8.0.35-linux-glibc2.28-x86_64/docs/
mysql-8.0.35-linux-glibc2.28-x86_64/docs/INFO_SRC
mysql-8.0.35-linux-glibc2.28-x86_64/docs/
mysql-8.0.35-linux-glibc2.28-x86_64/docs/INFO_BIN
mysql-8.0.35-linux-glibc2.28-x86_64/docs/INFO_SRC
mysql-8.0.35-linux-glibc2.28-x86_64/man/
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/comp_err.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/ibd2sdi.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/innochecksum.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/lz4_decompress.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/my_print_defaults.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/myisam_ftdump.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/myisamchk.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/myisamlog.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/myisampack.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysql.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysql.server.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysql_config.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysql_config_editor.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysql_secure_installation.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysql_ssl_rsa_setup.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysql_tzinfo_to_sql.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysql_upgrade.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysqladmin.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysqlbinlog.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysqlcheck.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysqld_multi.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysqld_safe.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysqldump.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysqldumpslow.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysqlimport.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysqlman.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysqlpump.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysqlrouter.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysqlrouter_passwd.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysqlrouter_plugin_info.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysqlshow.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/mysqlslap.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/perror.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man1/zlib_decompress.1
mysql-8.0.35-linux-glibc2.28-x86_64/man/man8/
mysql-8.0.35-linux-glibc2.28-x86_64/man/man8/mysqld.8
mysql-8.0.35-linux-glibc2.28-x86_64/LICENSE
mysql-8.0.35-linux-glibc2.28-x86_64/README
mysql-8.0.35-linux-glibc2.28-x86_64/bin/
mysql-8.0.35-linux-glibc2.28-x86_64/bin/ibd2sdi
mysql-8.0.35-linux-glibc2.28-x86_64/bin/innochecksum
mysql-8.0.35-linux-glibc2.28-x86_64/bin/lz4_decompress
mysql-8.0.35-linux-glibc2.28-x86_64/bin/my_print_defaults
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysqld
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysqld_multi
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysqld_safe
mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysqldumpslow
mysql-8.0.35-linux-glibc2.28-x86_64/bin/perror
mysql-8.0.35-linux-glibc2.28-x86_64/bin/zlib_decompress
mysql-8.0.35-linux-glibc2.28-x86_64/lib/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_euc-jp/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_euc-jp/char.bin
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_euc-jp/dicrc
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_euc-jp/left-id.def
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_euc-jp/matrix.bin
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_euc-jp/pos-id.def
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_euc-jp/rewrite.def
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_euc-jp/right-id.def
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_euc-jp/sys.dic
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_euc-jp/unk.dic
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_sjis/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_sjis/char.bin
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_sjis/dicrc
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_sjis/left-id.def
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_sjis/matrix.bin
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_sjis/pos-id.def
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_sjis/rewrite.def
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_sjis/right-id.def
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_sjis/sys.dic
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_sjis/unk.dic
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_utf-8/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_utf-8/char.bin
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_utf-8/dicrc
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_utf-8/left-id.def
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_utf-8/matrix.bin
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_utf-8/pos-id.def
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_utf-8/rewrite.def
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_utf-8/right-id.def
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_utf-8/sys.dic
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/dic/ipadic_utf-8/unk.dic
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/etc/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/mecab/etc/mecabrc
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/adt_null.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/auth_socket.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/component_audit_api_message_emit.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/component_keyring_file.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/component_log_filter_dragnet.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/component_log_sink_json.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/component_log_sink_syseventlog.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/component_mysqlbackup.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/component_query_attributes.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/component_reference_cache.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/component_validate_password.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/connection_control.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/ddl_rewriter.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/adt_null.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/auth_socket.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/component_audit_api_message_emit.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/component_keyring_file.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/component_log_filter_dragnet.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/component_log_sink_json.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/component_log_sink_syseventlog.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/component_mysqlbackup.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/component_query_attributes.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/component_reference_cache.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/component_validate_password.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/connection_control.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/ddl_rewriter.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/group_replication.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/ha_example.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/ha_mock.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/innodb_engine.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/keyring_file.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/keyring_udf.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/libmemcached.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/libpluginmecab.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/locking_service.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/mypluglib.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/mysql_clone.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/mysql_no_login.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/rewrite_example.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/rewriter.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/semisync_master.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/semisync_replica.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/semisync_slave.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/semisync_source.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/validate_password.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/debug/version_token.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/group_replication.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/ha_example.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/ha_mock.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/innodb_engine.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/keyring_file.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/keyring_udf.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/libmemcached.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/libpluginmecab.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/locking_service.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/mypluglib.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/mysql_clone.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/mysql_no_login.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/rewrite_example.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/rewriter.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/semisync_master.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/semisync_replica.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/semisync_slave.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/semisync_source.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/validate_password.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/plugin/version_token.so
mysql-8.0.35-linux-glibc2.28-x86_64/share/
mysql-8.0.35-linux-glibc2.28-x86_64/share/bulgarian/
mysql-8.0.35-linux-glibc2.28-x86_64/share/bulgarian/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/Index.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/README
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/armscii8.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/ascii.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/cp1250.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/cp1251.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/cp1256.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/cp1257.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/cp850.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/cp852.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/cp866.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/dec8.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/geostd8.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/greek.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/hebrew.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/hp8.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/keybcs2.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/koi8r.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/koi8u.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/latin1.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/latin2.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/latin5.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/latin7.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/macce.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/macroman.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/charsets/swe7.xml
mysql-8.0.35-linux-glibc2.28-x86_64/share/czech/
mysql-8.0.35-linux-glibc2.28-x86_64/share/czech/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/danish/
mysql-8.0.35-linux-glibc2.28-x86_64/share/danish/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/dictionary.txt
mysql-8.0.35-linux-glibc2.28-x86_64/share/dutch/
mysql-8.0.35-linux-glibc2.28-x86_64/share/dutch/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/english/
mysql-8.0.35-linux-glibc2.28-x86_64/share/english/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/estonian/
mysql-8.0.35-linux-glibc2.28-x86_64/share/estonian/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/french/
mysql-8.0.35-linux-glibc2.28-x86_64/share/french/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/german/
mysql-8.0.35-linux-glibc2.28-x86_64/share/german/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/greek/
mysql-8.0.35-linux-glibc2.28-x86_64/share/greek/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/hungarian/
mysql-8.0.35-linux-glibc2.28-x86_64/share/hungarian/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/innodb_memcached_config.sql
mysql-8.0.35-linux-glibc2.28-x86_64/share/italian/
mysql-8.0.35-linux-glibc2.28-x86_64/share/italian/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/japanese/
mysql-8.0.35-linux-glibc2.28-x86_64/share/japanese/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/korean/
mysql-8.0.35-linux-glibc2.28-x86_64/share/korean/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/messages_to_clients.txt
mysql-8.0.35-linux-glibc2.28-x86_64/share/messages_to_error_log.txt
mysql-8.0.35-linux-glibc2.28-x86_64/share/norwegian/
mysql-8.0.35-linux-glibc2.28-x86_64/share/norwegian-ny/
mysql-8.0.35-linux-glibc2.28-x86_64/share/norwegian-ny/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/norwegian/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/polish/
mysql-8.0.35-linux-glibc2.28-x86_64/share/polish/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/portuguese/
mysql-8.0.35-linux-glibc2.28-x86_64/share/portuguese/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/romanian/
mysql-8.0.35-linux-glibc2.28-x86_64/share/romanian/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/russian/
mysql-8.0.35-linux-glibc2.28-x86_64/share/russian/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/serbian/
mysql-8.0.35-linux-glibc2.28-x86_64/share/serbian/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/slovak/
mysql-8.0.35-linux-glibc2.28-x86_64/share/slovak/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/spanish/
mysql-8.0.35-linux-glibc2.28-x86_64/share/spanish/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/swedish/
mysql-8.0.35-linux-glibc2.28-x86_64/share/swedish/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/share/ukrainian/
mysql-8.0.35-linux-glibc2.28-x86_64/share/ukrainian/errmsg.sys
mysql-8.0.35-linux-glibc2.28-x86_64/support-files/
mysql-8.0.35-linux-glibc2.28-x86_64/support-files/mysql-log-rotate
mysql-8.0.35-linux-glibc2.28-x86_64/support-files/mysql.server
mysql-8.0.35-linux-glibc2.28-x86_64/support-files/mysqld_multi.server
mysql-8.0.35-linux-glibc2.28-x86_64/lib/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/libmysqlclient.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/libmysqlclient.so.21
mysql-8.0.35-linux-glibc2.28-x86_64/lib/libmysqlclient.so.21.2.35
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/burmesedict.dict
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/char.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/cjdict.dict
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/de.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/el.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/en.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/en_US.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/en_US_POSIX.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/es.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/fi.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/fr.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/it.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/ja.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/khmerdict.dict
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/ko.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/laodict.dict
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/line.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/line_cj.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/line_loose.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/line_loose_cj.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/line_loose_phrase_cj.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/line_normal.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/line_normal_cj.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/line_normal_phrase_cj.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/line_phrase_cj.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/pt.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/res_index.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/root.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/ru.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/sent.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/sent_el.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/sv.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/thaidict.dict
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/title.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/word.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/word_POSIX.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/word_fi_sv.brk
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/zh.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/brkitr/zh_Hant.res
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/cnvalias.icu
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/uemoji.icu
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/ulayout.icu
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/icudt73l/unames.icu
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libcom_err.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libcom_err.so.3
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libcom_err.so.3.0
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libcrypto.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libcrypto.so.3
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libfido2.so.1
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libfido2.so.1.13.0
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libgssapi_krb5.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libgssapi_krb5.so.2
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libgssapi_krb5.so.2.2
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libk5crypto.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libk5crypto.so.3
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libk5crypto.so.3.1
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libkrb5.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libkrb5.so.3
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libkrb5.so.3.3
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libkrb5support.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libkrb5support.so.0
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libkrb5support.so.0.1
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/liblber-2.5.so.0
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/liblber-2.5.so.0.1.8
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/liblber.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libldap-2.5.so.0
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libldap-2.5.so.0.1.8
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libldap.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libprotobuf-lite.so.3.19.4
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libprotobuf.so.3.19.4
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libsasl2.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libsasl2.so.3
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libsasl2.so.3.0.0
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libssl.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/libssl.so.3
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libanonymous.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libanonymous.so.3
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libanonymous.so.3.0.0
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libcrammd5.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libcrammd5.so.3
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libcrammd5.so.3.0.0
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libdigestmd5.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libdigestmd5.so.3
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libdigestmd5.so.3.0.0
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libgs2.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libgs2.so.3
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libgs2.so.3.0.0
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libgssapiv2.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libgssapiv2.so.3
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libgssapiv2.so.3.0.0
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libplain.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libplain.so.3
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libplain.so.3.0.0
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libscram.so
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libscram.so.3
mysql-8.0.35-linux-glibc2.28-x86_64/lib/private/sasl2/libscram.so.3.0.0
mysql-8.0.35-linux-glibc2.28-x86_64/share/
mysql-8.0.35-linux-glibc2.28-x86_64/share/install_rewriter.sql
mysql-8.0.35-linux-glibc2.28-x86_64/share/uninstall_rewriter.sql
[root@kylin local]# ln -s /usr/local/mysql-8.0.35-linux-glibc2.28-x86_64/ mysql
[root@kylin local]# cd mysql
[root@kylin mysql]# mkdir mysql-files
[root@kylin mysql]# chown mysql:mysql mysql-files
[root@kylin mysql]# chmod 750 mysql-files
[root@kylin mysql]# echo -e "[mysqld]\ndatadir=/var/lib/mysql/data\nbasedir=/var/lib/mysql\nsocket=/var/lib/mysql/mysql.sock\nuser=mysql\nport=3306\ncharacter-set-server=UTF8MB4\nsymbolic-links=0\nsql-mode=STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION\n[mysqld_safe]\nlog-error=/var/log/mysqld/mysqld.log\npid-file=/var/run/mysqld/mysqld.pid\n[client]\nport=3306\nsocket=/var/lib/mysql/mysql.sock"  >> /etc/my.cnf
[root@kylin mysql]# chown mysql:mysql /etc/my.cnf
[root@kylin mysql]# mkdir -p /var/lib/mysql/data
[root@kylin mysql]# chown mysql:mysql /var/lib/mysql
[root@kylin mysql]# mkdir -p /var/log/mysqld/
[root@kylin mysql]# touch /var/log/mysqld/mysqld.log
[root@kylin mysql]# chown -R mysql:mysql /var/log/mysqld
[root@kylin mysql]# chmod 777 /var/log/mysqld/mysqld.log
[root@kylin mysql]# chown mysql:mysql /var/log/mysqld/
[root@kylin mysql]# chmod 777 /var/log/mysqld/
[root@kylin mysql]# mkdir -p /var/run/mysqld/
[root@kylin mysql]# chown mysql:mysql /var/run/mysqld/
[root@kylin mysql]# chmod 777 /var/run/mysqld/
[root@kylin mysql]# mkdir -p /var/lib/mysql/bin
[root@kylin mysql]# cp bin/mysqld_safe /var/lib/mysql/bin
[root@kylin mysql]# chown -R mysql:mysql /var/lib/mysql
[root@kylin mysql]# bin/mysqld --defaults-file=/etc/my.cnf --initialize --user=mysql
2023-12-21T17:06:04.983518Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2023-12-21T17:06:04.983548Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2023-12-21T17:06:04.983669Z 0 [System] [MY-013169] [Server] /usr/local/mysql-8.0.35-linux-glibc2.28-x86_64/bin/mysqld (mysqld 8.0.35) initializing of server in progress as process 2463
2023-12-21T17:06:04.983705Z 0 [ERROR] [MY-010338] [Server] Can't find error-message file '/var/lib/mysql/share/errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
2023-12-21T17:06:04.999543Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-12-21T17:06:06.162453Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2023-12-21T17:06:07.431899Z 0 [Warning] [MY-013829] [Server] Missing data directory for ICU regular expressions: /var/lib/mysql/lib/private/.
2023-12-21T17:06:08.403649Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: Wyfu?iFAW8tY
[root@kylin mysql]# bin/mysql_ssl_rsa_setup
WARNING: mysql_ssl_rsa_setup is deprecated and will be removed in a future version. Use the mysqld server instead.
[root@kylin mysql]# bin/mysqld_safe --user=mysql &
[1] 2584
[root@kylin mysql]# 2023-12-21T17:06:36.960229Z mysqld_safe Logging to '/var/log/mysqld/mysqld.log'.
2023-12-21T17:06:37.008834Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql/data[root@kylin mysql]# cp support-files/mysql.server /etc/init.d/mysql.server
[root@kylin mysql]# 

3.3、安装后配置

链接: https://dev.mysql.com/doc/mysql-installation-excerpt/8.0/en/postinstallation.html

使用安装Mysql数据库 时生成的默认密码登录mysql数据库

mysql -uroot -p

没修改默认密码前不能进行数据库sql操作
在这里插入图片描述

修改Mysql默认密码为Mysql@123

mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'Root@123' PASSWORD EXPIRE NEVER;
ERROR 1396 (HY000): Operation ALTER USER failed for 'root'@'localhost'
mysql> 
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)mysql> 
mysql> use mysql
Database changed
mysql> 
mysql> update user set host = "%" where user = "root";
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1  Changed: 0  Warnings: 0mysql> 
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)mysql> 
mysql> ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'Root@123';
Query OK, 0 rows affected (0.01 sec)mysql> 
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)mysql> 

使用新密码登录mysql数据库

在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/241068.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

一个简单的获取显示器长宽和显示器分辨的代码

最近在做大屏显示&#xff0c;在现显示的时候有些显示器是不规则的&#xff0c;投到大屏上显示效果不好&#xff0c;可以直接获取显示器的分辨率&#xff0c;本地调整好&#xff0c;再直接部署。 <!DOCTYPE html> <html lang"en"> <head><meta …

Java LocalDateTime转Json报错处理

在项目中LocalDateTime 进行json转换时&#xff0c;抛出序列化异常&#xff0c;查找解决方案&#xff0c;记录下来&#xff0c;方便备查。 报错信息 Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type java.time.LocalDateT…

HarmonyOS的装饰器之BuilderParam 理解

BuilderParam 装饰器 使用时间&#xff1a;当定义了一个子组件&#xff0c;并且子组件的build()中有一个布局在不同的父组件&#xff0c;实现效果不一样的时候&#xff0c;可以在子组件中用这个BuilderParam装饰器&#xff0c; 在父组件用Builder 装饰器进行实现&#xff0c;然…

IDEA——IDEA中文件内容对比功能的使用,如何快速定位看文件内容是否产生变化!!!

文件内容对比 一、对比磁盘中的某一文件二、直接对比两个文件 总结 本篇文章介绍一下如何在IDEA中对比两个文件的内容是否相同。 一、对比磁盘中的某一文件 选中一个文件&#xff0c;右键->点击Compare With 选择要对比的文件即可 二、直接对比两个文件 同时选中两个文…

智能优化算法应用:基于鹈鹕算法3D无线传感器网络(WSN)覆盖优化 - 附代码

智能优化算法应用&#xff1a;基于鹈鹕算法3D无线传感器网络(WSN)覆盖优化 - 附代码 文章目录 智能优化算法应用&#xff1a;基于鹈鹕算法3D无线传感器网络(WSN)覆盖优化 - 附代码1.无线传感网络节点模型2.覆盖数学模型及分析3.鹈鹕算法4.实验参数设定5.算法结果6.参考文献7.MA…

基于Java (spring-boot)的在线考试管理系统

一、项目介绍 系统功能说明 1、系统共有管理员、老师、学生三个角色&#xff0c;管理员拥有系统最高权限。 2、老师拥有考试管理、题库管理、成绩管理、学生管理四个模块。 3、学生可以参与考试、查看成绩、试题练习、留言等功能 二、作品包含 三、项目技术 后端语言&#xff1…

RabbitMQ不公平分发与预取值

1.分发简介 RabbitMQ不设置的话默认采用轮询方式分发消息,你一个我一个(公平);但实际生活中,由于处理速度不同,若还采用轮询方式分发会导致处理速度快的空等待,因此我们采用不公平分发 2.不公平分发 在消费者这侧设置即可,以之前的Worker3和Worker4为例 2.1.Worker3 packa…

Vue3中使用props和emits详解

前言 在Vue3中&#xff0c;父子组件之间的数据传递是一个常见的需求。本文将介绍如何在Vue3中传递对象&#xff0c;并且在子组件中访问和修改父组件对象中的属性值&#xff0c;以及子组件如何调用父组件中的方法。 在 Vue 3 中&#xff0c;父子组件之间传值有以下作用&#xf…

微信小程序开发学习(上强度):从0开始写项目

前置知识 1、配置插件 微信小程序 基础模板引入sass的两种方法_微信小程序使用sass-CSDN博客 之后在对应页面里新建一个scss文件&#xff0c;写css 2、注册小程序&#xff0c;有个自己的appid&#xff0c;不用测试号了 5.1.注册小程序账号获取appid及个人和企业版差异_哔哩…

Flutter 三: Dart

1 数据类型 数字(number) int double 字符串转换成 num int.parse(“1”) double.parse(“1”);double 四舍五入保留两位小数 toStringAsFixed(2) 返回值为stringdouble 直接舍弃小数点后几位的数据 可使用字符串截取的方式 字符串(string) 单引号 双引号 三引号三引号 可以输…

positivessl多域名ev证书

PositiveSSL是Sectigo的子品牌&#xff0c;拥有类型丰富的SSL数字证书&#xff0c;旗下的SSL证书产品为众多企业和个人开发者营造了安全的网络环境&#xff0c;对网站信息进行加密服务&#xff0c;支持兼容所有现代浏览器和移动设备。今天就随SSL盾小编了解PositiveSSL旗下的多…

C++面向对象(OOP)编程-STL详解(vector)

本文主要介绍STL六大组件&#xff0c;并主要介绍一些容器的使用。 目录 1 泛型编程 2 CSTL 3 STL 六大组件 4 容器 4.1 顺序性容器 4.1.1 顺序性容器的使用场景 4.2 关联式容器 4.2.1 关联式容器的使用场景 4.3 容器适配器 4.3.1 容器适配器的使用场景 5 具体容器的…

生物信息学R分析工具包ggkegg的详细使用方法

ggkegg介绍 ggkegg 是一个用于生物信息学研究的工具&#xff0c;可以用于分析和解释基因组学数据&#xff0c;并将其与已知的KEGG数据库进行比较。ggkegg 是从 KEGG 获取信息并使用 ggplot2 和 ggraph 进行解析、分析和可视化的工具包&#xff0c;结合其他使用 KEGG 进行生物功…

数据流图_DFD图_精简易上手

数据流图(DFD)是一种图形化技术,它描绘信息流和数据从输人移动到输出的过程中所经受的变换。 首先给出一个数据流图样例 基本的四种图形 直角矩形:代表源点或终点,一般来说,是人,如例图的仓库管理员和采购员圆形(也可以画成圆角矩形):是处理,一般来说,是动作,是动词名词的形式…

PromptNER: Prompt Locating and Typing for Named Entity Recognition

原文链接&#xff1a; https://aclanthology.org/2023.acl-long.698.pdf ACL 2023 介绍 问题 目前将prompt方法应用在ner中主要有两种方法&#xff1a;对枚举的span类型进行预测&#xff0c;或者通过构建特殊的prompt来对实体进行定位。但作者认为这些方法存在以下问题&#xf…

mySQL数据库用户管理

目录 1.创建外键约束 外键的定义 主键表和外键表的理解 具体操作 2.数据库用户管理 新建用户 查看用户信息 重命名用户 删除用户 修改当前和其他用户登录密码 忘记 root密码的解决办法 3.数据库用户授权 授予权限 查看权限 撤销权限 1.创建外键约束 外键的定义…

【视觉实践】使用Mediapipe进行目标检测:杯子检测和椅子检测实践

目录 1 Mediapipe 2 Solutions 3 安装mediapipe 4 实践 1 Mediapipe Mediapipe是google的一个开源项目,可以提供开源的、跨平台的常用机器学习(machine learning,ML)方案。MediaPipe是一个用于构建机器学习管道</

计算机毕业设计 基于SpringBoot的房屋租赁管理系统的设计与实现 Java实战项目 附源码+文档+视频讲解

博主介绍&#xff1a;✌从事软件开发10年之余&#xff0c;专注于Java技术领域、Python人工智能及数据挖掘、小程序项目开发和Android项目开发等。CSDN、掘金、华为云、InfoQ、阿里云等平台优质作者✌ &#x1f345;文末获取源码联系&#x1f345; &#x1f447;&#x1f3fb; 精…

.Net 访问电子邮箱-LumiSoft.Net,好用

序言&#xff1a; 网上找了很多关于.Net如何访问电子邮箱的方法&#xff0c;但是大多数都达不到想要的需求&#xff0c;只有一些 收发邮件。因此 花了很大功夫去看 LumiSoft.Net.dll 的源码&#xff0c;总算做出自己想要的结果了&#xff0c;果然学习诗人进步。 介绍&#xff…

C语言中的关键字

Static 静态局部变量 结果&#xff1a; a作为静态局部变量&#xff0c;第一次进入该函数的时候&#xff0c;进行第一次变量的初始化&#xff0c;在程序整个运行期间都不释放。&#xff08;因为下一次调用还继续使用上次调用结束的数值&#xff09; 但是其作用域为局部作用域&…