Try with this, althoug I haven't worked with mySQL, I've seen it's so similar in PostgreSQL.
to dump the database:
mysqldump -u USERNAME DATABASENAME > DUMPFILE
and to restore in a different account:
mysqlimport -u USERNAME DATABASENAME DUMPFILE
where you must substitute the USERNAME, DATABASENAME and DUMPFILE with your owns.
I hope to be helpfull for you 😉.