Home > Database > Mysql Tutorial > body text

Sharing about the installation tutorial of MySQL5.6.27 under Linux (picture)

黄舟
Release: 2017-07-17 14:29:35
Original
1152 people have browsed it

This article mainly introduces in detail LinuxMySQL 5.6.27 Installation tutorial, which has certain reference value , Interested friends can refer to

The examples in this article share the installation tutorial of MySQL 5.6.27 under Linux for your reference. The specific content is as follows

1. Download address

2. Upload the compressed package to the server

3. Unzip

tar -zxf mysql-5.6.27-linux- glibc2.5-x86_64.tar.gz

4. Move the compressed package to the mysql folder

mp mysql-5.6.27-linux-glibc2 .5-x86_64 /usr/local/mysql

5. Add mysql user group and mysql user

groupadd mysql and useradd -r -g mysql mysql

6. Install database

Enter the mysql software directory: cd /usr/local/mysql

Modify the current directory owner to mysql User: execute the command

chown -R mysql:mysql ./

Install the database: execute the command ./scripts/mysql_install_db --user=mysql


Modify the owner of the current directory to the root user: execute the command chown -R root:root ./


Modify the owner of the current data directory to the mysql user: execute the command chown -R mysql:mysql data



##7. Start the mysql service and add the startup mysql service

8. Modify the root user password of mysql,

./bin/mysqladmin -u root password 'password'

9. For remote authorization

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root WITH GRANT OPTION;

Question:

error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'

No good solution has been found yet.       

The above is the detailed content of Sharing about the installation tutorial of MySQL5.6.27 under Linux (picture). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template