Cara mengganti password user MySQL

Tutorial cara mengganti password user MySQL melalui command line, berikut perintahnya

Login ke MySQL database dengan akun root

mysql -u root -p

Masukkan password root MySQL, kemudian ubah passwordnya dengan perintah ALTER USER

alter user 'nama_user'@'localhost' identified by 'password_baru';

Enter

Selesai.

Leave a Reply

Your email address will not be published. Required fields are marked *