MySQL Workbench

Revision as of 17:48, 9 September 2022 by Kangtain (talk | contribs) (Kangtain moved page MySQL Workbench to Software/MySQL Workbench)

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

  • LOW Length >= 8 characters.
  • MEDIUM Length >= 8, numeric, mixed case, and special characters.
  • STRONG Length >= 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';

Source