Uploaded image for project: 'ProxySQL Admin Scripts'
  1. ProxySQL Admin Scripts
  2. PSQLADM-126

Script is showing an error when --syncusers is invoked

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 1.4.12
    • Fix Version/s: 1.4.13
    • Component/s: None
    • Labels:
      None

      Description

      Script is showing an error when --syncusers is invoked and mysql_users table is empty:

      
      ERROR (line:1358) : Failed to load user list from ProxySQL database.
      
      

       

      How to reproduce:

      
      [root@proxysql-1 ~]# mysql -u admin -padmin -h 127.0.0.1 -P 6032 -e "DELETE FROM mysql_users"
      mysql: [Warning] Using a password on the command line interface can be insecure.
      [root@proxysql-1 ~]# proxysql-admin --config-file=/etc/proxysql-admin.cnf --syncusers
      ERROR (line:1358) : Failed to load user list from ProxySQL database.
      -- Please check the ProxySQL connection parameters and status.
      
      Syncing user accounts from PXC to ProxySQL
      Adding user to ProxySQL: app
      Adding user to ProxySQL: monitor
      Adding user to ProxySQL: root
      
      Synced PXC users to the ProxySQL database!
      
      

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                kenn.takara Kenn Takara
                Reporter:
                marcelo.altmann Marcelo Altmann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: