Home > Database > Mysql Tutorial > centOS6.3下安装mysql5.6详解_MySQL

centOS6.3下安装mysql5.6详解_MySQL

WBOY
Release: 2016-06-01 13:13:01
Original
1115 people have browsed it

CentOS6CentOS

首先去mysql官网下载需要的linux版本的mysql,我下的是MySQL-5.6.17-1.linux_glibc2.5.x86_64.rpm-bundle.tar

下载网址为:http://dev.mysql.com/downloads/mysql/

接下来把下载下来的mysql拖到centOS中去,也可以直接在centOS中下载。

接下来解压下载好的文件

[root@localhost src]# tar -xvf MySQL-5.6.17-1.linux_glibc2.5.x86_64.rpm-bundle.tar

查看centOS安装的mysql
[root@localhost src]# rpm -qa|grep mysql

mysql-libs-5.1.61-4.el6.x86_64
//将 /var/lib/mysql文件夹下的所有文件都删除干净

rpm -e --nodeps mysql-libs-5.1.61-4.el6.x86_64

接下来安装mysql
rpm -ivh MySQL-client-5.6.17-1.linux_glibc2.5.x86_64.rpm
rpm -ivh MySQL-devel-5.6.17-1.linux_glibc2.5.x86_64.rpm
rpm -ivh MySQL-server-5.6.17-1.linux_glibc2.5.x86_64.rpm

最后几步

[root@localhost src]# netstat -nat | grep 3306
[root@localhost src]# service mysql start
[root@localhost src]#  /etc/init.d/mysql start
Starting MySQL.. SUCCESS! 

这样一个mysql就成功创建完成了!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template