2017-11-01 4 views
0

현재 Raspbian에 OTRS를 설치하고 있습니다. 나는 Ubuntu와 MySQL을 사용하고 있지만, Raspbian과 MariaDB에 문제가 있습니다. 어디서나 크기를 변경하려면 innodb_log_file_size을 찾을 수 없습니다.MariaDB - innodb_log_file_size을 찾을 수 없습니다.

내 my.cnf 파일은 다음과 같습니다

MariaDB [(none)]> show variables like 'innodb_log_file_size'; 
+----------------------+----------+ 

| Variable_name  | Value | 

+----------------------+----------+ 
| innodb_log_file_size | 50331648 | 
+----------------------+----------+ 
1 row in set (0.01 sec) 

모든 팁을 변경하려면 :

The MariaDB configuration file 

The MariaDB/MySQL tools read configuration files in the following order: 
1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults, 
2. "/etc/mysql/conf.d/*.cnf" to set global options. 
3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options. 
4. "~/.my.cnf" to set user-specific options. 

If the same option is defined multiple times, the last one will apply. 

One can use all long options that the program supports. 
Run program with --help to get a list of available options and with 
--print-defaults to see which it would actually understand and use. 


This group is read both both by the client and the server 
use it for options that affect everything 

[client-server] 
Import all .cnf files from configuration directory 
!includedir /etc/mysql/conf.d/ 
!includedir /etc/mysql/mariadb.conf.d/ 

및 mariadb에서 show variables like 'innodb_log_file_size';를 사용하여 나에게이 있습니다? 오류를 제거해야하기 때문에 :

"Error: Please set the value for innodb_log_file_size on your database to at least 256 MB"

답변

0

"문제"및 "오류"가 있다고 말합니다. 오류 및/또는 다른 단서의 텍스트를 제공해주십시오.

50M은 innodb_log_file_size에 알맞은 크기입니다. my.cnf의 [mysqld] 섹션에서 설정할 수 있습니다.

매우 사용량이 많은 시스템 일수록 높습니다. 크기가 5MB를 초과하는 TEXT 또는 BLOB 열의 경우 더 높아야합니다. 그러나 대부분의 시스템에서 48M은 충분히 큽니다.

설정이 가장 힘든 변경 사항 중 하나이므로 정당한 이유가 없습니다. 당신이 얼마 동안 실행 된 후에

,

(Uptime/60 * innodb_log_file_size/Innodb_os_log_written) 

얼마나 많은 로그 회전 간격 (분)을 보이길 계산한다. 1 시간은 적당한 목표입니다.