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

前端 未结 8 915
一个人的身影
一个人的身影 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:21

    Run mysql_upgrade.

    Check that

    SHOW GRANTS FOR 'root'@'localhost';
    

    says

    GRANT ALL PRIVILEGES ON ... WITH GRANT OPTION 
    

    Check that the table exists _mysql.proxies_priv_.

    Access denied for user 'root'@'localhost' while attempting to grant privileges. How do I grant privileges?

提交回复
热议问题