2011-10-29 2 views
1

Mac 10.6 서버를 구성하고 있고 InnoDB를 지원하도록 MySQL을 구성하는 데 문제가 있습니다.Mac에서 InnoDB for MySQL 데이터베이스 구성

MySQL은 원래 my.cnf 파일에 문제없이 시작하고 작동합니다. 여기에 있습니다 :

[mysqld] 
#Don't resolve hostnames. All hostnames are IP's or 'localhost'. 
skip-name-resolve 
#Don't give threads different priorities. 
skip-thread-priority 

그러나 이것을 InnoDB 지원에 추가하면 MySQL이 시작되지 않습니다.

[mysqld] 
#Don't resolve hostnames. All hostnames are IP's or 'localhost'. 
skip-name-resolve 
#Don't give threads different priorities. 
skip-thread-priority 
# Uncomment the following if you are using InnoDB tables 
innodb_data_home_dir=/var/mysql/ 
innodb_data_file_path=ibdata1:2000M;ibdata2:10M:autoextend 
innodb_log_group_home_dir=/var/mysql/ 
innodb_log_arch_dir=/var/mysql/ 
# You can set .._buffer_pool_size up to 50 - 80 % 
# of RAM but beware of setting memory usage too high 
innodb_buffer_pool_size=384M 
innodb_additional_mem_pool_size=20M 
# Set .._log_file_size to 25 % of buffer pool size 
innodb_log_file_size=100M 
innodb_log_buffer_size=8M 
innodb_flush_log_at_trx_commit=1 
innodb_lock_wait_timeout=50 

나는/var/mysql /가 존재하고 올바른 권한을 가지고 있음을 확인했습니다. 나는 문제를 일으키는 것을 배우기 위해 mysql을 어떻게 해결할 지 모르겠다.

는 MySQL의는/usr/지방/위치에 있습니다 lrwxr-XR-X 1 개 루트 휠 (24) 8월 26일 12시 17분 mysql을 -> MySQL의-5.5.15-osx10.6-86 drwxr-XR-X (16) root wheel 544 Jul 13 16:26 mysql-5.5.15-osx10.6-x86

정말 고마워.

마이크

=========

다음

로그 파일의 끝에서 몇 줄 수 있습니다 :이 읽는 방법을 모르겠어요

111027 14:41:07 [Note] /usr/local/mysql/bin/mysqld: ready for connections. 
Version: '5.5.15' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL) 
111027 21:48:57 [Note] /usr/local/mysql/bin/mysqld: Normal shutdown 

111027 21:48:57 [Note] Event Scheduler: Purging the queue. 0 events 
111027 21:48:57 InnoDB: Starting shutdown... 
111027 21:48:57 InnoDB: Shutdown completed; log sequence number 1595675 
111027 21:48:57 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete 

111027 21:49:47 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data 
111027 21:49:47 [Warning] The --skip-thread-priority startup option is deprecated and will be removed in MySQL 7.0. This option has no effect as the implied behavior is already the default. 
111027 21:49:47 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive 
111027 21:49:47 [Note] Plugin 'FEDERATED' is disabled. 
111027 21:49:47 InnoDB: The InnoDB memory heap is disabled 
111027 21:49:47 InnoDB: Mutexes and rw_locks use GCC atomic builtins 
111027 21:49:47 InnoDB: Compressed tables use zlib 1.2.3 
111027 21:49:47 InnoDB: Initializing buffer pool, size = 128.0M 
111027 21:49:47 InnoDB: Completed initialization of buffer pool 
111027 21:49:47 InnoDB: highest supported file format is Barracuda. 
111027 21:49:47 InnoDB: Waiting for the background threads to start 
111027 21:49:48 InnoDB: 1.1.8 started; log sequence number 1595675 
111027 21:49:48 [Warning] 'user' entry '[email protected]' ignored in --skip-name-resolve mode. 
111027 21:49:48 [Warning] 'user' entry '@myservername.local' ignored in --skip-name-resolve mode. 
111027 21:49:48 [Warning] 'proxies_priv' entry '@ [email protected]' ignored in --skip-name-resolve mode. 
111027 21:49:48 [Note] Event Scheduler: Loaded 0 events 
111027 21:49:48 [Note] /usr/local/mysql/bin/mysqld: ready for connections. 
Version: '5.5.15' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL) 
111027 21:53:04 [Note] /usr/local/mysql/bin/mysqld: Normal shutdown 

111027 21:53:04 [Note] Event Scheduler: Purging the queue. 0 events 
111027 21:53:04 InnoDB: Starting shutdown... 
111027 21:53:04 InnoDB: Shutdown completed; log sequence number 1595675 
111027 21:53:04 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete 

은 . 도와 주실 수 있습니까?

마이크

+0

mysql 로그 파일의 출력을 원래 질문에 추가했습니다. –

답변

0

귀하의 mysql 오류 로그 파일에는 무엇이 있습니까? 그것은 보통 mysql이 시작되지 않는 이유를 알려준다.

show variables like "%log_error%"; 

다음은 꼬리 파일이 오류가 무엇인지 볼 수있다 : 당신의 로그 파일이 어디에 있는지 모르는 경우, MySQL은이 명령을 실행합니다. 물론 위의 명령을 실행하기 위해 mysql을 시작할 수 있도록 Innodb 지원을 해제해야합니다. 그런 다음 mysql을 종료하고 Innodb를 활성화 한 다음 다시 시작하십시오. 그런 다음 로그 파일을보십시오.