일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- git
- SWIFT
- SwiftUI
- MYSQL
- appres
- WebAuthn
- MSYS2
- 인증
- Xcode
- SSL
- MFA
- OTP
- Android
- openssl
- fido
- 앨범북
- OSX
- otpkey
- FIDO2
- css
- apple
- SSH
- 애플
- 안드로이드
- 2FA
- kmip
- albumbook
- 앱스토어
- 앱리소스
- Nodejs
Archives
- Today
- Total
인디노트
MYSQL root password change from 8.x 본문
Update: On 8.0.15 (maybe already before that version) the PASSWORD() function does not work You have to do:
- Make sure you have Stopped MySQL first (above).
- Run the server in safe mode with privilege bypass: sudo mysqld_safe --skip-grant-tables
mysql -u root
UPDATE mysql.user SET authentication_string=null WHERE User='root';
FLUSH PRIVILEGES;
exit;
Then
mysql -u root
ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'yourpasswd';
반응형
'개발 플랫폼 및 언어 > DB 기술' 카테고리의 다른 글
MySQL 의 Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (0) | 2021.04.14 |
---|---|
MySQL Data Directory 변경후 mysqld_tmp_file case_insensitive test.lower-test 의 SELinux 관련 대처 방법 (0) | 2021.04.14 |
PostgreSQL Introducing Multi-Master (0) | 2019.01.11 |
How to upgrade PostgreSQL from version 9.6 to version 10.1 without losing data? (0) | 2019.01.10 |
Postgres-BDR (0) | 2019.01.10 |
Comments