yhcsh 发表于 2015-10-22 11:55:47

1.3 my.cnf有问题

在不开启InnoDB的情况下,my.cnf配置里面default_storage_engine = InnoDB没有注释掉,数据库关了就不能启动了

licess 发表于 2015-10-22 12:06:34

mysql 哪个版本?

yhcsh 发表于 2015-10-22 12:08:50

回复 2# 的帖子

MariaDB 5.5.42
需要修正下

yhcsh 发表于 2015-10-22 12:13:30

回复 2# 的帖子

原my.cnf

port                = 3306
socket                = /tmp/mysql.sock
user    = mariadb
basedir = /usr/local/mariadb
datadir = /usr/local/mariadb/var
log_error = /usr/local/mariadb/var/mariadb.err
pid-file = /usr/local/mariadb/var/mariadb.pid
default-storage-engine = MyISAM
loose-skip-innodb
skip-external-locking
key_buffer_size = 128M
max_allowed_packet = 1M
table_open_cache = 512
sort_buffer_size = 2M
net_buffer_length = 8K
read_buffer_size = 2M
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 64M
thread_cache_size = 64
query_cache_size = 64M
tmp_table_size = 64M
table_open_cache = 512


#skip-networking
max_connections = 500
max_connect_errors = 100
open_files_limit = 65535

log-bin=mysql-bin
binlog_format=mixed
server-id        = 1
expire_logs_days = 10

default_storage_engine = InnoDB
#innodb_data_home_dir = /usr/local/mariadb/var
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /usr/local/mariadb/var
#innodb_buffer_pool_size = 512M
#innodb_additional_mem_pool_size = 2M
#innodb_log_file_size = 128M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50

军哥MariaDB 5.5.42还有那些那修改吗?

licess 发表于 2015-10-22 16:01:58

查了一下,有个地方参数没统一导致的

yhcsh 发表于 2015-10-22 16:24:34

回复 5# 的帖子

是不是就default_storage_engine = InnoDB没有去掉,其他都没问题对吧

yhcsh 发表于 2015-10-22 16:34:13

估计很多人lnmp1.3安装MariaDB都遇到这情况了

licess 发表于 2015-10-22 19:47:18

回复 6# 的帖子

页: [1]
查看完整版本: 1.3 my.cnf有问题