免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4560 | 回复: 4
打印 上一主题 下一主题

mysql5.1.30 innodb 的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-12 14:21 |只看该作者 |倒序浏览
今天刚装上mysql5.1.30版 ,好像默认不支持innodb,所以编译的时候 我加了 --with-plugins=innobase 选项,,安装后,不加载my.cnf启动后 ,用show variables 看 have innodb 是yes ,但是当我编译/etc/my.cnf 后启动就会出错

错误信息


081212 21:52:30 mysqld_safe mysqld from pid file /usr/local/mysql/var/mysql.pid ended
081212 21:53:19 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
081212 21:53:19 [ERROR] InnoDB: syntax error in innodb_data_file_path
081212 21:53:19 [ERROR] Plugin 'InnoDB' init function returned error.
081212 21:53:19 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
081212 21:53:19 [ERROR] /usr/local/mysql/libexec/mysqld: unknown variable 'innodb_log_arch_dir=/usr/local/mysql/var/'
081212 21:53:19 [ERROR] Aborting

081212 21:53:19 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

081212 21:53:19 mysqld_safe mysqld from pid file /usr/local/mysql/var/mysql.pid ended



我的my.cnf 配置为

[mysqld]
port            = 3306
socket          = /usr/local/mysql/tmp/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M


log-bin=mysql-bin

# binary logging format - mixed recommended
binlog_format=mixed

# Point the following paths to different dedicated disks
#tmpdir         = /tmp/
#log-update     = /path-to-dedicated-directory/hostname

# Uncomment the following if you are using InnoDB tables
innodb_data_home_dir = /usr/local/mysql/var/
innodb_data_file_path = ibdata1:4G:ibdata2:4G:ibdata3:4G:autoextend
innodb_log_group_home_dir = /usr/local/mysql/var/
innodb_log_arch_dir = /usr/local/mysql/var/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 5M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50


以前4的时候也是这么配置的,,为什么5.1就出错了呢 ,还是5.1已经不能用innodb_log_arch_dir 这个选项了。。大家帮帮我

论坛徽章:
0
2 [报告]
发表于 2008-12-12 14:28 |只看该作者

InnoDB: syntax error in innodb_data_file_path

为什么会出现 InnoDB: syntax error in innodb_data_file_path 这个错误呢

论坛徽章:
0
3 [报告]
发表于 2008-12-12 14:36 |只看该作者

大家使用5.1.30都没有遇到过这样的问题吗

大家使用5.1.30都没有遇到过这样的问题吗

论坛徽章:
0
4 [报告]
发表于 2008-12-12 15:50 |只看该作者
支持。你要自己安装。
install plugin innodb soname "ha_innodb.so";

论坛徽章:
0
5 [报告]
发表于 2008-12-12 16:39 |只看该作者

哦,谢谢

谢谢,刚刚开了看手册,手册上也介绍了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP