1. Download the mysql tar file: https://dev.mysql.com/downloads/mysql/5.6.html#downloads 2. Enter the directory where the installation package is located Execute the command: 3. Copy the unzipped mysql directory to the system's local software directory: Execute the command: 4. Add the system mysql group and mysql user: Execute the command: 5. Install the database: Enter the directory where the MySQL software is installed: execute the command Change the owner of the current directory to the mysql user: execute the command Install the database: execute the command Change the owner of the current directory to the root user: execute the command Change the owner of the current data directory to the mysql user: execute the command 6. Start the mysql service and add the mysql service to start at boot: Add startup script: execute the command Start the MySQL service: execute the command Execute the command: 7. Change the root user password of mysql. The initial root password is empty: Execute command: 8. Put the mysql client in the default path: Note: It is recommended to use a soft link instead of directly copying the package file to facilitate the installation of multiple versions of MySQL on the system Summarize The above is the installation steps of MySQL under Linux introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: How to build gitlab on centos6
I believe that many people who have used MySQL fo...
This article example shares the specific code of ...
Alibaba Cloud Server installs and configures Tomc...
var() Introduction and Usage Details (MDN) IE is ...
Recent projects involve the creation of a lot of ...
As we all know, mailto is a very practical HTML ta...
Table of contents Preface Why do we need to encap...
1. --cpu=<value> 1) Specify how much availa...
Docker Compose Introduction to Compose Compose is...
1.html part Copy code The code is as follows: <...
1. Yum installation yum install subversion 2. Con...
There are two types of hard disks in Linux: mount...
I reinstalled the computer and installed the late...
This article uses examples to describe the add, d...
Table of contents 1. Data Type 1.1 Why do we need...