快速业务通道

linux上安装MySQL

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-03-25
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

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号