[Linux] Centos7 under MySQL small white installation tutorial

Source: Internet
Author: User
Tags mysql download

First, the tool download

MySQL Download portal

Securecrtsecurefx Download Portal

Second, upload the installation files

Third, view the uploaded MySQL installation files

[Email protected] ~]# lsanaconda-ks.cfg  mysql-client-advanced-5.6.  1. el7.x86_64.rpm  mysql-server-advanced-5.6.  1. el7.x86_64.rpm  public  template  video  picture  document  download  music  Desktop

Iv. Installation of Perl

[Email protected] ~]yum install-y Perl-module-install.noarch


V. Installation of Libaio

[Email protected] ~]yum install-y Libaio libaio-devel


Vi. Modifying the SELinux cfg

[Email protected] ~]vi/etc/selinux/config

Modified (can be modified by pressing the I key) selinux=enforcing to Selinux=disabled, save (press ESC to enter: Wq after return)

Seven, restart the system

[Email protected] ~]reboot

Viii. Installing the server

[Email protected] ~]RPM-IVH mysql-server-advanced-5.6. 1. el7.x86_64.rpm

Nine, install the client

[Email protected] ~]RPM-IVH mysql-client-advanced-5.6. 1. el7.x86_64.rpm

Ten, start MySQL

[[Email protected] ~]# service mysql startstarting mysql SUCCESS

Xi. Setting the root password

[[Email protected] ~]# service MySQL stop [[email protected]~]# mysqld_safe--user=mysql--skip-grant-tables--skip-networking &[[Email protected]~]# MySQL-u root mysql mysql> UPDATE User SET Password=password ('123')whereUser='Root'; MySQL>FLUSH privileges; MySQL>quit [[email protected]~]# service MySQL start[[email protected]~]# Mysql-u Root-p Enter Password:123

12. Start MySQL times wrong

error! MySQL server PID file could not being found!

Kill all out of the process and start MySQL.

[[Email protected] ~]# PS aux |grep mysq*
Root 19162 0.0 0.0 113252-PTS/1 S 09:24 0:00/bin/sh/usr/bin/mysqld_safe--user=mysql--skip-grant-t Ables--skip-networking
MySQL 19280 0.1 5.7 1038812 456172 pts/1 Sl 09:24 0:03/usr/sbin/mysqld--basedir=/usr--datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin--user=mysql--skip-grant-tables--skip-networking--log-error=/var/lib/mysql /localhost.err--pid-file=/var/lib/mysql/localhost.pid
Root 19678 0.0 0.0 112656 980 PTS/1 s+ 09:55 0:00 grep--color=auto mysq*
[[email protected] ~]# kill 19162
[[email protected] ~]# kill 19280
[email protected] ~]# kill 19678

[Linux]centos7 under MySQL mini-installation tutorial

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.