> 데이터 베이스 > MySQL 튜토리얼 > 安装mysql时的一些问题_MySQL

安装mysql时的一些问题_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
풀어 주다: 2016-06-01 13:34:40
원래의
959명이 탐색했습니다.

bitsCN.com

安装mysql时的一些问题

 

问题如下:

 

 /usr/bin/mysql_secure_installation

 

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL

      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

 

In order to log into MySQL to secure it, we'll need the current

password for the root user.  If you've just installed MySQL, and

you haven't set the root password yet, the password will be blank,

so you should just press enter here.

 

Enter current password for root (enter for none): 

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

 

解决办法:

 

登陆mysql

 

如果无法登陆mysql 可以在my.cnf中增加skip-grant-tables;跳过验证,登陆mysql后重新设置一下密码

 

set password=password('123456');

 

然后运行

 

/usr/bin/mysql_secure_installation

 

进行安全设置就可以了

 

搞定收工

 

bitsCN.com
관련 라벨:
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿