MySQL에 로그인할 때 Access denied 오류 프롬프트가 표시됩니다.
hadoop001:mysqladmin:/usr/local/mysql:>mysql -uroot -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
둘.설정 파일을 보고 skip-grant-tables를 [mysqld] 아래에 놓으십시오 skip-grant-tables의 역할은 권한 인증을 건너뛰는 skip-external-locking의 역할은 외부 잠금을 건너뛰는 것입니다
[mysqld]
port = 3306
socket = /usr/local/mysql/data/mysql.sock
skip-grant-tables
skip-external-locking
셋.서비스를 다시 시작하거나 사용하는crt, xshell을 닫습니다
hadoop001:mysqladmin:/usr/local/mysql:>service mysql stop
Shutting down MySQL.. [ OK ]
hadoop001:mysqladmin:/usr/local/mysql:>service mysql start
Shutting MySQL.. [ OK ]
넷.MySQL 다시 로그인
hadoop001:mysqladmin:/usr/local/mysql:>mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.23-log MySQL Community Server (GPL)
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.