Import has been successfully finished but tables empty
<p>I need to backup a database all work fine but for import it's not working</p>

<p>I use this bash script for backup</p>

<pre><code>databases=`mysql -u MyData -p$mysqlpass -e "SHOW DATABASES;" | tr -d "| " | grep -v "\(Database\|information_schema\|performance_schema\|mysql\|test\)"`
for db in $databases; do
   mysqldump -u MyData -p$mysqlpass --force --opt --databases "$db" | gzip -c &gt; "$tmpfile"
   s3cmd put "$tmpfile" "$object"
done;
</code></pre>

<p>My file.sql contains all data and structure. After i import the file i receive this message:</p>

<blockquote>
  <p>Import has been successfully finished, 148 queries executed. (1458392798-19-03-16-14-06-38-MyData.sql)</p>
</blockquote>

<p>But the database is empty... 
Why i cant import ?</p>

<p>if i use phpmyadmin for export/import it's work fine, it's not work only with mysqldump</p>

<p>Thanks you</p>