Questions tagged «mysql-error-1025»

9
重命名MySQL中的列时出错
如何重命名表中的列xyz?这些列是: Manufacurerid, name, status, AI, PK, int 我想重命名为 manufacturerid 我尝试使用PHPMyAdmin面板,但出现此错误: MySQL said: Documentation #1025 - Error on rename of '.\shopping\#sql-c98_26' to '.\shopping\tblmanufacturer' (errno: 150)

11
MySQL删除一些外键
我有一个表,该表的主键在其他几个表中使用,并且对其他表有几个外键。 CREATE TABLE location ( locationID INT NOT NULL AUTO_INCREMENT PRIMARY KEY ... ) ENGINE = InnoDB; CREATE TABLE assignment ( assignmentID INT NOT NULL AUTO_INCREMENT PRIMARY KEY, locationID INT NOT NULL, FOREIGN KEY locationIDX (locationID) REFERENCES location (locationID) ... ) ENGINE = InnoDB; CREATE TABLE assignmentStuff ( ... assignmentID …


7
#1025-将'./database/#sql-2e0f_1254ba7'重命名为'./database/table'时出错(错误号:150)
因此,我试图向数据库中的一个表添加主键。现在,它具有这样的主键: PRIMARY KEY (user_id, round_number) 其中user_id是外键。 我正在尝试将其更改为: PRIMARY KEY (user_id, round_number, created_at) 我在phpmyadmin中通过单击表结构视图中的主键图标来执行此操作。 这是我得到的错误: #1025 - Error on rename of './database/#sql-2e0f_1254ba7' to './database/table' (errno: 150) 它是带有InnoDB表引擎的MySQL数据库。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.