Home > Database > Mysql Tutorial > body text

mysql修改密码起步生效

WBOY
Release: 2016-06-07 16:27:01
Original
1216 people have browsed it

mysql修改密码启动生效 需求: 修改mysql的用户名密码然后生效 实现: 1.修改操作: update mysql.user set password=PASSWORD('hive123') where user='hive'; ? 把hive的用户密码修改为hive123 2.生效刷新操作: flush privileges ? ps:好多人忘记第二步骤

mysql修改密码启动生效

需求:

修改mysql的用户名密码然后生效

实现:

1.修改操作:

update mysql.user set password=PASSWORD('hive123') where user='hive';
Copy after login

?

把hive的用户密码修改为hive123

2.生效刷新操作:

flush privileges
Copy after login

?

ps:好多人忘记第二步骤了,因此修改后不生效

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!