mysqldump “Access denied” error on ubuntu with mariadb (login informations are correct) Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How do I set up Mysql Cluster?How can I get mysqldump to use the credentials from mysql_config_editor in a crontab-executed script?Why are MariaDB versions different with same configurations?MySQL Login ErrorUnable to access remotely (LAMP issue)Mariadb not working just after install on Ubuntu 16.04Cannot log into MySQLmysql restore from dump backup of all databases with user privilegesWith Adminer.php I get a Access denied for user 'root'@'localhost' error. Ubuntu 18.04mysqldump in 18.04 LTS

Classification of bundles, Postnikov towers, obstruction theory, local coefficients

Why is "Captain Marvel" translated as male in Portugal?

How should I respond to a player wanting to catch a sword between their hands?

How to say that you spent the night with someone, you were only sleeping and nothing else?

If I can make up priors, why can't I make up posteriors?

Do working physicists consider Newtonian mechanics to be "falsified"?

Antler Helmet: Can it work?

Can I throw a longsword at someone?

Fishing simulator

Why don't the Weasley twins use magic outside of school if the Trace can only find the location of spells cast?

Is there folklore associating late breastfeeding with low intelligence and/or gullibility?

Is there a documented rationale why the House Ways and Means chairman can demand tax info?

What's the point in a preamp?

Slither Like a Snake

Cauchy Sequence Characterized only By Directly Neighbouring Sequence Members

3 doors, three guards, one stone

If A makes B more likely then B makes A more likely"

How can players take actions together that are impossible otherwise?

How is simplicity better than precision and clarity in prose?

New Order #5: where Fibonacci and Beatty meet at Wythoff

Are my PIs rude or am I just being too sensitive?

What do you call the holes in a flute?

How do I automatically answer y in bash script?

Can a monk deflect thrown melee weapons?



mysqldump “Access denied” error on ubuntu with mariadb (login informations are correct)



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How do I set up Mysql Cluster?How can I get mysqldump to use the credentials from mysql_config_editor in a crontab-executed script?Why are MariaDB versions different with same configurations?MySQL Login ErrorUnable to access remotely (LAMP issue)Mariadb not working just after install on Ubuntu 16.04Cannot log into MySQLmysql restore from dump backup of all databases with user privilegesWith Adminer.php I get a Access denied for user 'root'@'localhost' error. Ubuntu 18.04mysqldump in 18.04 LTS



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I use Ubuntu with a mariadb database.



I want to make a mysqldump of my sql databases, but i get allways the following error:



mysqldump: Got error: 1045; "Access denied for user 'db_user-backups'@'localhosts' (using password: YES)" when trying to connect


The command that throws this error is following:



sudo mysqldump --defaults-file=/etc/mysql/my.cnf lom


I have allready added the username and passwort to /etc/mysql/my.cnf and made shure the cnf file has the right permissions:



[mysqldump]
user=db_user_backups
password=MyS3cretP4ssw0rD!


The username and password is correct, I can login with my sql client.



Does anyone have an idea whats im doing wrong?



(btw: please forgive me im a linux beginner ^^')










share|improve this question




























    0















    I use Ubuntu with a mariadb database.



    I want to make a mysqldump of my sql databases, but i get allways the following error:



    mysqldump: Got error: 1045; "Access denied for user 'db_user-backups'@'localhosts' (using password: YES)" when trying to connect


    The command that throws this error is following:



    sudo mysqldump --defaults-file=/etc/mysql/my.cnf lom


    I have allready added the username and passwort to /etc/mysql/my.cnf and made shure the cnf file has the right permissions:



    [mysqldump]
    user=db_user_backups
    password=MyS3cretP4ssw0rD!


    The username and password is correct, I can login with my sql client.



    Does anyone have an idea whats im doing wrong?



    (btw: please forgive me im a linux beginner ^^')










    share|improve this question
























      0












      0








      0








      I use Ubuntu with a mariadb database.



      I want to make a mysqldump of my sql databases, but i get allways the following error:



      mysqldump: Got error: 1045; "Access denied for user 'db_user-backups'@'localhosts' (using password: YES)" when trying to connect


      The command that throws this error is following:



      sudo mysqldump --defaults-file=/etc/mysql/my.cnf lom


      I have allready added the username and passwort to /etc/mysql/my.cnf and made shure the cnf file has the right permissions:



      [mysqldump]
      user=db_user_backups
      password=MyS3cretP4ssw0rD!


      The username and password is correct, I can login with my sql client.



      Does anyone have an idea whats im doing wrong?



      (btw: please forgive me im a linux beginner ^^')










      share|improve this question














      I use Ubuntu with a mariadb database.



      I want to make a mysqldump of my sql databases, but i get allways the following error:



      mysqldump: Got error: 1045; "Access denied for user 'db_user-backups'@'localhosts' (using password: YES)" when trying to connect


      The command that throws this error is following:



      sudo mysqldump --defaults-file=/etc/mysql/my.cnf lom


      I have allready added the username and passwort to /etc/mysql/my.cnf and made shure the cnf file has the right permissions:



      [mysqldump]
      user=db_user_backups
      password=MyS3cretP4ssw0rD!


      The username and password is correct, I can login with my sql client.



      Does anyone have an idea whats im doing wrong?



      (btw: please forgive me im a linux beginner ^^')







      server mysql mariadb






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 12 '18 at 19:39









      GoniosGonios

      11




      11




















          2 Answers
          2






          active

          oldest

          votes


















          0














          With error "Access denied for user 'db_user-backups'@'localhosts'. You can connect to db and grant permission for user 'db_user-backups' with command example:



          Connect to Mysql: mysql -u root -p:



          GRANT ALL PRIVILEGES ON *.* TO db_user-backups@'localhosts' IDENTIFIED BY 'password' with grant option;

          flush privileges;


          After you can reconnect with mysqldump.






          share|improve this answer






























            0














            Try specifying the port. I'm using MySQL 8.0 on Windows but similar issues apply on Ubuntu. Without a port argument I got the same error:



            C:Usersuser>mysqldump -u root -p airlines_test > C:...testairlines_test_dump.sql
            Enter password: ******************
            mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect


            I fixed this by specifying the port to use: -P 3306:



            C:Usersuser>mysqldump -u root -p -P 3306 airlines_test > C:...testairlines_test_dump.sql
            Enter password: ******************




            share























              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%2f1024456%2fmysqldump-access-denied-error-on-ubuntu-with-mariadb-login-informations-are-c%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              With error "Access denied for user 'db_user-backups'@'localhosts'. You can connect to db and grant permission for user 'db_user-backups' with command example:



              Connect to Mysql: mysql -u root -p:



              GRANT ALL PRIVILEGES ON *.* TO db_user-backups@'localhosts' IDENTIFIED BY 'password' with grant option;

              flush privileges;


              After you can reconnect with mysqldump.






              share|improve this answer



























                0














                With error "Access denied for user 'db_user-backups'@'localhosts'. You can connect to db and grant permission for user 'db_user-backups' with command example:



                Connect to Mysql: mysql -u root -p:



                GRANT ALL PRIVILEGES ON *.* TO db_user-backups@'localhosts' IDENTIFIED BY 'password' with grant option;

                flush privileges;


                After you can reconnect with mysqldump.






                share|improve this answer

























                  0












                  0








                  0







                  With error "Access denied for user 'db_user-backups'@'localhosts'. You can connect to db and grant permission for user 'db_user-backups' with command example:



                  Connect to Mysql: mysql -u root -p:



                  GRANT ALL PRIVILEGES ON *.* TO db_user-backups@'localhosts' IDENTIFIED BY 'password' with grant option;

                  flush privileges;


                  After you can reconnect with mysqldump.






                  share|improve this answer













                  With error "Access denied for user 'db_user-backups'@'localhosts'. You can connect to db and grant permission for user 'db_user-backups' with command example:



                  Connect to Mysql: mysql -u root -p:



                  GRANT ALL PRIVILEGES ON *.* TO db_user-backups@'localhosts' IDENTIFIED BY 'password' with grant option;

                  flush privileges;


                  After you can reconnect with mysqldump.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 19 '18 at 4:18









                  TannettoTannetto

                  40137




                  40137























                      0














                      Try specifying the port. I'm using MySQL 8.0 on Windows but similar issues apply on Ubuntu. Without a port argument I got the same error:



                      C:Usersuser>mysqldump -u root -p airlines_test > C:...testairlines_test_dump.sql
                      Enter password: ******************
                      mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect


                      I fixed this by specifying the port to use: -P 3306:



                      C:Usersuser>mysqldump -u root -p -P 3306 airlines_test > C:...testairlines_test_dump.sql
                      Enter password: ******************




                      share



























                        0














                        Try specifying the port. I'm using MySQL 8.0 on Windows but similar issues apply on Ubuntu. Without a port argument I got the same error:



                        C:Usersuser>mysqldump -u root -p airlines_test > C:...testairlines_test_dump.sql
                        Enter password: ******************
                        mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect


                        I fixed this by specifying the port to use: -P 3306:



                        C:Usersuser>mysqldump -u root -p -P 3306 airlines_test > C:...testairlines_test_dump.sql
                        Enter password: ******************




                        share

























                          0












                          0








                          0







                          Try specifying the port. I'm using MySQL 8.0 on Windows but similar issues apply on Ubuntu. Without a port argument I got the same error:



                          C:Usersuser>mysqldump -u root -p airlines_test > C:...testairlines_test_dump.sql
                          Enter password: ******************
                          mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect


                          I fixed this by specifying the port to use: -P 3306:



                          C:Usersuser>mysqldump -u root -p -P 3306 airlines_test > C:...testairlines_test_dump.sql
                          Enter password: ******************




                          share













                          Try specifying the port. I'm using MySQL 8.0 on Windows but similar issues apply on Ubuntu. Without a port argument I got the same error:



                          C:Usersuser>mysqldump -u root -p airlines_test > C:...testairlines_test_dump.sql
                          Enter password: ******************
                          mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect


                          I fixed this by specifying the port to use: -P 3306:



                          C:Usersuser>mysqldump -u root -p -P 3306 airlines_test > C:...testairlines_test_dump.sql
                          Enter password: ******************





                          share











                          share


                          share










                          answered 3 mins ago









                          Karl BakerKarl Baker

                          1115




                          1115



























                              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%2f1024456%2fmysqldump-access-denied-error-on-ubuntu-with-mariadb-login-informations-are-c%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

                              Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                              Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                              Torre de la Isleta Índice Véase también Referencias Bibliografía Enlaces externos Menú de navegación38°25′58″N 0°23′02″O / 38.43277778, -0.3838888938°25′58″N 0°23′02″O / 38.43277778, -0.38388889Torre de la Illeta de l’Horta o Torre Saleta. Base de datos de bienes inmuebles. Patrimonio Cultural. Secretaría de Estado de CulturaFicha BIC Torre de la Illeta de l’Horta. Dirección General de Patrimonio Cultural. Generalitat ValencianaLugares de interés. Ayuntamiento del CampelloTorre de la Isleta en CastillosNet.org