Home > Database > Mysql Tutorial > body text

CentOS6.5 yum installation mysql5.7.18 example tutorial

零下一度
Release: 2017-06-25 10:00:18
Original
1159 people have browsed it

Since I have to do a MySQL cluster for my recent work, I need to install MySQL. This machine can be connected to the Internet. If you can't connect to the Internet, please refer to the rpm installation method. Not much nonsense. The specific installation steps are as follows:

1, download MySQL

wget

2, install to local yum source

yum localinstall mysql57-community-release-el6-11.noarch.rpm

3, install MySQL

 yum install mysql

4, initialize MySQL, there is one thing to note here, MySQL5.7 has added ssl configuration, the default initialization will be

 mysqld --initialize -- user=mysql

5, find the password

Cat /var/log/mysqld.log | grep "password"

6, log in to MySQL and change the password

Mysql -uroot -p password

SET PASSWORD = PASSWORD('your password');

7, the installation is complete, just log in again. Some other operations such as modifying character encoding and adding user authorization

 mysql -uroot -p password

The above is the detailed content of CentOS6.5 yum installation mysql5.7.18 example tutorial. 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