Home > Database > Mysql Tutorial > body text

mysql企业版安装后密码修改

WBOY
Release: 2016-06-07 15:27:30
Original
1154 people have browsed it

安装好mysql企业版之后出现的错误解决 一 .先添加一个登陆进去的密码 #mysqladmin -u root password 123 #mysql -uroot -p123 二. 登陆进去之后发现看数据库发现需要重新密码 mysql create database aaa; ERROR 1820 (HY000): You must SET PASSWORD before

安装好mysql企业版之后出现的错误解决

 

 

一 .先添加一个登陆进去的密码

# mysqladmin -u root password 123

#mysql -uroot -p123

 

二. 登陆进去之后发现看数据库发现需要重新密码

 

mysql> create database aaa;

ERROR 1820 (HY000): You must SET PASSWORD before executing this statement

解决:
mysql>  SET PASSWORD = PASSWORD('123456');
Query OK, 0 rows affected (0.03 sec)

mysql> create database aaa;
Query OK, 1 row affected (0.00 sec)

也就是用mysql>  SET PASSWORD = PASSWORD('123456');这句话重新设置一次密码

 

 

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!