Notice
Recent Posts
Recent Comments
Tags
- web&was apche htaccess
- mgmtip
- CEP
- 진상부모_물러가라
- 웰카
- snmp
- Network
- 우파푸른하늘80만이벤트
- Auth
- maxscale
- MotD
- Netflix
- wildfly jboss
- unix_socket
- Storage
- Galera Cluster
- docker
- vmware
- banner
- 우파푸른하늘
- etcd
- mariadb
- dell
- CentOS
- n15148
- openldap
- n1548
- data-door
- port description
- 참교육
- Path
- RHEL8
- drbd
- pod
- Kubernetes
- admin port
- perplexity
반응형
250x250
분갈이하는 루트 :-)의 기록
mysql grant실행시 access denied 발생시 조치방법 본문
728x90
반응형
mysql 데이터 이전(재설치 이후) root로 로그인하여 쿼리 작업이 다른 쿼리는 정상적으로 적용되는데,
grant구문 실행하면 access denied 처리될때,
요롷게..???
mysql> grant all privileges on *.* to 'root'@'1.2.3.4' identified by '123123' with grant option;
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
구글링결과.. 데이터 이전 작업 중 먼가 호환이 안되었던 모양.
다음과같이 mysqlupgrade를 실행했다.
$> mysql_upgrade -u root -p
Enter password: …
이하 화면 생략… …
맨 마지막 화면은 Running ‘mysql_fix_privilege_tables’… OK
일단 OK떨어졌으니, 다시 grant 적용해보자.
mysql> grant all privileges on *.* to 'root'@'1.2.3.4' identified by '123123' with grant option;
Query OK, 0 rows affected (0.00 sec)
오…된다….ㅋㅋ
물론, grant 구문에 대한 적용도 된다.ㅎㅎㅎ
출처
http://igoni.kr/books/dbms/page/mysql-grant-access-denied
mysql grant실행시 access ... | igoni.kr
mysql 데이터 이전(재설치 이후) root로 로그인하여 쿼리 작업이 다른 쿼리는 정상적으로 적용되는데,grant...
igoni.kr
728x90
반응형
'mysql&mariadb' 카테고리의 다른 글
| mysql replication 설정 (0) | 2022.07.31 |
|---|---|
| Mysql innodb컴파일 (0) | 2022.07.31 |
| Mysql Audit 기능 설정 (0) | 2022.07.30 |
| mysql 백업데이터에서 일부 데이터만 적용하기 (0) | 2022.07.25 |
| mysql 리플리케이션 UUID오류문제 (0) | 2022.07.25 |
Comments