1,useradd-s/sbin/nologin MySQL
2,mkdir-p/data/mysql/data
3,chown-r Mysql:mysql/data/mysql
4,yum install gcc gcc-c++ cmake ncurses-devel Bison
5,wget http://ncu.dl.sourceforge.net/project/mysql.mirror/MySQL%205.5.28/mysql-5.5.28.tar.gz
6,tar XZVF mysql-5.5.28.tar.gz
7,CD mysql-5.5.28
Equivalent to the previous./configure
8,cmake-dmysql_user=mysql-dcmake_install_prefix=/usr/local/mysql-dinstall_datadir=/data/mysql/data-dmysql_unix _addr=/tmp/mysqld.sock-ddefault_charset=utf8-ddefault_collation=utf8_general_ci-dextra_charsets=all-dwith_ Embedded_server=1-denabled_local_infile=1-dwith_myisam_storage_engine=1-dwith_innobase_storage_engine=1
9,make && make Install
10,chown-r mysql:mysql/usr/local/mysql/
11,mv/root/mysql-5.5.28/support-files/my-large.cnf/etc/my.cnf
12,mv/root/mysql-5.5.28/support-files/mysql.server/etc/init.d/mysqld
13,chmod A+x/etc/init.d/mysqld
14,chkconfig--level 345 mysqld on
15,echo "Export path=/usr/local/mysql/bin/: $PATH" >>/etc/profile
16,source/etc/profile
17,/usr/local/mysql/scripts/mysql_install_db--user=mysql--defaults-file=/etc/my.cnf--basedir=/usr/local/ mysql5.5--datadir=/data/mysql/data
18,vim/etc/my.cnf
19, add at [mysqld]
Basedir=/usr/local/mysql
Datadir=/data/mysql/data
20,service mysqld Start
21,/usr/local/mysql/bin/mysqladmin-u root password ' 123 '
22,mysql-u root-p123
Division line = = = = =
MySQL implements remote link your paaaword for your password root for your account% does not restrict connected IP
Mysql>grant all privileges on * * to [e-mail protected] '% ' identified by ' your Paaaword ';
Mysql>grant all on * * to [e-mail protected]% identified by ' your Paaaword ';
MySQL Installation RELATED links
Http://blog.chinaunix.net/uid-26931379-id-3193926.html
CentOS 6.5 Installation mysql5.5.28