Install mysql-5.5.52 based on the binary universal format

Source: Internet
Author: User

Install mysql-5.5.52 based on the binary universal format


Environment Introduction:

Linux Host: centos6.8

MySQL binary format pack: mysql-5.5.52-linux2.6-x86_64.tar.gz



1. Unpack the package to a specific directory

[Email protected] ~]# tar XF mysql-5.5.52-linux2.6-x86_64.tar.gz-c/usr/local/


2. Create a soft link

[Email protected] ~]# ln-sv/usr/local/mysql-5.5.52-linux2.6-x86_64//usr/local/mysql '/usr/local/mysql '/usr/ local/mysql-5.5.52-linux2.6-x86_64/'


3. Enter the directory, view the installation Help, and start the installation

[[email protected] ~]# Cd/usr/local/mysql[[email protected] mysql]# cat install-binary//View Help based on prompts to a specific website


650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/8B/12/wKiom1hDnEnhC17zAAAkxlsETCs762.png-wh_500x0-wm_3 -wmp_4-s_3796303128.png "title=" 1.png "alt=" Wkiom1hdnenhc17zaaakxlsetcs762.png-wh_50 "/>



[[email protected] mysql]# groupadd mysql   [[email protected]  mysql]# useradd -r -g mysql -s /bin/false mysql //There is no need to perform [[email  protected] mysql]# chown -r mysql . [[email protected] mysql]# chgrp -r mysql . [[email protected] mysql]# ./scripts/mysql_install_db --help//View option We do not use it here in the default database storage location [[ email protected] mysql]# mkdir -pv /mysql/data///database files are best placed in the   hard raid   LVM   on [[email protected] mysql]# chown mysql:mysql /mysql/data/[[email  protected] mysql]# ll -d /mysql/data/drwxr-xr-x. 2 mysql mysql 4096  sep 16 21:44 /mysql/data/[[email protected] mysql]# ./scripts/mysql_ install_db --datadir=/mysql/data/ --user=mysql[[email protected] mysql]# ls / Mysql/data/mysql  performance_schema  test //database files for three systems generated when the database is initialized 


650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/8B/0F/wKioL1hDnGmgdMV7AAAKtNVtmlM311.png "title=" 2.png " alt= "Wkiol1hdngmgdmv7aaaktnvtmlm311.png"/>

[email protected] mysql]# cp support-files/my-medium.cnf/etc/my.cnf cp:overwrite '/etc/my.cnf '? Y//Do not use the default installed MySQL database on the system can overwrite the original configuration file [[email protected] mysql]# VIM/ETC/MY.CNF


650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/8B/0F/wKioL1hDnH-wzlZmAAAPP7ulI98418.png "title=" 3.png " alt= "Wkiol1hdnh-wzlzmaaapp7uli98418.png"/>


[[email protected] mysql]# CP support-files/mysql.server/etc/init.d/mysqld.server[[email protected] mysql]# chkconfig --add Mysqld.server


4. Test start

[[Email protected] mysql]# service mysqld.server startstarting MySQL. [OK] [Email protected] mysql]# Ss-tlnlisten 0 50 *:3306


Startup success

There are many more files or directories under the database directory


5, the final configuration


Exporting a man document

[[email protected] ~]# Vim/etc/man.config Manpath/usr/local/mysql/man--Add the line


Export Header File

[Email protected] ~]# ln-sv/usr/local/mysql/include//usr/include/mysql '/usr/include/mysql '/usr/local/mysql /include/'


Export Library files

[Email protected] ~]# Vim/etc/ld.so.conf.d/mysql.conf/usr/local/mysql/lib


Reload the System library file

[Email protected] lib]# ldconfig-v


Export Binary Program Path

[Email protected] ~]# Vim/etc/profile.d/mysql.sh[[email protected] ~]#. /etc/profile.d/mysql.sh


Ok



This article is from the "Homecoming" blog, make sure to keep this source http://sixijie123.blog.51cto.com/11880770/1879286

Install mysql-5.5.52 based on the binary universal format

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.