We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56cdadb commit 25e96c3Copy full SHA for 25e96c3
func/db.sh
@@ -391,7 +391,7 @@ unsuspend_pgsql_database() {
391
# Get MySQL disk usage
392
get_mysql_disk_usage() {
393
mysql_connect $HOST
394
- query="SELECT SUM( data_length + index_length ) / 1024 / 1024 \"Size\"
+ query="SELECT SUM( data_length + index_length ) / 1024 / 1024 \'Size\'
395
FROM information_schema.TABLES WHERE table_schema='$database'"
396
usage=$(mysql_query "$query" |tail -n1)
397
if [ "$usage" == '' ] || [ "$usage" == 'NULL' ] || [ "${usage:0:1}" -eq '0' ]; then
0 commit comments