RY
drwxr-xr-x 3 root root 4096 Nov 3 21:46 lib
drwxr-xr-x 4 root root 4096 Nov 3 21:46 man
drwxr-xr-x 10 root root 4096 Nov 3 21:46 mysql-test
-rw-r--r-- 1 7161 wheel 2552 Oct 12 04:10 README
drwxr-xr-x 2 root root 4096 Nov 3 21:46 scripts
drwxr-xr-x 27 root root 4096 Nov 3 21:46 share
drwxr-xr-x 4 root root 4096 Nov 3 21:46 sql-bench
drwxr-xr-x 2 root root 4096 Nov 3 21:46 support-files
[root@beryl mysql]# chown -R mysql:mysql .
//把当前目录属主属组递归修改mysql
[root@beryl mysql]# ll -h total 76K
drwxr-xr-x 2 mysql mysql 4.0K Nov 3 21:46 bin
-rw-r--r-- 1 mysql mysql 18K Oct 12 04:10 COPYING
drwxr-xr-x 4 mysql mysql 4.0K Nov 3 21:46 data
drwxr-xr-x 2 mysql mysql 4.0K Nov 3 21:46 docs
drwxr-xr-x 3 mysql mysql 4.0K Nov 3 21:46 include
-rw-r--r-- 1 mysql mysql 7.5K Oct 12 04:10 INSTALL-BINARY
drwxr-xr-x 3 mysql mysql 4.0K Nov 3 21:46 lib
drwxr-xr-x 4 mysql mysql 4.0K Nov 3 21:46 man
drwxr-xr-x 10 mysql mysql 4.0K Nov 3 21:46 mysql-test
-rw-r--r-- 1 mysql mysql 2.5K Oct 12 04:10 README
drwxr-xr-x 2 mysql mysql 4.0K Nov 3 21:46 scripts
drwxr-xr-x 27 mysql mysql 4.0K Nov 3 21:46 share
drwxr-xr-x 4 mysql mysql 4.0K Nov 3 21:46 sql-bench
drwxr-xr-x 2 mysql mysql 4.0K Nov 3 21:46 support-files
[root@beryl mysql]# scripts/mysql_install_db --help //查看mysql安装帮助信息 Usage: scripts/mysql_install_db [OPTIONS] --basedir=path The path to the MySQL installation directory.
//默认安装位置就是/usr/local --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 MySQL system
tables on a different host than the target. --datadir=path The path to the MySQL 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 MySQL data directory. Same as --datadir.
--no-defaults Don''t read default options from any option file.
--rpm For internal use. This option is used by RPM files
during the MySQL 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 MySQL source directory. This option