Home > Database > Mysql Tutorial > body text

MySQL installation tutorial under Centos7_Mysql

微波
Release: 2017-06-28 15:45:34
Original
1608 people have browsed it

This article mainly introduces the MySQL installation tutorial under Centos7 in detail. It has certain reference value and interested friends can refer to it. Here is the

MySQL installation tutorial for your reference. The specific content is as follows

1. Download

Go to the official website to download the Yum source: Address

2. Installation

rpm -ivh mysql57-community-release-el7-11.noarch.rpm
yum install MySQL-community-server
Copy after login

3. Connection settings

• No password for initial installation
mysql -u root

•Set password
set password for 'root'@'localhost' =password('password');

#If the following error is reported

#Exit Mysql connection runs the following command
mysql_upgrade -uroot -p

Updatepassword again Prompt successful


•Set up remote connection

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

The above is the detailed content of MySQL installation tutorial under Centos7_Mysql. 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