QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 575|回复: 1

问一个问题,关于mysql

[复制链接]
发表于 2003-5-26 13:17:20 | 显示全部楼层 |阅读模式
写入数据库的文件的存贮目录怎么修改
改那个配置文件!
怎样修改它的存储目录!
发表于 2003-5-26 13:24:04 | 显示全部楼层
2003年05月26日下午13时13分24秒[root@www squid]# cat /etc/my.cnf
# Example mysql config file for small systems.
#
# This is for a system with little memory (<= 64M) where MySQL is only used
# from time to time and it's important that the mysqld deamon
# doesn't use much resources.
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /var/lib/mysql) or
# ~/.my.cnf to set user-specific options.
#
# One can in this file use all long options that the program supports.
# If you want to know which options a program support, run the program
# with --help option.

# The following options will be passed to all MySQL clients
[client]
#password               = your_password
port                    = 3306
socket                  = /var/lib/mysql/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
datadir                 = /var/lib/mysql
port                    = 3306
socket                  = /var/lib/mysql/mysql.sock
skip-locking
set-variable            = key_buffer=16K
set-variable            = max_allowed_packet=1M
set-variable            = thread_stack=64K
set-variable            = table_cache=4
set-variable            = sort_buffer=64K
set-variable            = net_buffer_length=2K
server-id               = 1
log                     = /var/log/mysqld.log
#bind-address           = 0/0
default-character-set   = gb2312

# Uncomment the following if you want to log updates
#log-bin

# Uncomment the following if you are NOT using BDB tables
skip-bdb

# Uncomment the following if you are NOT using InnoDB tables
skip-innodb

# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /var/lib/mysql/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /var/lib/mysql/
#innodb_log_arch_dir = /var/lib/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#set-variable = innodb_buffer_pool_size=16M
#set-variable = innodb_additional_mem_pool_size=2M
# Set .._log_file_size to 25 % of buffer pool size
#set-variable = innodb_log_file_size=5M
#set-variable = innodb_log_buffer_size=8M
#innodb_flush_log_at_trx_commit=1
#set-variable = innodb_lock_wait_timeout=50
#       下面一句通不过:
#log-update             = /var/log/mysql/update_mysql.log

[mysqldump]
quick
set-variable            = max_allowed_packet=16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
safe-updates

[isamchk]
set-variable            = key_buffer=8M
set-variable            = sort_buffer=8M

[myisamchk]
set-variable            = key_buffer=8M
set-variable            = sort_buffer=8M

[mysqlhotcopy]
interactive-timeout

[safe_mysqld]
#bind-address           = 0/0
log                     = /var/log/mysqld.log
err-log                 = /var/log/mysqld_error.log
pid-file                = /var/run/mysqld/mysqld.pid
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-16 18:00 , Processed in 0.137387 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表