1 Mounting method
Download 2 banned source installation package
Mysql-5.5.27-linux2.6-i686.tar.gz
Remark: 2 The injunction package can be used directly after decompression without make
2 steps
Shell>groupadd MySQL
shell>useradd-d/home/mysql-m mysql-g MySQL
Shell>cd/usr/local
Shell>mkdir MySQL
Shell>cp/mnt/hgfs/exchange \data/mysql_linux/mysql-5.5.27-linux2.6-i686.tar.gz
/usr/etc/dev/mysql
SHELL>CD MySQL
Shell>tar xzvf/usr/etc/dev/mysql/mysql-5.5.27-linux2.6-i686.tar.gz
SHELL>MV mysql-5.5.27-linux2.6-i686/*.
shell>scripts/mysql-install_db--usr=mysql>note.txt&
Shell>cp/usr/etc/dev/mysql/mysql/support-files/mysql.server/etc/rc.d/init.d/mysqld
Shell>chown-r Root
Shell>chown-r MySQL Data
Shell>chown-r MySQL.
SHELL>CD bin
Shell>./mysql
3 Key files
MYSQL binary source installation file location
/mnt/hgfs/exchange \data/mysql_linux/mysql-5.5.27-linux2.6-i686.tar.gz
MySQL Installation location
#whereis MySQL
/usr/local/mysql
MYSQL configuration file/etc/my.cnf
MySQL Startup script location/etc/rc.d/init.d/mysqld
MySQL Boot mode mode:
1> #cd/usr/local/mysql/bin
#./mysql-uroot-p
#Enter Password
Way
2/etc/rc.d/init.d/mysqld restart
Linux Learning note MySQL Installation summary