MySQL installation tutorial under Centos7

MySQL installation tutorial under Centos7

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

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 and run the following command
mysql_upgrade -uroot -p

#Update the password prompt successfully again


• Set up remote connection

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

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • CentOS 7 installation of mysql5.5 and the command used to install mariadb
  • Install python2.7 +pip +mysqld under centos
  • How to install mysql5.5 on centos 7
  • How to install mysql server in CentOS 7
  • Compilation and installation of PHP7 under CentOS and support for MySQL and solutions to some common problems
  • MySQL 5.7.17 installation and configuration method graphic tutorial (CentOS7)
  • 64-bit CentOs7 source code installation mysql-5.6.35 process sharing
  • Centos6.5 compile and install mysql 5.7.14 detailed tutorial
  • Tutorial on installing MySQL 5.6.32 on CentOS7.2 virtual machine
  • Tutorial on installing mysql (MariaDB) under centos 7

<<:  How to enable MySQL remote connection in Linux server

>>:  Linux kernel device driver kernel time management notes

Recommend

Solve the problem of garbled data in MySQL database migration

Under the instructions of my leader, I took over ...

Encoding problems and solutions when mysql associates two tables

When Mysql associates two tables, an error messag...

Detailed explanation of the concept, principle and usage of MySQL triggers

This article uses examples to explain the concept...

Image scrolling effect made with CSS3

Achieve resultsImplementation Code html <base ...

DIV common attributes collection

1. Property List Copy code The code is as follows:...

How to compile and install xdebug in Ubuntu environment

This article describes how to compile and install...

Let's talk in detail about the difference between unknown and any in TypeScript

Table of contents Preface 1. unknown vs any 2. Th...

Why TypeScript's Enum is problematic

Table of contents What happened? When to use Cont...

Summary of 4 methods of div+css layout to achieve 2-end alignment of css

The div+css layout to achieve 2-end alignment is ...

Troubleshooting of master-slave delay issues when upgrading MySQL 5.6 to 5.7

Recently, when upgrading the Zabbix database from...

How to capture exceptions gracefully in React

Table of contents Preface ErrorBoundary Beyond Er...

Comparing Node.js and Deno

Table of contents Preface What is Deno? Compariso...

Docker installation of MySQL (8 and 5.7)

This article will introduce how to use Docker to ...