Binary installation MySQL method--5.5.32 version
Mysql-5.5.32-linux2.6-x86_64.tar.gz
Link: http://pan.baidu.com/s/1dIIU6 Password: bv61
1. Extracting binary files
Tar XF mysql-5.5.32-linux2.6-x86_64.tar.gz
2, copy to the specified installation directory
Cp-r Mysql-5.5.32-linux2.6-x86_64/application/mysql
3, enter the program running directory to create a database storage directory
Cd/application/mysql/mkdir/application/mysql/data
4. Initial Installation
./scripts/mysql_install_db--user=mysql--basedir=/application/mysql--datadir=/application/mysql/data
5. Copy the MySQL server execution program to/etc/init.d/, so that the MYSQLD service can run directly
CP Support-files/mysql.server/etc/init.d/mysqld
6. Copy the configuration file to/etc/below
CP SUPPORT-FILES/MY-SMALL.CNF/ETC/MY.CNF
7. Operation Service
/etc/init.d/mysqld start
8. Stop the Service
/etc/init.d/mysqld restart
9. Running MySQL in bash
Msyql
If the error indicates no commod does not have this command, there is no such environment variables in profile, two methods, one is to add the installation path to the environment variable, another,
cp/application/mysql/bin/*/usr/local/sbin/
Can be copied to a path that is already an environment variable
Vim/etc/profilepath=/application/mysql/bin: $PATHsource/etc/profile
This article is from "Perseverance until success" blog, please be sure to keep this source http://327101303.blog.51cto.com/212957/1617378
Binary installation MySQL method--5.5.32 version