通过mysql workbench 6.1增加表字段错误
问题:在mysql workbench 6.1中准备给一个表增加字段时出现以下错误:
ERROR 7: Error on rename of '.\we7wq3\ims_shopping_goods.MYI' to '.\we7wq3\#sql2-43c-2d1.MYI' (Errcode: 13 - Permission denied)
SQL Statement:
ALTER TABLE `we7wq3`.`ims_shopping_goods`
ADD COLUMN `iszhekou` INT(11) NULL DEFAULT 0 AFTER `deleted`
ERROR: Error when running failback script. Details follow.
ERROR 1050: Table 'ims_shopping_goods' already exists
SQL Statement:
CREATE TABLE `ims_shopping_goods` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`weid` int(10) unsigned NOT NULL,
`pcate` int(10) unsigned NOT NULL DEFAULT '0',
`ccate` int(10) unsigned NOT NULL DEFAULT '0',
`type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '1为实体,2为虚拟',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1',
`displayorder` int(10) unsigned NOT NULL DEFAULT '0',
`title` varchar(100) NOT NULL DEFAULT '',
`thumb` varchar(255) DEFAULT '',
`unit` varchar(5) NOT NULL DEFAULT '',
`description` varchar(1000) NOT NULL DEFAULT '',
`content` text NOT NULL,
`goodssn` varchar(50) NOT NULL DEFAULT '',
`productsn` varchar(50) NOT NULL DEFAULT '',
`marketprice` decimal(10,2) NOT NULL DEFAULT '0.00',
`productprice` decimal(10,2) NOT NULL DEFAULT '0.00',
`costprice` decimal(10,2) NOT NULL DEFAULT '0.00',
`total` int(10) NOT NULL DEFAULT '0',
`totalcnf` int(11) DEFAULT '0' COMMENT '0 拍下减库存 1 付款减库存 2 永久不减',
`sales` int(10) unsigned NOT NULL DEFAULT '0',
`spec` varchar(5000) NOT NULL,
`createtime` int(10) unsigned NOT NULL,
`weight` decimal(10,2) NOT NULL DEFAULT '0.00',
`credit` int(11) DEFAULT '0',
`maxbuy` int(11) DEFAULT '0',
`hasoption` int(11) DEFAULT '0',
`dispatch` int(11) DEFAULT '0',
`thumb_url` text,
`isnew` int(11) DEFAULT '0',
`ishot` int(11) DEFAULT '0',
`isdiscount` int(11) DEFAULT '0',
`isrecommand` int(11) DEFAULT '0',
`istime` int(11) DEFAULT '0',
`timestart` int(11) DEFAULT '0',
`timeend` int(11) DEFAULT '0',
`viewcount` int(11) DEFAULT '0',
`deleted` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8
相关推荐
MySQL Workbench使用手册
MySQL Workbench使用手册
mysql workbench汉化
mysql workbench汉化包,替换安装目录/data/main-menu.xml文件即可,注意做好备份。自测6.3ce版本可用,其他版本请自行测试或修改
Ubuntu下mysql与mysql workbench安装教程
主要为大家详细介绍了Ubuntu下mysql与mysql workbench的安装教程,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
MySQL基础:使用MySQL Workbench生成ER图
这篇文章介绍一下如何使用MySQL Workbench生成ER图。 事前准备 MySQL: 8.0.11 liumiaocn:~ liumiao$ mysql.server start Starting MySQL .. SUCCESS! liumiaocn:~ liumiao$ mysql.server status SUCCESS! MySQL running (18202) liumiaocn:~ liumiao$ liumiaocn:~ liumiao$ liumiaocn:~ liumiao$ mysql -uroot ERROR 1045 (28000): Access deni
解决MySQL Workbench gnome-keyring-daemon错误的方法分享
在Fedora下安装了一个MySQL Workbench,运行,连接数据库,在Store in Keychain时出现了gnome-keyring-daemon错误,不能保存密码,也就连不上数据库。 解决的办法是编辑/usr/bin/mysql-workbench, 将# WB_NO_GNOME_KEYRING=1改成export WB_NO_GNOME_KEYRING=1, 保存并重新运行mysql-workbench,就可以保存密码并连接数据库了。 您可能感兴趣的文章:mysql中workbench实例详解centOS下mysql


