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

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












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)]>


Why mariadb doesn't allow normal ubuntu user to enter mysql as mysql root user?



I also tried ERROR 1698 (28000): Access denied for user 'root'@'localhost' at Ubuntu 18.04 but failed?



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






share|improve this question























    up vote
    0
    down vote

    favorite












    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)]>


    Why mariadb doesn't allow normal ubuntu user to enter mysql as mysql root user?



    I also tried ERROR 1698 (28000): Access denied for user 'root'@'localhost' at Ubuntu 18.04 but failed?



    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






    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      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)]>


      Why mariadb doesn't allow normal ubuntu user to enter mysql as mysql root user?



      I also tried ERROR 1698 (28000): Access denied for user 'root'@'localhost' at Ubuntu 18.04 but failed?



      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






      share|improve this question











      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)]>


      Why mariadb doesn't allow normal ubuntu user to enter mysql as mysql root user?



      I also tried ERROR 1698 (28000): Access denied for user 'root'@'localhost' at Ubuntu 18.04 but failed?



      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








      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 5 at 3:42









      alhelal

      5182623




      5182623

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043690%2ferror-1698-28000-access-denied-for-user-rootlocalhost%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043690%2ferror-1698-28000-access-denied-for-user-rootlocalhost%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491