Access denied for user 'root'@'localhost' (using password: YES) after new installation on Ubuntu

前端 未结 8 913
一个人的身影
一个人的身影 2020-12-04 06:09

Today I did a login as root into Ubuntu 14.04.1 LTS ll

and then apt-get install mariadb-server (without sudo but as root).

With mySQL -h l

8条回答
  •  半阙折子戏
    2020-12-04 06:34

    from superuser accepted answer:

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

提交回复
热议问题