database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
ㆍMS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
MS-SQL Q&A 469 게시물 읽기
No. 469
hdd 두개를 한서버에 설치하고 하나의 hdd를 통채로 mysql 데이터를 넣고 사용하려는데 안되네요.
작성자
도와주세요
작성일
2002-07-30 20:43
조회수
5,956

안녕하세요.

hdd 두개를 한서버에 설치하고 하나의 hdd에는 /boot /home 등등으로 파티션을 나누고

나머지 hdd 는 모두 mysql 데이터를 넣고 사용하려고 통채를 /data 라고 파티션을 잡았거든요

그런데 위의 /boot 등이 들어있는 hdd에 계정을 하나 만들어서 예전의 mysql자료들을 푸니까

/data 디렉토리로 가는 것이 아니라 "/usr/local/mysql/data/계정" 이라는

디렉토리로 가버리네요.

이걸 /data 로 통채로 파티션을 잡아논 hdd 로 mysql자료를 저장하고

거기서 자료를 입출력하려면 어떻게 해야 하나요?

고수님들 꼭좀 알려주세요.

 

어떤분이 my.conf 를 수정하면 된다고 하던데 그 파일의 어떤 곳을 수정해야 하는지를 전혀 몰겠어요

 

제 서버에 있는 /etc/my.conf 파일의 내용은 아래와 같습니다. 꼭좀 도와주세요.

 

************************************************************************************

# Example mysql config file for medium systems.

#

# This is for a system with little memory (32M - 64M) where MySQL plays

# a important part and systems up to 128M very MySQL is used together with

# other programs (like a web server)

#

# 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 /usr/local/mysql/data) 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 = /tmp/mysql.sock

 

# Here follows entries for some specific programs

 

# The MySQL server

[mysqld]

port = 3306

socket = /tmp/mysql.sock

skip-locking

set-variable = key_buffer=16M

set-variable = max_allowed_packet=1M

set-variable = table_cache=64

set-variable = sort_buffer=512K

set-variable = net_buffer_length=8K

set-variable = myisam_sort_buffer_size=8M

log-bin

server-id = 1

 

# Point the following paths to different dedicated disks

#tmpdir = /tmp/

#log-update = /path-to-dedicated-directory/hostname

 

# Uncomment the following if you are using BDB tables

#set-variable = bdb_cache_size=4M

#set-variable = bdb_max_lock=10000

 

# Uncomment the following if you are using Innobase tables

#innodb_data_file_path = ibdata1:400M

#innodb_data_home_dir = /usr/local/mysql/data/

#innodb_log_group_home_dir = /usr/local/mysql/data/

#innodb_log_arch_dir = /usr/local/mysql/data/

#set-variable = innodb_mirrored_log_groups=1

#set-variable = innodb_log_files_in_group=3

#set-variable = innodb_log_file_size=5M

#set-variable = innodb_log_buffer_size=8M

#innodb_flush_log_at_trx_commit=1

#innodb_log_archive=0

#set-variable = innodb_buffer_pool_size=16M

#set-variable = innodb_additional_mem_pool_size=2M

#set-variable = innodb_file_io_threads=4

#set-variable = innodb_lock_wait_timeout=50

 

[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=20M

set-variable = sort_buffer=20M

set-variable = read_buffer=2M

set-variable = write_buffer=2M

 

[myisamchk]

set-variable = key_buffer=20M

set-variable = sort_buffer=20M

set-variable = read_buffer=2M

set-variable = write_buffer=2M

 

[mysqlhotcopy]

interactive-timeout

이 글에 대한 댓글이 총 1건 있습니다.

Mysql에서 질문을 하세요 ^^

김동아(love89)님이 2002-07-31 23:20에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
472db library를 써서 코딩하는데 변수 선얼할때.... [1]
박윤희
2002-08-02
5947
471쿼리문중 mod요 [1]
초보
2002-08-01
9576
470날짜형함수요 [1]
초보
2002-07-31
8117
469hdd 두개를 한서버에 설치하고 하나의 hdd를 통채로 mysql 데이터를 넣고 사용하려는데 안되네요. [1]
도와주세요
2002-07-30
5956
466인용부호 (') 관련 질문 [1]
김재민
2002-07-29
6095
465[프로시저에서] [1]
하얀종이
2002-07-26
6551
464gcc-lib 참조오류입니다..좀 갈켜주세요~ [1]
김지은
2002-07-26
5610
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.017초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다