Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CentOS7 install MySQL5.6.22     - AngularJS application unit testing started (Programming)

- Archive log file size and redo log file size relationship (Database)

- Hadoop 1 and 2.x installation notes (Server)

- Each catalog Detailed Linux (Linux)

- To install OwnCloud 7.0.4 under Ubuntu (Linux)

- Linux install the Java Runtime Environment and the output Hello World under (CentOS) (Linux)

- Oracle SDE and maintain common commands - Display space (Database)

- Open source backup software installed on Ubuntu Systemback 1.6.201 (Linux)

- MongoDB start under Linux (Database)

- Repair Raspbian Encountered a section with no Package (Linux)

- Android gets the global process information and the memory used by the process (Programming)

- Kali Linux virtualbox rc = Error 1908 workaround (Linux)

- Docker Private Registry Installation Guide at CentOS6.X (Linux)

- Correlation Analysis: FP-Growth algorithm (Programming)

- Linux kernel likely and unlikely to resolve macro definitions (Linux)

- Struts2 interceptor simulation (Programming)

- Linux system security Comments (Linux)

- Vi (Vim) keyboard map and its basic commands (Linux)

- Oracle common internal event tracking number (Database)

- Linux uses the SMTP proxy to send mail (Linux)

 
         
  CentOS7 install MySQL5.6.22
     
  Add Date : 2018-11-21      
         
         
         
  1. Installation Environment

(1) CentOS version: CentOS-7

To view:

[Root @ linuxhost Desktop] # cat / etc / RedHat-release

CentOS Linux release 7.0.1406 (Core)

Source: official website to download

Download: http: //www.centos.org/

(2) MySQL Version: MySQL-5.6.22

Title: MySQL Database 5.6.22 RPM for Oracle Linux / RHEL 7 x86 (64bit)

1. Unzip the downloaded zip package, you will find the following rpm packages:

MySQL-client-advanced-5.6.22-1.el7.x86_64.rpm

MySQL-devel-advanced-5.6.22-1.el7.x86_64.rpm

MySQL-embedded-advanced-5.6.22-1.el7.x86_64.rpm

MySQL-server-advanced-5.6.22-1.el7.x86_64.rpm

MySQL-shared-advanced-5.6.22-1.el7.x86_64.rpm

MySQL-shared-compat-advanced-5.6.22-1.el7.x86_64.rpm

MySQL-test-advanced-5.6.22-1.el7.x86_64.rpm

2. Uninstall MariaDB

If you click on the installation package rpm you will get an error. Because the default database CentOS is no longer a MySQL but MariaDB, why?

MariaDB is a branch of the database management system MySQL, mainly by the open source community in the maintenance, the use of GPL license. One reason for the development of this branch is: Oracle's acquisition of MySQL, there is potential risk of MySQL closed source, so the branch community a way to avoid this risk. MariaDB purpose is fully compatible with MySQL, including API and command line, so that it can easily become a substitute for MySQL.

See mariadb package is currently installed:

[Root @ linuxhost Desktop] # rpm -qa | grep mariadb

The mandatory uninstall them all:

[Root @ linuxhost Desktop] # rpm -e --nodeps mariadb-libs-5.5.35-3.el7.x86_64

[Root @ linuxhost Desktop] # rpm -e --nodeps mariadb-5.5.35-3.el7.x86_64

[Root @ linuxhost Desktop] # rpm -e --nodeps mariadb-server-5.5.35-3.el7.x86_64

3. Install MYSQL

Double-click the package automatically installs the following three:

MySQL-client-advanced-5.6.22-1.el7.x86_64.rpm

MySQL-devel-advanced-5.6.22-1.el7.x86_64.rpm

MySQL-server-advanced-5.6.22-1.el7.x86_64.rpm

Tip: In fact, the second package devel I do not know what, do not know is not necessary (Internet search should not be necessary), there is no need to test whether the point has been installed, you do not want to spend time is it necessary to test, and have tested a message to inform friends troubles.

4. Start MYSQL

[Root @ linuxhost Desktop] #service mysql start

Get the error:! ERROR The server quit without updating PID file

We are here mainly because: selinux blame, if it is centos system, the default will open selinux. The workaround is to turn it off, open / etc / selinux / config, the SELINUX = enforcing SELINUX save and exit to restart the machine after = disabled.

Then start mysql no problem:

[Root @ linuxhost Desktop] #service mysql start

See MySQL running status:

[Root @ linuxhost Desktop] # service mysql status

SUCCESS! MySQL running (2377)

Close up still can not operate, you can do this

[Root @ localhost ~] # service mysql start

Starting MySQL .. ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).

[Root @ localhost ~] # cd / var / lib / mysql

[Root @ localhost mysql] # less localhost.localdomain.err

[Root @ localhost mysql] # yum -y install autoconf

[Root @ localhost mysql] # / usr / bin / mysql_install_db --user = mysql
     
         
         
         
  More:      
 
- xCAT deployment (Linux)
- MongoDB replication instance (Database)
- C ++ Supplements - Smart Pointers (Programming)
- FileZilla 3.10.1.1 install on Ubuntu 14.10 (Linux)
- JavaScript in this usage (Programming)
- Based shell: using read, the command-line script to achieve mass participation and input two integer calculation (Programming)
- An Example of GoldenGate Extract Process Hang Problem Solving (Database)
- openSUSE 13.1 / 13.2 installation SoundConverter 2.1.2 (Linux)
- Five programming fallacy (Programming)
- Linux how to view the graphics models notebook (Linux)
- apt-get install openstack pkg Troubleshooting (Linux)
- The AWK use Cygwin tools mysql binlog log viewer (Database)
- PL / SQL how to make the program every few seconds to insert a data (Database)
- linux server security (Linux)
- Construction Spark source and application development environment (Server)
- U disk to install Windows and Ubuntu 15.04 dual system (Programming)
- ApacheDS configuration of users and user groups to achieve SSO (Server)
- MySQL and MariaDB new master from the cluster configuration GTID (Database)
- About Git (Linux)
- About enhanced Linux / Unix server system security program (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.