码迷,mamicode.com
首页 > 数据库 > 详细

mysql初级使用指南

时间:2015-02-04 16:00:12      阅读:228      评论:0      收藏:0      [点我收藏+]

标签:

mysqld --verbose --help:

可以现实mysql的配置选项

 

mysql 的配置文件my.cnf调用次序(mysqld --verbose --help 的输出里有以下打印):

Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf

 

Installation(完整的安装帮助参考 INSTALL-BINARY 文件):

To install and use a MySQL binary distribution, the basic command sequence looks like this:
shell> groupadd mysql
shell> useradd -r -g mysql mysql
shell> cd /usr/local
shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server

 

mysql初级使用指南

标签:

原文地址:http://www.cnblogs.com/welhzh/p/4272324.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!