- get到當地目錄
total 212
drwxr-xr-x 2 root root 4096 Aug 12 20:46 bin
-rw-r--r-- 1 500 500 17987 Feb 24 07:50 COPYING
-rw-r--r-- 1 500 500 26545 Feb 24 07:50 COPYING.LESSER
drwxr-xr-x 3 root root 4096 Aug 12 20:46 data
drwxr-xr-x 2 root root 4096 Aug 12 20:46 docs
drwxr-xr-x 3 root root 4096 Aug 12 20:46 include
-rw-r--r-- 1 500 500 8694 Feb 24 07:50 INSTALL-BINARY 安裝程序的方法
drwxr-xr-x 3 root root 4096 Aug 12 20:46 lib
drwxr-xr-x 4 root root 4096 Aug 12 20:46 man
drwxr-xr-x 11 root root 4096 Aug 12 20:47 mysql-test
-rw-r--r-- 1 500 500 108813 Feb 24 07:50 README 安裝程序的方法
drwxr-xr-x 2 root root 4096 Aug 12 20:46 scripts
drwxr-xr-x 27 root root 4096 Aug 12 20:46 share
drwxr-xr-x 4 root root 4096 Aug 12 20:46 sql-bench
drwxr-xr-x 4 root root 4096 Aug 12 20:46 support-files
[root@localhost mariadb-5.5.36-linux-x86_64]# less INSTALL-BINARY
total 16
-rwxr-xr-x 1 root mysql 16168 Feb 24 11:08 mysql_install_db
Usage: ./mysql_install_db [OPTIONS]
--basedir=path The path to the MariaDB installation directory.
--builddir=path If using --srcdir with out-of-directory builds, you
will need to set this to the location of the build
directory where built files reside.
--cross-bootstrap For internal use. Used when building the MariaDB system
tables on a different host than the target.
--datadir=path The path to the MariaDB data directory.
--defaults-extra-file=name
Read this file after the global files are read.
--defaults-file=name Only read default options from the given file name.
--force Causes mysql_install_db to run even if DNS does not
work. In that case, grant table entries that normally
use hostnames will use IP addresses.
--help Display this help and exit.
--ldata=path The path to the MariaDB data directory. Same as
--datadir.
--no-defaults Don't read default options from any option file.
--defaults-file=path Read only this configuration file.
--rpm For internal use. This option is used by RPM files
during the MariaDB installation process.
--skip-name-resolve Use IP addresses rather than hostnames when creating
grant table entries. This option can be useful if
your DNS does not work.
--srcdir=path The path to the MariaDB source directory. This option
uses the compiled binaries and support files within the
source tree, useful for if you don't want to install
MariaDB yet and just want to create the system tables.
--user=user_name The login username to use for running mysqld. Files
and directories created by mysqld will be owned by this
user.
Installing MariaDB/MySQL system tables in '/mydata/data' ...
OK