Home >Database >Mysql Tutorial >CentOS6.4安装MySQL记录_MySQL

CentOS6.4安装MySQL记录_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 13:34:41972browse

CentOS6CentOS

bitsCN.com

CentOS6.4安装MySQL记录

 

选择 Linux-Generic 而不是Oracle & Ren Hat Linux 6

 

下载对应的server 和 client 包,在此笔者选用64位

 

MySQL-client-5.5.31-2.linux2.6.x86_64.rpm

MySQL-server-5.5.31-2.linux2.6.x86_64.rpm

 

下载完毕后上传到Linux下,首先安装MySQL依赖组建,如下所示

yum -y install perl  

yum -y install libaio  

 

执行安装命令

rpm -ivh MySQL-server-5.5.31-2.linux2.6.x86_64.rpm MySQL-client-5.5.31-2.linux2.6.x86_64.rpm 

 

启动MySQL

service mysql start

查看MySQL是否正常启动(默认端口:3306)

netstat -nat

 

设置mysql密码

/usr/bin/mysqladmin -u root password '你的新密码'

 

登录mysql

mysql -p 回车输入密码

bitsCN.com
Statement:
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