ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

centos7国内镜像glbc版安装

2021-10-20 23:34:27  阅读:389  来源: 互联网

标签:10 alex 07 centos7 20T15 2021 mysql 镜像 glbc


1.清华大学镜像获取安装介质

[alex@bigdata-senior01 ~]$ wget https://mirrors.tuna.tsinghua.edu.cn/mysql/downloads/MySQL-5.7/mysql-5.7.36-linux-glibc2.12-x86_64.tar.gz
解压,重命名文件
[alex@bigdata-senior01 ~]$ tar -xvzf mysql-5.7.36-linux-glibc2.12-x86_64.tar.gz
[alex@bigdata-senior01 ~]$ mv mysql-5.7.36-linux-glibc2.12-x86_64 mysql57

创建mysql 配置文件 my.cnf
[client]
port = 3307  
socket=/home/alex/mysql57/mysql.sock

[mysqld]
port = 3307  
socket=/home/alex/mysql57/mysql.sock
basedir=/home/alex/mysql57 
datadir=/home/alex/mysql57/data

[mysqld_safe]
log-error=/home/alex/mysql57/mysqld.log


初始化mysqld

[alex@bigdata-senior01 mysql57]$ ./bin/mysqld --initialize --user=alex --basedir=/home/alex/mysql57 --datadir=/home/alex/mysql57/data
2021-10-20T15:07:05.763306Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000)
2021-10-20T15:07:05.763433Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000)
2021-10-20T15:07:05.763664Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-10-20T15:07:06.184424Z 0 [Warning] InnoDB: New log files created, LSN=45790
2021-10-20T15:07:06.269196Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2021-10-20T15:07:06.458594Z 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: 63c9c249-31b7-11ec-8abc-000c297248d1.
2021-10-20T15:07:06.460188Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2021-10-20T15:07:06.915565Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
2021-10-20T15:07:06.915595Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
2021-10-20T15:07:06.917387Z 0 [Warning] CA certificate ca.pem is self signed.
2021-10-20T15:07:07.179025Z 1 [Note] A temporary password is generated for root@localhost: >n7y1Cb9>a<v

[alex@bigdata-senior01 bin]$ ./mysqld_safe --defaults-file=/home/alex/mysql57/my.cnf
2021-10-20T15:11:14.391459Z mysqld_safe Logging to '/home/alex/mysql57/mysqld.log'.
2021-10-20T15:11:14.479135Z mysqld_safe Starting mysqld daemon with databases from /home/alex/mysql57/data

[alex@bigdata-senior01 mysql57]$ ./bin/mysql -uroot -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.36

Copyright (c) 2000, 2021, Oracle and/or its affiliates.

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.
mysql> set password = password('alex');
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> exit
Bye
[alex@bigdata-senior01 mysql57]$ ./bin/mysql -uroot -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.36 MySQL Community Server (GPL)

Copyright (c) 2000, 2021, Oracle and/or its affiliates.

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;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
4 rows in set (0.00 sec)

mysql> select version();
+-----------+
| version() |
+-----------+
| 5.7.36    |
+-----------+
1 row in set (0.00 sec)

mysql> 

 

标签:10,alex,07,centos7,20T15,2021,mysql,镜像,glbc
来源: https://www.cnblogs.com/Alex-Zeng/p/15431356.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有