Home > Database > Mysql Tutorial > CentOS 6.2部署MySQL环境

CentOS 6.2部署MySQL环境

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:14:00
Original
1060 people have browsed it

自带启动:centos6.2自带安装mysql5.1,root身份登录(mysql -u root -p)没有密码;

1.命令安装:yum install mysql-server

2.自带启动:CentOS6.2自带安装mysql5.1,root身份登录(mysql -u root -p)没有密码;

系统->管理->服务,选择mysqld,,设置开机自启动并启动服务;

3.相关命令:

1)启动服务:service mysqld start

2)修改密码:mysql

进入mysql命令后执行下面语句:

UPDATE mysql.user SET password=PASSWORD('123') WHERE user='root';

flush privileges;

3)导入sql文件命令:source 文件路径;

4)进入mysql命令:mysql -u 用户名 -p,然后输入密码就可以进入mysql执行环境;

5)导出数据库或表:mysqldump -u 用户名 -p dataname>dataname.sql;

4.mysql图形工具workbench安装:

1)下载地址:

2)选择Oralce linux6,下载mysql-workbench-gpl-5.2.37-1el6.i686.rpm

3)yum安装:yum install rpm包名

yum卸载:yum -y remove rpm包名

linux

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