Tue. Oct 3rd, 2023
close up photo of cables plugged into the server

Bagi kalian yang mencoba install MySQL Server di Ubuntu, mungkin ada diantara kalian yang mengalami error ini. Ketika ingin membuat password untuk user MySQL root, keluar pesan error “SET PASSWORD has no significance for user ‘root’@’localhost’ as the authentication method used doesn’t store authentication data in the MySQL server”.

Pesan kesalahan “SET PASSWORD has no significance for user ‘root’@’localhost’ as the authentication method used doesn’t store authentication data in the MySQL server.” muncul ketika Anda mencoba menjalankan perintah “SET PASSWORD” untuk pengguna root di MySQL, tetapi metode autentikasi yang digunakan untuk pengguna root tidak memungkinkan penyimpanan data autentikasi di server MySQL. Metode autentikasi untuk pengguna root ditentukan selama instalasi server MySQL atau server MariaDB, tergantung pada mana yang Anda gunakan.

Untuk memperbaiki kesalahan ini, Anda dapat mencoba langkah-langkah berikut:

Langkah 1. Hubungkan ke server MySQL menggunakan pengguna root

Caranya, jalankan perintah berikut ini di Terminal

sudo mysql

Langkah 2. Ganti Password root anda

Jika diperlukan, kita bisa mengganti password untuk user root di MySQL server dengan perintah berikut ini

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'new_password';

Demikian tadi tutorial singkat mengganti password user root di MySQL Server. Salam

One thought on “Cara Memperbaiki Error “SET PASSWORD has no significance for user ‘root’@’localhost’ as the authentication method used doesn’t store authentication data in the MySQL server “”

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.