Details

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

      Description

      Slave queries are missing the full qualified database name and always return empty result:

       

      slave_status() {
         local outfile=$1
         local mysql_version=$2
      
         if [ "${mysql_version}" '<' "5.7" ]; then
            local sql="SHOW SLAVE STATUS\G"  
            echo -e "\n$sql\n" >> $outfile
            $CMD_MYSQL $EXT_ARGV -e "$sql" >> $outfile
         else
            local sql="SELECT * FROM performance_schema.replication_connection_configuration JOIN performance_schema.replication_applier_configuration USING(channel_name)\G"
            echo -e "\n$sql\n" >> $outfile
            $CMD_MYSQL $EXT_ARGV -e "$sql" >> $outfile
      
            sql="SELECT * FROM replication_connection_status\G"
            echo -e "\n$sql\n" >> $outfile
            $CMD_MYSQL $EXT_ARGV -e "$sql" >> $outfile
      
            sql="SELECT * FROM replication_applier_status JOIN replication_applier_status_by_coordinator USING(channel_name)\G"
            echo -e "\n$sql\n" >> $outfile
            $CMD_MYSQL $EXT_ARGV -e "$sql" >> $outfile
         fi
      
      }
      

        Attachments

          Expenses

            Activity

              People

              • Assignee:
                carlos.salguero Carlos Salguero
                Reporter:
                marcelo.altmann Marcelo Altmann
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h