Cara Ubah Password MySQL di PhpMyAdmin (LAMPP) :

  1. ubah password di mysql sesuai dengan user & host lewat phpmyadmin trus pilih menu Privileges
    cth : user : root, host : localhost, password : <root => setelah diubah>
  2. ubah file config.inc.php dengan menyamakan password yang telah kita ubah di phpmyadmin yang ada localhost setelah itu ke terminal untuk lalu ketik
    sudo gedit /opt/lampp/phpmyadmin/config.inc.php
    lalu keluar editor yang berisi sebagai berikut :

    /* Authentication type and info */
    $cfg['Servers'][$i]['auth_type'] = ‘config’;
    $cfg['Servers'][$i]['user'] = ‘root’;
    $cfg['Servers'][$i]['password'] = ‘isi password mysql baru anda’;

  3. Simpan file config.inc.php yang telah diubah tadi
  4. Restart Lampp lewat terminal
    /opt/lampp/lampp restart
  5. Buka kembali PhpMyAdmin untuk memastikan apakah sudah berhasil, jika berhasil maka anda dapat memasuki menu menu PhpMyAdmin.