FIX: [mysql] fix database export (fixes #14843)