1.MySQL version[root@clq system]# mysql -v Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 49 Server version: 5.7.33 MySQL Community Server (GPL) 2. Configure the mysqld.service file[Unit] Description=mysql server daemon After=network.target mysql-keygen.target [Service] Type=forking ExecStart=/usr/local/mysql/support-files/mysql.server start ExecStop=/usr/local/mysql/support-files/mysql.server stop ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target [Install] WantedBy=multi-user.target 3. Where the mysqld.service file is placed/usr/lib/systemd/system/mysqld.service 4. Self-startsystemctl daemon-reload systemctl enable --now mysqld [root@mysql ~]# ss -antl State Recv-Q Send-Q Local Address:Port Peer Address:Port Process LISTEN 0 128 0.0.0.0:111 0.0.0.0:* LISTEN 0 32 192.168.122.1:53 0.0.0.0:* LISTEN 0 128 0.0.0.0:22 0.0.0.0:* LISTEN 0 5 127.0.0.1:631 0.0.0.0:* LISTEN 0 128 [::]:111 [::]:* LISTEN 0 128 [::]:22 [::]:* LISTEN 0 5 [::1]:631 [::]:* LISTEN 0 80 *:3306 *:* The above is the detailed content of the MySQL 5.7 single instance self-starting service configuration process. For more information about the MySQL 5.7 single instance self-starting service configuration, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: Detailed explanation of JavaScript BOM composition and common events
>>: How to use docker compose to build fastDFS file server
First we need to install some dependencies npm i ...
Table of contents 1. Introduction to calculator f...
Table of contents What is Flattening recursion to...
Table of contents What is index pushdown? The pri...
Table of contents 1. Gojs Implementation 1. Drawi...
This article takes the health reporting system of...
If your web application runs on only one machine,...
CSS Sprite, also known as CSS Sprite, is an image...
1. Introduction A few days ago, a development col...
Table of contents 1. Steps to use Jquery: (1) Imp...
Table of contents background Understanding compos...
Preface: The "Getting Started with MySQL&quo...
Delete the previously installed mariadb 1. Use rp...
MySql is a data source we use frequently. It is v...
In many cases, you need to process the background...