MySQL Workbench
Appearance
Fix – MySQL ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
Create a database user with a weak password:
sudo mysql -u root
create user 'ostechnix'@'localhost' identified by 'mypassword';
Terdapat error seperti berikut
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
Pada saat menjalankan
sudo mysql_secure_installation utility
Memilih salah satu
LOWLength >= 8 characters.MEDIUMLength >= 8, numeric, mixed case, and special characters.STRONGLength >= 8, numeric, mixed case, special characters and dictionary file.
- Jika memilih MEDIUM buatlah password yang mengandung huruf aphabet kapital dan kecil lalu berikan tanda baca serta angka. Berikut adalah contoh perintahnya
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Qweewq*#123';
- Perintah berikut digunakan untuk mengubah password pada user root
- Jika ingin membuat user baru, berikut adalah perintahnya
create user 'ostechnix'@'localhost' identified by 'Qweewq*#123';