Страница 1 из 1

freebsd mysql5.6.35 ошибка auto-extending data file ./ibdata1

Добавлено: 2017-01-20 21:25:26
bagas
Добрый ночи.

Код: Выделить всё

# uname -rms
FreeBSD 10.3-RELEASE-p16 amd64

Код: Выделить всё

# pkg version | grep "mysq"
mysql56-client-5.6.35              =
mysql56-server-5.6.35              =
Подскажите как такое вылечить?

Код: Выделить всё

InnoDB: auto-extending data file /var/db/mysql/ibdata1 is of a different size 4864 pages (rounded down to MB) than specified in the .cnf file: initial 8192 pages, max 0 (relevant if non-zero) pages!
2017-01-20 19:43:46 95382 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
Пробовал добавлять

Код: Выделить всё

[mysqld] block.
innodb_data_file_path = ibdata1:10M:autoextend
Конфиг мускула.

Код: Выделить всё

# cat /etc/my.cnf
[client]
port		= 3306
socket		= /tmp/mysql.sock
user=mysql
#
[mysqld]
port		= 3306
socket		= /tmp/mysql.sock
user=mysql
skip-external-locking
max_connections = 42
key_buffer_size = 449M
max_allowed_packet = 180M
table_open_cache = 70
sort_buffer_size = 6M
read_buffer_size = 6M
read_rnd_buffer_size = 8M
max_heap_table_size=22M
tmp_table_size=22M
table_definition_cache = 70
myisam_sort_buffer_size = 700M
query_cache_size= 500M
query_cache_type = 1
query_cache_limit= 25M
query_cache_min_res_unit= 28
thread_cache_size = 55
thread_concurrency = 4
max_join_size = 80000000
max_sort_length=624
innodb_buffer_pool_size = 2096M
innodb_buffer_pool_instances = 2
innodb_additional_mem_pool_size = 15M
innodb_write_io_threads = 5
innodb_read_io_threads = 5
innodb_thread_concurrency = 4
innodb_data_file_path = ibdata1:10M:autoextend
skip-networking
long_query_time=1
slow_query_log=1
slow_query_log_file="/var/log/mysql/slow-query.log"
log_error = /var/log/mysql/errors.log
#skip-name-resolve
#
[mysqldump]
quick
#
[mysql]
no-auto-rehash
#
[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
#
[mysqlhotcopy]
interactive-timeout
Не помогает.

freebsd mysql5.6.35 ошибка auto-extending data file ./ibdata1

Добавлено: 2017-02-16 18:27:51
katenka141
Код: Выделить всё

InnoDB: auto-extending data file /var/db/mysql/ibdata1 is of a different size 4864 pages (rounded down to MB) than specified in the .cnf file: initial 8192 pages, max 0 (relevant if non-zero) pages!
2017-01-20 19:43:46 95382 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!

freebsd mysql5.6.35 ошибка auto-extending data file ./ibdata1

Добавлено: 2018-03-01 9:58:52
Vladus
"innodb_data_file_path = ibdata1:10M:autoextend"
попробуй исправить в файле
/usr/local/etc/mysql/my.cnf