This is a regression.
(if this has been done by design, it's a wrong design)
Steps to reproduce:
NOTE: this is not the same as going to Home, then Export, and select a one or more whole databases to export.
Expected:
The exported .sql (at least by default) should NOT contain the "create database" and "use" statements, because we are exporting tables from within a database. It is supposed to export only tables (with or without data), so that they can be imported into a database of any name. This is how it used to work
In the Custom section there's no option to choose whether or not to include the Create database statement, hence it should either NOT include it, or there should be an option for that, disabled by default.
Observed
The exported .sql file contains "create database" and "use" statements, with the name of the database.
This means that the following won't work:
This is a HUGE regression
If you are really reporting this for version 4.0.4, you are out of date.
1) it shouldn't be difficult for you to check whether it's fixed in a later version.
2) usually in bug trackers, versions that are too old to report bugs for are marked as such (or not available at all) in the version selector.
3) current versions of distros such as Debian out there still ship versions as old as 3.x
1) It shouldn't be difficult for you either (we have a demo server); as a courtesy for you, I did the check in 4.3.9 and I cannot reproduce the bug
2) We leave open old versions in the tracker because we still have to check whether older tickets are valid
3) This does not change our decision about what we support; see http://www.phpmyadmin.net/home_page/downloads.php