MySQL Query/Connect to eximstats?












0














I'm trying to run a report for my clients in real-time. I created a new eximstats user (renamed the old one) with:



update mysql.user set password=password("XXXXXXXXX") where user="eximstats";


In mysql.db I'm showing eximstats user and DB.



My connection:



  $exim_connect = new mysqli($exim->host, $exim->user, $exim->password, $exim->db);


This is my result with and without a password:




EXIM Connection failed: Access denied for user 'eximstats'@'localhost'
(using password: YES)




Is this even possible? If yes, what I'm I missing?




  • cpsrvd 11.52.0.22

  • Database client version: libmysql - 5.1.73

  • PHP extension: mysqli










share|improve this question
















bumped to the homepage by Community 20 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0














    I'm trying to run a report for my clients in real-time. I created a new eximstats user (renamed the old one) with:



    update mysql.user set password=password("XXXXXXXXX") where user="eximstats";


    In mysql.db I'm showing eximstats user and DB.



    My connection:



      $exim_connect = new mysqli($exim->host, $exim->user, $exim->password, $exim->db);


    This is my result with and without a password:




    EXIM Connection failed: Access denied for user 'eximstats'@'localhost'
    (using password: YES)




    Is this even possible? If yes, what I'm I missing?




    • cpsrvd 11.52.0.22

    • Database client version: libmysql - 5.1.73

    • PHP extension: mysqli










    share|improve this question
















    bumped to the homepage by Community 20 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0







      I'm trying to run a report for my clients in real-time. I created a new eximstats user (renamed the old one) with:



      update mysql.user set password=password("XXXXXXXXX") where user="eximstats";


      In mysql.db I'm showing eximstats user and DB.



      My connection:



        $exim_connect = new mysqli($exim->host, $exim->user, $exim->password, $exim->db);


      This is my result with and without a password:




      EXIM Connection failed: Access denied for user 'eximstats'@'localhost'
      (using password: YES)




      Is this even possible? If yes, what I'm I missing?




      • cpsrvd 11.52.0.22

      • Database client version: libmysql - 5.1.73

      • PHP extension: mysqli










      share|improve this question















      I'm trying to run a report for my clients in real-time. I created a new eximstats user (renamed the old one) with:



      update mysql.user set password=password("XXXXXXXXX") where user="eximstats";


      In mysql.db I'm showing eximstats user and DB.



      My connection:



        $exim_connect = new mysqli($exim->host, $exim->user, $exim->password, $exim->db);


      This is my result with and without a password:




      EXIM Connection failed: Access denied for user 'eximstats'@'localhost'
      (using password: YES)




      Is this even possible? If yes, what I'm I missing?




      • cpsrvd 11.52.0.22

      • Database client version: libmysql - 5.1.73

      • PHP extension: mysqli







      mysql connectivity






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 12 '17 at 6:10









      Paul White

      49.2k14260414




      49.2k14260414










      asked Nov 14 '15 at 13:38









      user2823774user2823774

      1




      1





      bumped to the homepage by Community 20 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 20 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          3 Answers
          3






          active

          oldest

          votes


















          0














          Few reasons could be:




          • one of them - 'eximstats' has other host than @'localhost' in user table

          • more than 1 user with same name but different host could also give
            error


          try to manual connect to the database with this user credentials and check errors if it will be.






          share|improve this answer





















          • I'm not clear on another host? [link]awesomescreenshot.com/0105emabc0 and like I said I renamed eximstats so there is only one user with the name eximstats
            – user2823774
            Nov 15 '15 at 19:54












          • did You try connect with this user to mysql? for example: mysql -u eximstats -p Do You have full list of user? and in this case could be good idea, attach my.cnf as well
            – a_vlad
            Nov 16 '15 at 5:40



















          0














          This has been resolved. I took an existing account, made a copy and a user of eximstats. I'm not clear on why the other ways didn't work...but there you go.






          share|improve this answer































            0














            Another possible reason for that is the skip-name-resolve turned ON. Only numerical IP addresses are accepted while localhost can't be resolved into the 127.0.0.1. Sure the same problem occurs when DNS service is unavailable and /etc/hosts is misconfigured.






            share|improve this answer





















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "182"
              };
              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: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              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%2fdba.stackexchange.com%2fquestions%2f121082%2fmysql-query-connect-to-eximstats%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









              0














              Few reasons could be:




              • one of them - 'eximstats' has other host than @'localhost' in user table

              • more than 1 user with same name but different host could also give
                error


              try to manual connect to the database with this user credentials and check errors if it will be.






              share|improve this answer





















              • I'm not clear on another host? [link]awesomescreenshot.com/0105emabc0 and like I said I renamed eximstats so there is only one user with the name eximstats
                – user2823774
                Nov 15 '15 at 19:54












              • did You try connect with this user to mysql? for example: mysql -u eximstats -p Do You have full list of user? and in this case could be good idea, attach my.cnf as well
                – a_vlad
                Nov 16 '15 at 5:40
















              0














              Few reasons could be:




              • one of them - 'eximstats' has other host than @'localhost' in user table

              • more than 1 user with same name but different host could also give
                error


              try to manual connect to the database with this user credentials and check errors if it will be.






              share|improve this answer





















              • I'm not clear on another host? [link]awesomescreenshot.com/0105emabc0 and like I said I renamed eximstats so there is only one user with the name eximstats
                – user2823774
                Nov 15 '15 at 19:54












              • did You try connect with this user to mysql? for example: mysql -u eximstats -p Do You have full list of user? and in this case could be good idea, attach my.cnf as well
                – a_vlad
                Nov 16 '15 at 5:40














              0












              0








              0






              Few reasons could be:




              • one of them - 'eximstats' has other host than @'localhost' in user table

              • more than 1 user with same name but different host could also give
                error


              try to manual connect to the database with this user credentials and check errors if it will be.






              share|improve this answer












              Few reasons could be:




              • one of them - 'eximstats' has other host than @'localhost' in user table

              • more than 1 user with same name but different host could also give
                error


              try to manual connect to the database with this user credentials and check errors if it will be.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 15 '15 at 4:18









              a_vlada_vlad

              2,9191716




              2,9191716












              • I'm not clear on another host? [link]awesomescreenshot.com/0105emabc0 and like I said I renamed eximstats so there is only one user with the name eximstats
                – user2823774
                Nov 15 '15 at 19:54












              • did You try connect with this user to mysql? for example: mysql -u eximstats -p Do You have full list of user? and in this case could be good idea, attach my.cnf as well
                – a_vlad
                Nov 16 '15 at 5:40


















              • I'm not clear on another host? [link]awesomescreenshot.com/0105emabc0 and like I said I renamed eximstats so there is only one user with the name eximstats
                – user2823774
                Nov 15 '15 at 19:54












              • did You try connect with this user to mysql? for example: mysql -u eximstats -p Do You have full list of user? and in this case could be good idea, attach my.cnf as well
                – a_vlad
                Nov 16 '15 at 5:40
















              I'm not clear on another host? [link]awesomescreenshot.com/0105emabc0 and like I said I renamed eximstats so there is only one user with the name eximstats
              – user2823774
              Nov 15 '15 at 19:54






              I'm not clear on another host? [link]awesomescreenshot.com/0105emabc0 and like I said I renamed eximstats so there is only one user with the name eximstats
              – user2823774
              Nov 15 '15 at 19:54














              did You try connect with this user to mysql? for example: mysql -u eximstats -p Do You have full list of user? and in this case could be good idea, attach my.cnf as well
              – a_vlad
              Nov 16 '15 at 5:40




              did You try connect with this user to mysql? for example: mysql -u eximstats -p Do You have full list of user? and in this case could be good idea, attach my.cnf as well
              – a_vlad
              Nov 16 '15 at 5:40













              0














              This has been resolved. I took an existing account, made a copy and a user of eximstats. I'm not clear on why the other ways didn't work...but there you go.






              share|improve this answer




























                0














                This has been resolved. I took an existing account, made a copy and a user of eximstats. I'm not clear on why the other ways didn't work...but there you go.






                share|improve this answer


























                  0












                  0








                  0






                  This has been resolved. I took an existing account, made a copy and a user of eximstats. I'm not clear on why the other ways didn't work...but there you go.






                  share|improve this answer














                  This has been resolved. I took an existing account, made a copy and a user of eximstats. I'm not clear on why the other ways didn't work...but there you go.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 17 '15 at 14:47









                  Jack Douglas

                  27.6k1075148




                  27.6k1075148










                  answered Nov 17 '15 at 14:18









                  user2823774user2823774

                  1




                  1























                      0














                      Another possible reason for that is the skip-name-resolve turned ON. Only numerical IP addresses are accepted while localhost can't be resolved into the 127.0.0.1. Sure the same problem occurs when DNS service is unavailable and /etc/hosts is misconfigured.






                      share|improve this answer


























                        0














                        Another possible reason for that is the skip-name-resolve turned ON. Only numerical IP addresses are accepted while localhost can't be resolved into the 127.0.0.1. Sure the same problem occurs when DNS service is unavailable and /etc/hosts is misconfigured.






                        share|improve this answer
























                          0












                          0








                          0






                          Another possible reason for that is the skip-name-resolve turned ON. Only numerical IP addresses are accepted while localhost can't be resolved into the 127.0.0.1. Sure the same problem occurs when DNS service is unavailable and /etc/hosts is misconfigured.






                          share|improve this answer












                          Another possible reason for that is the skip-name-resolve turned ON. Only numerical IP addresses are accepted while localhost can't be resolved into the 127.0.0.1. Sure the same problem occurs when DNS service is unavailable and /etc/hosts is misconfigured.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Apr 25 '18 at 10:05









                          KondybasKondybas

                          2,398810




                          2,398810






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Database Administrators Stack Exchange!


                              • 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%2fdba.stackexchange.com%2fquestions%2f121082%2fmysql-query-connect-to-eximstats%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

                              Liste der Baudenkmale in Friedland (Mecklenburg)

                              Single-Malt-Whisky

                              Czorneboh