Install mysql in CentOs Rpm (hands-on instruction) and centosrpm
First, upload the mysql-rpm package flashFXP required for rpm installation to/usr/local/
: Link: http://pan.baidu.com/s/1i3rb2Gt password: 5pk8
1: # file/sbin/init // check that the system is 32-bit or 64-bit. My 32-bit download of the 32-bit mysql-rpm package
2: # rpm-I MySQL-server-5.5.31-2.el6.i686.rpm // install Server 3: # mysqld_safe // start server 4: # netstat-nat | grep 3306 // check whether mysql is started through the port
5: # rpm-I MySQL-client-5.5.31-2.el6.i686.rpm // install client 6: # mysql_secure_installation set the root user password // press enter first, the default password is empty, set the password to 123456. There are a series of Y/N options. Note that this must be N. enable remote access.
7: # mysql-u root-p // press enter and enter the password to log on.