Create a New Data Directory
With this method, the data directory will be in the same state as when you first install MySQL. It will
have the default set of MySQL accounts and no user data.
On Unix, initialize the data directory by running mysql_install_db. See Section 2.10.1, “Unix
On Windows, the data directory is included in the MySQL distribution:
• MySQL Zip archive distributions for Windows contain an unmodified data directory. You can unpack
such a distribution into a temporary location, then copy it data directory to where you are setting up
the new instance.
• Windows MSI package installers create and set up the data directory that the installed server will
use, but also create a pristine “template” data directory named data under the installation directory.
After an installation has been performed using an MSI package, the template data directory can be
copied to set up additional MySQL instances.
... zobacz całą notatkę