Skip to content
Snippets Groups Projects
Commit b4ce9887 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch '5198-detect-empty-mysql-db' into 'master'

mysql update message text on empty db

See merge request !60
parents 3e43d6a2 1a2a793d
No related branches found
No related tags found
1 merge request!60mysql update message text on empty db
......@@ -101,7 +101,7 @@ function mysql.db.dump(){
_iTables=$( mysql --skip-column-names --batch -e "use $_dbname; show tables ;" | wc -l )
if [ $_iTables -eq 0 ];
then
echo -n "NO DATA in database"
echo -n "EMPTY DATABASE ... "
else
echo "ERROR: no data - the dump doesn't contain any CREATE or INSERT statement."
# force an error
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment