Home > Database > Mysql Tutorial > Centos下安装mysql命令_MySQL

Centos下安装mysql命令_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:41:25
Original
1156 people have browsed it

CentOS

bitsCN.com
Centos下安装mysql命令 # yum list mysql  安装mysql客户端  # yum install mysql    # yum list mysql-server  安装mysql 服务器端  # yum install mysql-server  安装过后需要启动mysql服务,我们可以通过一下两总方法:  1、service mysqld start  2、/etc/init.d/mysqld start  启动过后需要给mysql创建一个root管理员:  # mysqladmin -u root password jereh123  后我们就可以通过以下连接mysql,进入mysql命令行了:  # mysql -u root -p      然后可以新增一个用户grant all on *.* to 'user'@'%' IDENTIFIED BY 'password'; FLUSH PRIVILEGES;  作者 枫爱若雪 bitsCN.com
Related labels:
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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template