mysql-error-1050

Can't delete a mySQL table. (Error 1050)

丶灬走出姿态 提交于 2019-12-23 12:42:55
问题 I have a pesky table that will not delete and it's holding up my dev environment refresh :( I know this table exists. Example... mysql> select * from uc_order_products_qty_vw limit 10; +-----+-------------+---------+---------+---------+---------+ | nid | order_count | avg_qty | sum_qty | max_qty | min_qty | +-----+-------------+---------+---------+---------+---------+ | 105 | 1 | 1.0000 | 1 | 1 | 1 | | 110 | 5 | 1.0000 | 5 | 1 | 1 | | 111 | 1 | 1.0000 | 1 | 1 | 1 | | 113 | 5 | 1.0000 | 5 | 1

MySQL “CREATE TABLE IF NOT EXISTS” -> Error 1050

点点圈 提交于 2019-12-03 08:03:47
问题 Using the command: CREATE TABLE IF NOT EXISTS `test`.`t1` ( `col` VARCHAR(16) NOT NULL ) ENGINE=MEMORY; Running this twice in the MySQL Query Browser results in: Table 't1' already exists Error 1050 I would have thought that creating the table "IF NOT EXISTS" would not throw errors. Am I missing something or is this a bug? I am running version 5.1 . Thanks. 回答1: Works fine for me in 5.0.27 I just get a warning (not an error) that the table exists; 回答2: As already stated, it's a warning not an

MySQL “CREATE TABLE IF NOT EXISTS” -> Error 1050

我的梦境 提交于 2019-12-02 21:35:46
Using the command: CREATE TABLE IF NOT EXISTS `test`.`t1` ( `col` VARCHAR(16) NOT NULL ) ENGINE=MEMORY; Running this twice in the MySQL Query Browser results in: Table 't1' already exists Error 1050 I would have thought that creating the table "IF NOT EXISTS" would not throw errors. Am I missing something or is this a bug? I am running version 5.1 . Thanks. Works fine for me in 5.0.27 I just get a warning (not an error) that the table exists; As already stated, it's a warning not an error, but (if like me) you want things to run without warnings, you can disable that warning, then re-enable it

Adding foreign key to existing table gives error 1050 table already exists

雨燕双飞 提交于 2019-12-01 02:16:21
I've a table CustomizationSet with the columns: customization_set_guid (which is a non-nullable guid and also the primary key) creator_account_guid and a few others And a table with existing data Registration with the columns: registration_id (an int and the primary key) customization_set_guid (also a guid (so a char(36)) which is nullable, and all entries are currently null) and a few other columns When I try and run ALTER TABLE Registration ADD FOREIGN KEY ( customization_set_guid ) REFERENCES CustomizationSet ( customization_set_guid ); in MySQL Workbench, it gives the error 1050Table '.

Adding foreign key to existing table gives error 1050 table already exists

社会主义新天地 提交于 2019-11-30 21:45:02
问题 I've a table CustomizationSet with the columns: customization_set_guid (which is a non-nullable guid and also the primary key) creator_account_guid and a few others And a table with existing data Registration with the columns: registration_id (an int and the primary key) customization_set_guid (also a guid (so a char(36)) which is nullable, and all entries are currently null) and a few other columns When I try and run ALTER TABLE Registration ADD FOREIGN KEY ( customization_set_guid )

Mysql 1050 Error “Table already exists” when in fact, it does not

风流意气都作罢 提交于 2019-11-26 18:24:40
I'm adding this table: CREATE TABLE contenttype ( contenttypeid INT UNSIGNED NOT NULL AUTO_INCREMENT, class VARBINARY(50) NOT NULL, packageid INT UNSIGNED NOT NULL, canplace ENUM('0','1') NOT NULL DEFAULT '0', cansearch ENUM('0','1') NOT NULL DEFAULT '0', cantag ENUM('0','1') DEFAULT '0', canattach ENUM('0','1') DEFAULT '0', isaggregator ENUM('0', '1') NOT NULL DEFAULT '0', PRIMARY KEY (contenttypeid), UNIQUE KEY packageclass (packageid, class) ); And I get a 1050 "table already exists" But the table does NOT exist. Any ideas? EDIT: more details because everyone seems to not believe me :)

Mysql 1050 Error “Table already exists” when in fact, it does not

放肆的年华 提交于 2019-11-26 06:17:15
问题 I\'m adding this table: CREATE TABLE contenttype ( contenttypeid INT UNSIGNED NOT NULL AUTO_INCREMENT, class VARBINARY(50) NOT NULL, packageid INT UNSIGNED NOT NULL, canplace ENUM(\'0\',\'1\') NOT NULL DEFAULT \'0\', cansearch ENUM(\'0\',\'1\') NOT NULL DEFAULT \'0\', cantag ENUM(\'0\',\'1\') DEFAULT \'0\', canattach ENUM(\'0\',\'1\') DEFAULT \'0\', isaggregator ENUM(\'0\', \'1\') NOT NULL DEFAULT \'0\', PRIMARY KEY (contenttypeid), UNIQUE KEY packageclass (packageid, class) ); And I get a