免费注册 查看新帖 |

Chinaunix

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

cluster的配置造成,mysql 不能插入表,提示表存在 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-03 15:30 |只看该作者 |倒序浏览
mysql> use database01;
Database changed
mysql> create table ttt (field01 integer, field02 char(10));
ERROR 1050 (42S01): Table 'ttt' already exists
mysql>

[ 本帖最后由 0727 于 2006-8-4 12:17 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-08-03 16:43 |只看该作者
show tables;
看看有没有ttt这个表!有的话就不能在建立了!

论坛徽章:
0
3 [报告]
发表于 2006-08-03 17:03 |只看该作者
对..

论坛徽章:
0
4 [报告]
发表于 2006-08-03 17:16 |只看该作者

不能创建表,检查当前结果:show tbles

mysql> use database01
Database changed
mysql> create table jjyy (field01 integer, field02 char(10));
ERROR 1050 (42S01): Table 'jjyy' already exists
mysql> show tables;
Empty set, 1 warning (0.02 sec)

mysql>

论坛徽章:
0
5 [报告]
发表于 2006-08-03 18:14 |只看该作者
你是做的cluster的吧!

你在启动的时候加上"--initial'选项

http://forums.mysql.com/read.php?25,102500,102500

论坛徽章:
0
6 [报告]
发表于 2006-08-04 09:09 |只看该作者
可以了,你真是厉害,我将cluster去掉就可以了,谢谢指点


mysql> use database01
Database changed
mysql> create table jjyy (field01 integer, field02 char(10));
Query OK, 0 rows affected (0.03 sec)

mysql>
mysql> show tables;
+----------------------+
| Tables_in_database01 |
+----------------------+
| jjyy                 |
+----------------------+
1 row in set (0.01 sec)

mysql>



原帖由 anhui 于 2006-8-3 18:14 发表
你是做的cluster的吧!

你在启动的时候加上"--initial'选项

http://forums.mysql.com/read.php?25,102500,102500

论坛徽章:
0
7 [报告]
发表于 2006-08-04 11:07 |只看该作者
drop table if exists ttt

论坛徽章:
0
8 [报告]
发表于 2006-08-04 11:09 |只看该作者
原帖由 0727 于 2006-8-3 17:16 发表
mysql> use database01
Database changed
mysql> create table jjyy (field01 integer, field02 char(10));
ERROR 1050 (42S01): Table 'jjyy' already exists
mysql> show tables;
Empty set, 1 w ...


可以show warinings 看看什么结果.

论坛徽章:
0
9 [报告]
发表于 2006-08-04 12:15 |只看该作者
一会我看看,我先看cluster能不能配置起来


原帖由 yueliangdao0608 于 2006-8-4 11:09 发表


可以show warinings 看看什么结果.

论坛徽章:
0
10 [报告]
发表于 2006-08-04 16:34 |只看该作者
还是出现不能创建的问题,这次我用--initial命令了:
mysql> create table jjyy2 (field01 integer, field02 char(10));
ERROR 1050 (42S01): Table 'jjyy2' already exists
mysql>
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP