1.去官网下载mysql
MySQL-5.6.22-1.el6.i686.rpm-bundle.tar
将其通过xftp上传到云服务器上。
2.
在/usr/local目录下创建一个mysql文件夹
将其加压到/usr/local/mysql下
[root@VM-0-16-centos home]# cd hxl [root@VM-0-16-centos hxl]# tar -xvf MySQL-5.6.22-1.el6.i686.rpm-bundle.tar -C /usr/local/mysql/
进入mysql文件夹,安装server和client
[root@VM-0-16-centos hxl]# cd /usr/local/mysql/ [root@VM-0-16-centos mysql]# ls MySQL-client-5.6.22-1.el6.i686.rpm MySQL-shared-5.6.22-1.el6.i686.rpm MySQL-devel-5.6.22-1.el6.i686.rpm MySQL-shared-compat-5.6.22-1.el6.i686.rpm MySQL-embedded-5.6.22-1.el6.i686.rpm MySQL-test-5.6.22-1.el6.i686.rpm MySQL-server-5.6.22-1.el6.i686.rpm [root@VM-0-16-centos mysql]# rpm -ivh MySQL-server-5.6.22-1.el6.i686.rpm Preparing...