VPS侦探论坛

 找回密码
 注册
查看: 4536|回复: 7

1.3 my.cnf有问题

[复制链接]
发表于 2015-10-22 11:55:47 | 显示全部楼层 |阅读模式

在不开启InnoDB的情况下,my.cnf配置里面default_storage_engine = InnoDB没有注释掉,数据库关了就不能启动了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-10-22 12:06:34 | 显示全部楼层


mysql 哪个版本?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-10-22 12:08:50 | 显示全部楼层

回复 2# 的帖子


MariaDB 5.5.42
需要修正下
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-10-22 12:13:30 | 显示全部楼层

回复 2# 的帖子




原my.cnf
[mysqld]
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还有那些那修改吗?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2015-10-22 16:01:58 | 显示全部楼层

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

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2015-10-22 16:24:34 | 显示全部楼层

回复 5# 的帖子


是不是就default_storage_engine = InnoDB没有去掉,其他都没问题对吧
 楼主| 发表于 2015-10-22 16:34:13 | 显示全部楼层

估计很多人lnmp1.3安装MariaDB都遇到这情况了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-10-22 19:47:18 | 显示全部楼层

回复 6# 的帖子


Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-28 11:23 , Processed in 0.041071 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表