MySQL学习笔记2

MySQL glibc版本安装:

下载相应的安装包。

学会查看mysql的官方文档:

1)

MySQL学习笔记2_第1张图片

2)点击“Reference Manual”按钮:

MySQL学习笔记2_第2张图片

 

3)选择5.7版本:

MySQL学习笔记2_第3张图片

4)点击Installing MySQL on Unix/Linux Using Generic Binaries链接:

MySQL学习笔记2_第4张图片

5)需要安装一个依赖库:

MySQL学习笔记2_第5张图片

6)然后还有安装步骤:

MySQL学习笔记2_第6张图片

经过配置,我还是参考了老师在课堂上讲解的方法进行操作:

1)安装依赖包:

[root@localhost soft]# yum install libaio
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
base                                                                            | 3.6 kB  00:00:00
extras                                                                          | 2.9 kB  00:00:00
updates                                                                         | 2.9 kB  00:00:00
Package libaio-0.3.109-13.el7.x86_64 already installed and latest version
Nothing to do

2)

[root@localhost mysql_3306]# bin/mysqld --initialize --user=mysql --basedir=/mysql_3306
2023-09-21T13:57:51.803176Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2023-09-21T13:57:51.964288Z 0 [Warning] InnoDB: New log files created, LSN=45790
2023-09-21T13:57:51.984357Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2023-09-21T13:57:52.053793Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: db24a505-5886-11ee-8293-000c295cf01e.
2023-09-21T13:57:52.054192Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2023-09-21T13:57:52.503457Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
2023-09-21T13:57:52.503471Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
2023-09-21T13:57:52.505012Z 0 [Warning] CA certificate ca.pem is self signed.
2023-09-21T13:57:52.692331Z 1 [Note] A temporary password is generated for root@localhost: hKkq0vsf&(av

 3)

MySQL学习笔记2_第7张图片

最后版本安装成功。

源码编译安装方法:

你可能感兴趣的:(MySQL,mysql)