免费注册 查看新帖 |

Chinaunix

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

mysql远程访问 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-06-28 10:48 |只看该作者 |倒序浏览
目前结构一主一从,把从的数据目录挂载到了另外一个服务器上,另外一台服务器mount上后,在配置文件的datadir路径写的mount 的路径,等于是让新服务器去访问从的数据,主从已经搭好,无论停不停那个从机,新服务器的mysql都启动不了,详见以下错误信息:

110628 10:45:36 mysqld_safe mysqld from pid file /data/mysql3/localhost.pid ended

110628 10:45:36 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

110628 10:45:36 [ERROR] Aborting
110628 10:45:36 [ERROR] Do you already have another mysqld server running on port: 3309 ?
110628 10:45:36 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
110628 10:45:36 [Note] Plugin 'InnoDB' is disabled.
110628 10:45:36 [Note] Plugin 'FEDERATED' is disabled.
110628 10:45:36 [Warning] '--default-character-set' is deprecated and will be removed in a future release. Please use '--character-set-server' instead.
110628 10:45:36 [Warning] 'for replication startup options' is deprecated and will be removed in a future release. Please use ''CHANGE MASTER'' instead.
110628 10:45:36 [Warning] '--log' is deprecated and will be removed in a future release. Please use ''--general_log'/'--general_log_file'' instead.
110628 10:45:36 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
110628 10:45:36 mysqld_safe Starting mysqld daemon with databases from /data/mysql3
110628 10:43:44 mysqld_safe mysqld from pid file /data/mysql3/localhost.pid ended

请问高手该怎么解决?

论坛徽章:
0
2 [报告]
发表于 2011-06-28 11:07 |只看该作者
回复 1# txwdhs


    启动的mysql没有关掉,建议kill干净~~~你的是5。5吧?有些参数低版本的不适用,建议查找更换。

论坛徽章:
0
3 [报告]
发表于 2011-06-28 11:09 |只看该作者
启动的mysql没有关掉,建议kill干净,然后重新启动~~~你的是5。5吧?有些参数高版本的不适用,建议查找更换。

论坛徽章:
0
4 [报告]
发表于 2011-06-28 11:19 |只看该作者
5.1的,这个问题已经好了,我启动好了从,主从状态也正常,可是新的服务器的不支持Innodb,我把配置文件里的skip-Innodb前面加了#,然后就启动不了mysql了,报错如下:
110628 11:16:29  InnoDB: Completed initialization of buffer pool
110628 11:16:28  InnoDB: Initializing buffer pool, size = 512.0M
110628 11:16:28 [Note] Plugin 'FEDERATED' is disabled.
110628 11:16:28 [Warning] '--default-character-set' is deprecated and will be removed in a future release. Please use '--character-set-server' instead.
110628 11:16:28 [Warning] 'for replication startup options' is deprecated and will be removed in a future release. Please use ''CHANGE MASTER'' instead.
110628 11:16:28 [Warning] '--log' is deprecated and will be removed in a future release. Please use ''--general_log'/'--general_log_file'' instead.
110628 11:16:28 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
110628 11:16:28 mysqld_safe Starting mysqld daemon with databases from /data/mysql3
110628 11:05:32 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'mysql-bi
n.000009' position 822
110628 11:05:32 [Warning] Slave: Unknown table engine 'InnoDB' Error_code: 1286
110628 11:05:32 [ERROR] Slave SQL: Error 'Unknown table engine 'InnoDB'' on query

为什么不支持Innodb了呢,我这3台机器都是安的同样的mysql,同样的操作系统,编译进去了Innodb

论坛徽章:
0
5 [报告]
发表于 2011-06-28 12:00 |只看该作者
回复 4# txwdhs


    我也没有遇到过,看一下这个帖子吧 http://bbs.chinaunix.net/viewthread.php?tid=1592425
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP