According to the MySQL document, 2.10.1 Initializing the Data Directory:
Change location into the top-level directory of your MySQL installation, represented here by
shell> cd BASEDIR
BASEDIRis likely to be something like
/usr/local. The following steps assume that you have changed location to this directory.
You will find several files and subdirectories in the
BASEDIRdirectory. The most important for installation purposes is the
binsubdirectory, which contains the server as well as client and utility programs.
/usr/local/mysql and /usr/local, but neither of them contains anything related to MySQL.
which mysql returns
/usr/bin/mysql, but I don't think
/usr/bin would be MySQL's base directory.
The document says I need to create a directory called
BASEDIR, so I want to know where to find it.