ERROR 1698 (28000): acesso negado para o usuário 'root' @ 'localhost'

0
alhelal@VimLaTeX:~$ mysql -u root -p
Enter password: 
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
alhelal@VimLaTeX:~$ sudo mysql -u root -p
[sudo] password for alhelal: 
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 35
Server version: 10.1.29-MariaDB-6 Ubuntu 18.04

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>   
Por que o mariadb não permite que usuários normais do ubuntu entrem no mysql como usuário root do mysql?

Eu também tentei ERRO 1698 (28000): Acesso negado para o usuário 'root' @ 'localhost' no Ubuntu 18.04 mas falhou?

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'test'' at line 1
    
por alhelal 05.06.2018 / 05:42

0 respostas