CentOS使用RPM方式安装Mysql
以下使用5.5.47 x86 32位系统和数据库作为示例
cd /tmp wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-devel-5.5.47-1.el6.i686.rpm wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-client-5.5.47-1.el6.i686.rpm wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-server-5.5.47-1.el6.i686.rpm yum install libaio -y rpm -ivh MySQL-server-5.5.47-1.el6.i686.rpm MySQL-client-5.5.47-1.el6.i686.rpm MySQL-devel-5.5.47-1.el6.i686.rpm
安装完毕后的初始设置提示和yum安装的一样
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password' Alternatively you can run: /usr/bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. Please report any problems at http://bugs.mysql.com/
待编辑...