Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1958

Error : /usr/libexec/mysqld: Incorrect information in file: (no replies)

$
0
0
Hi,

I have updated the old my.cnf to new one with some changes in configuration. But when I restarted the server, it filled the error-log with errors. Details are as follow:
mysql> select version();
+------------+
| version() |
+------------+
| 5.0.77-log |
+------------+
1 row in set (0.00 sec)

before changing my.cnf
==
mysql> show engines;
+------------+---------+----------------------------------------------------------------+
| Engine | Support | Comment |
+------------+---------+----------------------------------------------------------------+
| MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables |
| InnoDB | YES | Supports transactions, row-level locking, and foreign keys |
| BerkeleyDB | YES | Supports transactions and page-level locking |
| BLACKHOLE | NO | /dev/null storage engine (anything you write to it disappears) |
| EXAMPLE | NO | Example storage engine |
| ARCHIVE | NO | Archive storage engine |
| CSV | NO | CSV storage engine |
| ndbcluster | NO | Clustered, fault-tolerant, memory-based tables |
| FEDERATED | NO | Federated MySQL storage engine |
| MRG_MYISAM | YES | Collection of identical MyISAM tables |
| ISAM | NO | Obsolete storage engine |
+------------+---------+----------------------------------------------------------------+
12 rows in set (0.01 sec)
cat my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql

old_passwords=1


max_connections = 150

# Replication configuration
log-bin=mysql-bin
server-id=5
innodb_flush_log_at_trx_commit=1
sync_binlog=1
auto_increment_increment = 10
auto_increment_offset = 1
relay-log=mysqld-relay-bin
relay-log-index=mysqld-relay-bin.index


log-slave-updates

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

mysql> show variables like "%innodb%";
+---------------------------------+------------------------+
| Variable_name | Value |
+---------------------------------+------------------------+
| have_innodb | YES |
| innodb_additional_mem_pool_size | 1048576 |
| innodb_autoextend_increment | 8 |
| innodb_buffer_pool_awe_mem_mb | 0 |
| innodb_buffer_pool_size | 8388608 |
| innodb_checksums | ON |
| innodb_commit_concurrency | 0 |
| innodb_concurrency_tickets | 500 |
| innodb_data_file_path | ibdata1:10M:autoextend |
| innodb_data_home_dir | |
| innodb_adaptive_hash_index | ON |
| innodb_doublewrite | ON |
| innodb_fast_shutdown | 1 |
| innodb_file_io_threads | 4 |
| innodb_file_per_table | OFF |
| innodb_flush_log_at_trx_commit | 1 |
| innodb_flush_method | |
| innodb_force_recovery | 0 |
| innodb_lock_wait_timeout | 50 |
| innodb_locks_unsafe_for_binlog | OFF |
| innodb_log_arch_dir | |
| innodb_log_archive | OFF |
| innodb_log_buffer_size | 1048576 |
| innodb_log_file_size | 5242880 |
| innodb_log_files_in_group | 2 |
| innodb_log_group_home_dir | ./ |
| innodb_max_dirty_pages_pct | 90 |
| innodb_max_purge_lag | 0 |
| innodb_mirrored_log_groups | 1 |
| innodb_open_files | 300 |
| innodb_rollback_on_timeout | OFF |
| innodb_support_xa | ON |
| innodb_sync_spin_loops | 20 |
| innodb_table_locks | ON |
| innodb_thread_concurrency | 8 |
| innodb_thread_sleep_delay | 10000 |
+---------------------------------+------------------------+
36 rows in set (0.00 sec)

=============

after changing innodb

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
old_passwords=1


max_connections = 150

key_buffer = 512M
max_allowed_packet = 64M
thread_stack = 192K
thread_cache_size = 150
max_connections = 150
thread_concurrency = 12
query_cache_limit = 2M
query_cache_size = 32M

back_log = 50
max_connect_errors = 10
table_cache = 2048
binlog_cache_size = 1M
max_heap_table_size = 64M
sort_buffer_size = 4MB
join_buffer_size = 4MB
ft_min_word_len = 4
thread_stack = 192K
transaction_isolation = REPEATABLE-READ
tmp_table_size = 64M
#binlog_format=mixed
bulk_insert_buffer_size = 64M

#innodb variables
innodb_additional_mem_pool_size = 16M
innodb_buffer_pool_size = 1GB
innodb_data_file_path = ibdata1:10M:autoextend
innodb_file_io_threads = 4
innodb_thread_concurrency = 16
innodb_log_buffer_size = 8M
innodb_log_file_size = 256M
innodb_log_files_in_group = 3
innodb_max_dirty_pages_pct = 90
innodb_lock_wait_timeout = 120

read_buffer_size = 4M

#slow query log
log-slow-queries=/var/log/mysql-slow-queries.log


# Replication configuration
log-bin=mysql-bin
server-id=5
innodb_flush_log_at_trx_commit=1
sync_binlog=1
auto_increment_increment = 10
auto_increment_offset = 1
relay-log=mysqld-relay-bin
relay-log-index=mysqld-relay-bin.index

log-slave-updates

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

111125 9:23:17 [ERROR] /usr/libexec/mysqld: Incorrect information in file: './database_name/table_name.frm'

mysql> show engines;
+------------+----------+----------------------------------------------------------------+
| Engine | Support | Comment |
+------------+----------+----------------------------------------------------------------+
| MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables |
| InnoDB | DISABLED | Supports transactions, row-level locking, and foreign keys |
| BerkeleyDB | YES | Supports transactions and page-level locking |
| BLACKHOLE | NO | /dev/null storage engine (anything you write to it disappears) |
| EXAMPLE | NO | Example storage engine |
| ARCHIVE | NO | Archive storage engine |
| CSV | NO | CSV storage engine |
| ndbcluster | NO | Clustered, fault-tolerant, memory-based tables |
| FEDERATED | NO | Federated MySQL storage engine |
| MRG_MYISAM | YES | Collection of identical MyISAM tables |
| ISAM | NO | Obsolete storage engine |
+------------+----------+----------------------------------------------------------------+
12 rows in set (0.00 sec)

mysql> desc dep_admins;
ERROR 1033 (HY000): Incorrect information in file: './database_name/table_name.frm'
mysql>
Please post you comments and suggest me what I should do for this.

Viewing all articles
Browse latest Browse all 1958

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>