Cannot connect to mysql : Unable to load authentication plugin 'caching_sha2_password









up vote
0
down vote

favorite












I'm quite stuck, I installed the new version of mysql (8.0.12) with homebrew.
Then I dumped my databases from mysql (I was using the MAMP stack and did that to get rid of it...).
However when importing the dump the databases were created, everything seemed to be in order. then I tried to connect my IDE (phpstorm) to it, and I got an error saying "Unable to load authentication plugin 'caching_sha2_password'." (I think this was introduced with this new version...).



I created a my.cnf file and put:



[mysqld]
default_authentication_plugin=mysql_native_password



Still did have the same issue...



So I also tried creating a user with a password to be under this new algorithm (caching_sha2_password). Did not work as well, I logged in as sudo to mysql and it gave me the below:



MacBookAir$ sudo mysql
Password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 16
Server version: 8.0.12 Homebrew



Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.



Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.



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



mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
ERROR 1726 (HY000): Storage engine 'MyISAM' does not support system tables. [mysql.db]



Last but not least, I changed the configuration in my.cnf file using this below:
default_authentication_plugin=mysql_native_password



Any idea guys?



Cheers










share|improve this question





















  • Try stackoverflow.com/questions/16556497/…
    – Huseyin
    Nov 11 at 8:10










  • No I tried this already, it gives me this mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; ERROR 1726 (HY000): Storage engine 'MyISAM' does not support system tables. [mysql.db]
    – LMD4U
    Nov 11 at 14:02















up vote
0
down vote

favorite












I'm quite stuck, I installed the new version of mysql (8.0.12) with homebrew.
Then I dumped my databases from mysql (I was using the MAMP stack and did that to get rid of it...).
However when importing the dump the databases were created, everything seemed to be in order. then I tried to connect my IDE (phpstorm) to it, and I got an error saying "Unable to load authentication plugin 'caching_sha2_password'." (I think this was introduced with this new version...).



I created a my.cnf file and put:



[mysqld]
default_authentication_plugin=mysql_native_password



Still did have the same issue...



So I also tried creating a user with a password to be under this new algorithm (caching_sha2_password). Did not work as well, I logged in as sudo to mysql and it gave me the below:



MacBookAir$ sudo mysql
Password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 16
Server version: 8.0.12 Homebrew



Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.



Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.



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



mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
ERROR 1726 (HY000): Storage engine 'MyISAM' does not support system tables. [mysql.db]



Last but not least, I changed the configuration in my.cnf file using this below:
default_authentication_plugin=mysql_native_password



Any idea guys?



Cheers










share|improve this question





















  • Try stackoverflow.com/questions/16556497/…
    – Huseyin
    Nov 11 at 8:10










  • No I tried this already, it gives me this mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; ERROR 1726 (HY000): Storage engine 'MyISAM' does not support system tables. [mysql.db]
    – LMD4U
    Nov 11 at 14:02













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm quite stuck, I installed the new version of mysql (8.0.12) with homebrew.
Then I dumped my databases from mysql (I was using the MAMP stack and did that to get rid of it...).
However when importing the dump the databases were created, everything seemed to be in order. then I tried to connect my IDE (phpstorm) to it, and I got an error saying "Unable to load authentication plugin 'caching_sha2_password'." (I think this was introduced with this new version...).



I created a my.cnf file and put:



[mysqld]
default_authentication_plugin=mysql_native_password



Still did have the same issue...



So I also tried creating a user with a password to be under this new algorithm (caching_sha2_password). Did not work as well, I logged in as sudo to mysql and it gave me the below:



MacBookAir$ sudo mysql
Password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 16
Server version: 8.0.12 Homebrew



Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.



Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.



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



mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
ERROR 1726 (HY000): Storage engine 'MyISAM' does not support system tables. [mysql.db]



Last but not least, I changed the configuration in my.cnf file using this below:
default_authentication_plugin=mysql_native_password



Any idea guys?



Cheers










share|improve this question













I'm quite stuck, I installed the new version of mysql (8.0.12) with homebrew.
Then I dumped my databases from mysql (I was using the MAMP stack and did that to get rid of it...).
However when importing the dump the databases were created, everything seemed to be in order. then I tried to connect my IDE (phpstorm) to it, and I got an error saying "Unable to load authentication plugin 'caching_sha2_password'." (I think this was introduced with this new version...).



I created a my.cnf file and put:



[mysqld]
default_authentication_plugin=mysql_native_password



Still did have the same issue...



So I also tried creating a user with a password to be under this new algorithm (caching_sha2_password). Did not work as well, I logged in as sudo to mysql and it gave me the below:



MacBookAir$ sudo mysql
Password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 16
Server version: 8.0.12 Homebrew



Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.



Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.



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



mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
ERROR 1726 (HY000): Storage engine 'MyISAM' does not support system tables. [mysql.db]



Last but not least, I changed the configuration in my.cnf file using this below:
default_authentication_plugin=mysql_native_password



Any idea guys?



Cheers







mysql






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 10 at 22:00









LMD4U

95




95











  • Try stackoverflow.com/questions/16556497/…
    – Huseyin
    Nov 11 at 8:10










  • No I tried this already, it gives me this mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; ERROR 1726 (HY000): Storage engine 'MyISAM' does not support system tables. [mysql.db]
    – LMD4U
    Nov 11 at 14:02

















  • Try stackoverflow.com/questions/16556497/…
    – Huseyin
    Nov 11 at 8:10










  • No I tried this already, it gives me this mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; ERROR 1726 (HY000): Storage engine 'MyISAM' does not support system tables. [mysql.db]
    – LMD4U
    Nov 11 at 14:02
















Try stackoverflow.com/questions/16556497/…
– Huseyin
Nov 11 at 8:10




Try stackoverflow.com/questions/16556497/…
– Huseyin
Nov 11 at 8:10












No I tried this already, it gives me this mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; ERROR 1726 (HY000): Storage engine 'MyISAM' does not support system tables. [mysql.db]
– LMD4U
Nov 11 at 14:02





No I tried this already, it gives me this mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; ERROR 1726 (HY000): Storage engine 'MyISAM' does not support system tables. [mysql.db]
– LMD4U
Nov 11 at 14:02













1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










So I decided to remove mysql 8, and install 5.7 which then works fine for me and obviously no compatibility issues.
This is a quick and dirty alternative to the compatibility issue between mysql server 5.* and 8.0.



The issue was that I migrated my databases from mysql v 5.* (MAMP stack) to mysql server 8.0 (installed separately), therefore the dump was creating some of the system tables with MyIsam engine (as it seems that in prior version, I think Innodb couldn't be used for system tables...?).
However, this was causing me a lots of issues in altering any system tables (user password etc...), I'm not sure whether it is because they are trying to get rid of the MyIsam engine and so new plugins are not adapted such as caching_sha2_password (and btw changing my.cnf file and adding "default_authentication_plugin=mysql_native_password" did not work for me...)



Thanks






share|improve this answer




















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    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: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243842%2fcannot-connect-to-mysql-unable-to-load-authentication-plugin-caching-sha2-pas%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote



    accepted










    So I decided to remove mysql 8, and install 5.7 which then works fine for me and obviously no compatibility issues.
    This is a quick and dirty alternative to the compatibility issue between mysql server 5.* and 8.0.



    The issue was that I migrated my databases from mysql v 5.* (MAMP stack) to mysql server 8.0 (installed separately), therefore the dump was creating some of the system tables with MyIsam engine (as it seems that in prior version, I think Innodb couldn't be used for system tables...?).
    However, this was causing me a lots of issues in altering any system tables (user password etc...), I'm not sure whether it is because they are trying to get rid of the MyIsam engine and so new plugins are not adapted such as caching_sha2_password (and btw changing my.cnf file and adding "default_authentication_plugin=mysql_native_password" did not work for me...)



    Thanks






    share|improve this answer
























      up vote
      0
      down vote



      accepted










      So I decided to remove mysql 8, and install 5.7 which then works fine for me and obviously no compatibility issues.
      This is a quick and dirty alternative to the compatibility issue between mysql server 5.* and 8.0.



      The issue was that I migrated my databases from mysql v 5.* (MAMP stack) to mysql server 8.0 (installed separately), therefore the dump was creating some of the system tables with MyIsam engine (as it seems that in prior version, I think Innodb couldn't be used for system tables...?).
      However, this was causing me a lots of issues in altering any system tables (user password etc...), I'm not sure whether it is because they are trying to get rid of the MyIsam engine and so new plugins are not adapted such as caching_sha2_password (and btw changing my.cnf file and adding "default_authentication_plugin=mysql_native_password" did not work for me...)



      Thanks






      share|improve this answer






















        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        So I decided to remove mysql 8, and install 5.7 which then works fine for me and obviously no compatibility issues.
        This is a quick and dirty alternative to the compatibility issue between mysql server 5.* and 8.0.



        The issue was that I migrated my databases from mysql v 5.* (MAMP stack) to mysql server 8.0 (installed separately), therefore the dump was creating some of the system tables with MyIsam engine (as it seems that in prior version, I think Innodb couldn't be used for system tables...?).
        However, this was causing me a lots of issues in altering any system tables (user password etc...), I'm not sure whether it is because they are trying to get rid of the MyIsam engine and so new plugins are not adapted such as caching_sha2_password (and btw changing my.cnf file and adding "default_authentication_plugin=mysql_native_password" did not work for me...)



        Thanks






        share|improve this answer












        So I decided to remove mysql 8, and install 5.7 which then works fine for me and obviously no compatibility issues.
        This is a quick and dirty alternative to the compatibility issue between mysql server 5.* and 8.0.



        The issue was that I migrated my databases from mysql v 5.* (MAMP stack) to mysql server 8.0 (installed separately), therefore the dump was creating some of the system tables with MyIsam engine (as it seems that in prior version, I think Innodb couldn't be used for system tables...?).
        However, this was causing me a lots of issues in altering any system tables (user password etc...), I'm not sure whether it is because they are trying to get rid of the MyIsam engine and so new plugins are not adapted such as caching_sha2_password (and btw changing my.cnf file and adding "default_authentication_plugin=mysql_native_password" did not work for me...)



        Thanks







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 11 at 15:47









        LMD4U

        95




        95



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243842%2fcannot-connect-to-mysql-unable-to-load-authentication-plugin-caching-sha2-pas%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            How to read a connectionString WITH PROVIDER in .NET Core?

            Node.js Script on GitHub Pages or Amazon S3

            Museum of Modern and Contemporary Art of Trento and Rovereto