In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Here are the detailed steps for installing MySQL 5.7.20 through the RPM package on RedHat 7.2. the secret of the text is to be close to the topic. So, forget the gossip, let's go straight to the following, and I'm sure you'll benefit from reading the detailed steps of installing MySQL 5.7.20 through the RPM package on RedHat 7.2s.
I. installation environment
1. Operating system version: Red Hat Enterprise Linux Server release 7.2 (Maipo)
2. Mysql version: mysql-5.7.20-1.el7.x86_64.rpm-bundle.tar
II. Installation instructions
1. The description of each rpm package of mysql 5.7 on the official website is as follows:
2. The paths for installing mysql5.7 with rpm package on the official website are described as follows:
3. The instructions on the official website about which rpm packages need to be installed for standard installation are as follows:
4. Instructions on the official website about initialization after installation: after using the rpm package, initialization will be completed automatically when the service is started for the first time, and there is no need to perform initialization operations manually.
III. Installation process
1. Decompress mysql-5.7.20-1.el7.x86_64.rpm-bundle.tar
2. Uninstall the mariadb-libs in the system
3. Install each rpm package in the following order, and there are dependencies among each rpm package. Finally, install the mysql-community-server-5.7.20-1.el7.x86_64.rpm Times lack of related dependency packages. Install it with yum, and then install it.
4. Check the relevant directory of mysql. It is empty.
5. After installation, the mysql service has been enable, but it has not been started. Start it.
6. After starting the mysql service, the log is as follows: the randomly generated initial root password "A temporary password is generated for root@localhost: urq2&OKwZd,t" is recorded.
2018-04-18T10:31:46.894089Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use-- explicit_defaults_for_timestamp server option (see documentation for more details). 2018-04-18T10:31:50.089964Z 0 [Warning] InnoDB: New log files created, LSN=457902018-04-18T10:31:50.319434Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.2018-04-18T10:31:50.380647Z 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: b44683a6-42f3-11e8-8b54-000c29ffe62f.2018-04-18T10:31:50.382406Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.2018-04-18T10:31:50.383390Z 1 [Note] A temporary password is generated for root@localhost: urq2&OKwZd,t2018-04-18T10:31:54.678495Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use-- explicit_defaults_for_timestamp server option (see documentation for more details). 2018-04-18T10:31:54.679697Z 0 [Note] / usr/sbin/mysqld (mysqld 5.7.20) starting as process 2954... 2018-04-18T10:31:54.685450Z 0 [Note] InnoDB: PUNCH HOLE support available2018-04-18T10:31:54.685476Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins2018-04-18T10:31:54.685479Z 0 [Note] InnoDB: Uses event mutexes2018-04-18T10:31:54.685481Z 0 [Note] InnoDB: GCC builtin _ atomic_thread_fence () is used for memory barrier2018-04-18T10:31:54.685483Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.32018-04-18T10:31:54.685486Z 0 [Note] InnoDB: Using Linux native AIO2018-04-18T10:31:54.685708Z 0 [Note] InnoDB: Number of pools: 12018-04-18T10:31:54.685812Z 0 [Note] InnoDB: Using CPU crc32 Instructions2018-04-18T10:31:54.739376Z 0 [Note] InnoDB: Initializing buffer pool Total size = 128m, instances = 1, chunk size = 128M2018-04-18T10:31:54.753795Z 0 [Note] InnoDB: Completed initialization of buffer pool2018-04-18T10:31:54.758522Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority (). 2018-04-18T10:31:54.772576Z 0 [Note] InnoDB: Highest supported file format is Barracuda.2018-04-18T10:31:54.793537Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables2018-04-18T10:31:54.793646Z 0 [Note] InnoDB: Setting file'. / ibtmp1' size to 12 MB. Physically writing the file full; Please wait... 2018-04-18T10:31:54.952587Z 0 [Note] InnoDB: File'. / ibtmp1' size is now 12 MB.2018-04-18T10:31:54.955544Z 0 [Note] InnoDB: 96 redo rollback segment (s) found. 96 redo rollback segment (s) are active.2018-04-18T10:31:54.955610Z 0 [Note] InnoDB: 32 non-redo rollback segment (s) are active.2018-04-18T10:31:54.957052Z 0 [Note] InnoDB: Waiting for purge to start2018-04-18T10:31:55.007837Z 0 [Note] InnoDB: 5.7.20 started Log sequence number 25655232018-04-18T10:31:55.009136Z 0 [Note] Plugin 'FEDERATED' is disabled.2018-04-18T10:31:55.018932Z 0 [Note] InnoDB: Loading buffer pool (s) from / var/lib/mysql/ib_buffer_pool2018-04-18T10:31:55.027051Z 0 [Note] InnoDB: Buffer pool (s) load completed at 180418 18 purge 31 hands552018-04-18T10:31:55.036775Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.2018-04-18T10:31:55.037779Z 0 [Warning] CA certificate ca.pem is self signed.2018-04-18T10:31:55.092734Z 0 [Note] Server hostname (bind-address):'*'; port: 33062018-04-18T10:31:55.092981Z 0 [Note] IPv6 is available.2018-04-18T10:31:55.093007Z 0 [Note] -': 'resolves to'::' 2018-04-18T10:31:55.093031Z 0 [Note] Server socket created on IP:':'. 2018-04-18T10:31:55.107483Z 0 [Note] Event Scheduler: Loaded 0 events2018-04-18T10:31:55.108147Z 0 [Note] / usr/sbin/mysqld: ready for connections.Version: '5.7.20' socket:'/ var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL) 2018-04-18T10:31:55. 108170Z 0 [Note] Executing 'SELECT * FROM INFORMATION_SCHEMA.TABLES 'to get a list of tables using the deprecated partition engine. You may use the startup option'--disable-partition-engine-check' to skip this check. 2018-04-18T10:31:55.108186Z 0 [Note] Beginning of list of non-natively partitioned tables2018-04-18T10:31:55.124516Z 0 [Note] End of list of non-natively partitioned tables
7. Check the directory of mysql at this time, and the relevant files have been generated automatically.
8. Log in with the initial password recorded in the log and change the root password
9. Log in successfully with the new password and complete the installation
Is there anything you don't understand about the detailed steps of installing MySQL 5.7.20 through the RPM package on RedHat 7.2above? Or if you want to know more about it, you can continue to follow our industry information section.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.