MySql WorkBench Can't connect to MySQL server on '127.0.0.1' (111)












0















Can't connect to MySQL server on '127.0.0.1' (111)



I have install mysql Workbench using ubuntu software center, now i want to create a connection but facing this problem.










share|improve this question























  • Try the answers in this url : stackoverflow.com/questions/1420839/…

    – Haitham A. El-Ghareeb
    Apr 7 '17 at 18:55











  • I have not created a linux sql server , i have installed Mysql Workbench

    – Waqar Ahmad Khan
    Apr 8 '17 at 9:29
















0















Can't connect to MySQL server on '127.0.0.1' (111)



I have install mysql Workbench using ubuntu software center, now i want to create a connection but facing this problem.










share|improve this question























  • Try the answers in this url : stackoverflow.com/questions/1420839/…

    – Haitham A. El-Ghareeb
    Apr 7 '17 at 18:55











  • I have not created a linux sql server , i have installed Mysql Workbench

    – Waqar Ahmad Khan
    Apr 8 '17 at 9:29














0












0








0


1






Can't connect to MySQL server on '127.0.0.1' (111)



I have install mysql Workbench using ubuntu software center, now i want to create a connection but facing this problem.










share|improve this question














Can't connect to MySQL server on '127.0.0.1' (111)



I have install mysql Workbench using ubuntu software center, now i want to create a connection but facing this problem.







mysql mysql-workbench






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 7 '17 at 16:51









Waqar Ahmad KhanWaqar Ahmad Khan

1115




1115













  • Try the answers in this url : stackoverflow.com/questions/1420839/…

    – Haitham A. El-Ghareeb
    Apr 7 '17 at 18:55











  • I have not created a linux sql server , i have installed Mysql Workbench

    – Waqar Ahmad Khan
    Apr 8 '17 at 9:29



















  • Try the answers in this url : stackoverflow.com/questions/1420839/…

    – Haitham A. El-Ghareeb
    Apr 7 '17 at 18:55











  • I have not created a linux sql server , i have installed Mysql Workbench

    – Waqar Ahmad Khan
    Apr 8 '17 at 9:29

















Try the answers in this url : stackoverflow.com/questions/1420839/…

– Haitham A. El-Ghareeb
Apr 7 '17 at 18:55





Try the answers in this url : stackoverflow.com/questions/1420839/…

– Haitham A. El-Ghareeb
Apr 7 '17 at 18:55













I have not created a linux sql server , i have installed Mysql Workbench

– Waqar Ahmad Khan
Apr 8 '17 at 9:29





I have not created a linux sql server , i have installed Mysql Workbench

– Waqar Ahmad Khan
Apr 8 '17 at 9:29










3 Answers
3






active

oldest

votes


















1














Ok, This means that you need to install MySQL first, or connect to a machine with MySQL installed. Check this URL on how to do so on Ubuntu
https://www.linode.com/docs/databases/mysql/install-mysql-on-ubuntu-14-04






share|improve this answer































    1














    I faced this problem once. The issue was that the allowed host for root was localhost. The host was not unable to map localhost to 127.0.0.1. In your my.cnf file, set the bind address as follows:



    bind-address = 127.0.0.1



    To allow all IPs use %.



    Restart the server and then check.






    share|improve this answer































      1














      same issue i faced with mysql workbench 6.3.8 build 1228 CE (64-bits) community with kubuntu 18.04 version.



      i set connection method standard tcp/ip over ssh and when i try to connect to remote server it asks for ssh password and after successful ssh tunnel it asks for remote mysql password ( which was expected as i did not store passwords in keychain -- option available there in connection window ) and when i entered it i got same above error.



      after checking at server mysql log i found this line:
      Access denied for user 'root'@'localhost' (using password: NO)



      but i already entered the password while workbench asks me.



      finally i try edit connection and store mysql password there in keychain option and it works fine.






      share|improve this answer























        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',
        autoActivateHeartbeat: false,
        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%2faskubuntu.com%2fquestions%2f901266%2fmysql-workbench-cant-connect-to-mysql-server-on-127-0-0-1-111%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        1














        Ok, This means that you need to install MySQL first, or connect to a machine with MySQL installed. Check this URL on how to do so on Ubuntu
        https://www.linode.com/docs/databases/mysql/install-mysql-on-ubuntu-14-04






        share|improve this answer




























          1














          Ok, This means that you need to install MySQL first, or connect to a machine with MySQL installed. Check this URL on how to do so on Ubuntu
          https://www.linode.com/docs/databases/mysql/install-mysql-on-ubuntu-14-04






          share|improve this answer


























            1












            1








            1







            Ok, This means that you need to install MySQL first, or connect to a machine with MySQL installed. Check this URL on how to do so on Ubuntu
            https://www.linode.com/docs/databases/mysql/install-mysql-on-ubuntu-14-04






            share|improve this answer













            Ok, This means that you need to install MySQL first, or connect to a machine with MySQL installed. Check this URL on how to do so on Ubuntu
            https://www.linode.com/docs/databases/mysql/install-mysql-on-ubuntu-14-04







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 8 '17 at 11:27









            Haitham A. El-GhareebHaitham A. El-Ghareeb

            16718




            16718

























                1














                I faced this problem once. The issue was that the allowed host for root was localhost. The host was not unable to map localhost to 127.0.0.1. In your my.cnf file, set the bind address as follows:



                bind-address = 127.0.0.1



                To allow all IPs use %.



                Restart the server and then check.






                share|improve this answer




























                  1














                  I faced this problem once. The issue was that the allowed host for root was localhost. The host was not unable to map localhost to 127.0.0.1. In your my.cnf file, set the bind address as follows:



                  bind-address = 127.0.0.1



                  To allow all IPs use %.



                  Restart the server and then check.






                  share|improve this answer


























                    1












                    1








                    1







                    I faced this problem once. The issue was that the allowed host for root was localhost. The host was not unable to map localhost to 127.0.0.1. In your my.cnf file, set the bind address as follows:



                    bind-address = 127.0.0.1



                    To allow all IPs use %.



                    Restart the server and then check.






                    share|improve this answer













                    I faced this problem once. The issue was that the allowed host for root was localhost. The host was not unable to map localhost to 127.0.0.1. In your my.cnf file, set the bind address as follows:



                    bind-address = 127.0.0.1



                    To allow all IPs use %.



                    Restart the server and then check.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Apr 8 '17 at 13:39









                    Noisy_BotnetNoisy_Botnet

                    1,083312




                    1,083312























                        1














                        same issue i faced with mysql workbench 6.3.8 build 1228 CE (64-bits) community with kubuntu 18.04 version.



                        i set connection method standard tcp/ip over ssh and when i try to connect to remote server it asks for ssh password and after successful ssh tunnel it asks for remote mysql password ( which was expected as i did not store passwords in keychain -- option available there in connection window ) and when i entered it i got same above error.



                        after checking at server mysql log i found this line:
                        Access denied for user 'root'@'localhost' (using password: NO)



                        but i already entered the password while workbench asks me.



                        finally i try edit connection and store mysql password there in keychain option and it works fine.






                        share|improve this answer




























                          1














                          same issue i faced with mysql workbench 6.3.8 build 1228 CE (64-bits) community with kubuntu 18.04 version.



                          i set connection method standard tcp/ip over ssh and when i try to connect to remote server it asks for ssh password and after successful ssh tunnel it asks for remote mysql password ( which was expected as i did not store passwords in keychain -- option available there in connection window ) and when i entered it i got same above error.



                          after checking at server mysql log i found this line:
                          Access denied for user 'root'@'localhost' (using password: NO)



                          but i already entered the password while workbench asks me.



                          finally i try edit connection and store mysql password there in keychain option and it works fine.






                          share|improve this answer


























                            1












                            1








                            1







                            same issue i faced with mysql workbench 6.3.8 build 1228 CE (64-bits) community with kubuntu 18.04 version.



                            i set connection method standard tcp/ip over ssh and when i try to connect to remote server it asks for ssh password and after successful ssh tunnel it asks for remote mysql password ( which was expected as i did not store passwords in keychain -- option available there in connection window ) and when i entered it i got same above error.



                            after checking at server mysql log i found this line:
                            Access denied for user 'root'@'localhost' (using password: NO)



                            but i already entered the password while workbench asks me.



                            finally i try edit connection and store mysql password there in keychain option and it works fine.






                            share|improve this answer













                            same issue i faced with mysql workbench 6.3.8 build 1228 CE (64-bits) community with kubuntu 18.04 version.



                            i set connection method standard tcp/ip over ssh and when i try to connect to remote server it asks for ssh password and after successful ssh tunnel it asks for remote mysql password ( which was expected as i did not store passwords in keychain -- option available there in connection window ) and when i entered it i got same above error.



                            after checking at server mysql log i found this line:
                            Access denied for user 'root'@'localhost' (using password: NO)



                            but i already entered the password while workbench asks me.



                            finally i try edit connection and store mysql password there in keychain option and it works fine.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Dec 28 '18 at 13:37









                            Suraj InamdarSuraj Inamdar

                            112




                            112






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Ask Ubuntu!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f901266%2fmysql-workbench-cant-connect-to-mysql-server-on-127-0-0-1-111%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







                                Popular posts from this blog

                                flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                                Mangá

                                Eduardo VII do Reino Unido