Mariadb (Ubuntu) – ERROR 1698 (28000): Access denied for user 'root'@'localhost'

Mariadb (Ubuntu) – ERROR 1698 (28000): Access denied for user 'root'@'localhost'



when i trying to run : mysql -p on ubuntu, it says error :

mysql (mariadb) ERROR 1698 (28000): Access denied for user ‘root’@’localhost’.

—-

That error caused by, you not run with sudo ..
try with : sudo mysql -p, run and you will connected to mariadb – mysql.


See this video for details.

Nguồn: https://kythuatmarketingonline.com/

Xem thêm bài viết: https://kythuatmarketingonline.com/category/cong-nghe

42 thoughts on “Mariadb (Ubuntu) – ERROR 1698 (28000): Access denied for user 'root'@'localhost'

  1. Thank you, you saved me … I spent more than 8 hours to find out what's wrong, only your video helped me!
    LIKE AND SUBSCRIPTION

  2. BLOOD HELL!!!
    I crack my head and look everywhere to find a solution and nothing, now i can do everything.
    Thanks a lot.

  3. sudo mysql -u root
    >use mysql;
    >update user set plugin=' ' where User='root';
    >flush privileges;
    >exit;

    IS GOOD, IS FINE FOR ME.

Leave a Reply

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