Home > Database > Mysql Tutorial > 利用 yum 装配 mysql, 并修改密码

利用 yum 装配 mysql, 并修改密码

WBOY
Release: 2016-06-07 16:16:05
Original
1226 people have browsed it

利用 yum 安装 mysql, 并修改密码 yum install mysql yum install mysql-server yum install mysql-devel chgrp -R mysql /var/lib/mysql chmod -R 770 /var/lib/mysql service mysqld start mysql SET PASSWORD FOR 'root'@'localhost' = PASSWORD('secret_

利用 yum 安装 mysql, 并修改密码
yum install mysql
yum install mysql-server
yum install mysql-devel
chgrp -R mysql /var/lib/mysql
chmod -R 770 /var/lib/mysql
service mysqld start
mysql
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('secret_password');

登陆:
[root]:mysql -uroot -p
Enter password:
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