Today, when I was working on mysql, I wanted to drop the primary key, but there was an ERROR: mysql ERROR 1025 (HY000): ERROR on rename of… After searching the data, the solution is to remove the auto_increment if the primary key is auto_increment before dropping xx. If the primary key also has a foreign key constraint, the foreign key constraint is removed first. Once all of these additional constraints are removed, the primary key can be dropped safely.
Read More:
- About error 1005 (HY000) in MySQL: can’t create table ‘_______ ‘(errno: 150) fool’s plan
- [MySQL] error 1396 (HY000): Operation create user failed for ‘MySQL’ @’localhost ‘
- Solve MySQL error 2002 (HY000)
- Mysql start slave error 1201 (HY000)
- Error 2005 (HY000) unkonw MySQL server host…
- ERROR 2005 (HY000): Unknown MySQL server host
- MySQL error: error 1010 (HY000) when deleting database
- ERROR 2002 (HY000): Can’t connect to MySQL server on ‘localhost’ (10061)
- Solution to error 2002 (HY000) in MySQL
- SQL exception handling – MySQL error 1005 (HY000): can’t create table ‘TMP’ (errno: 13)
- Error 2003 (HY000): can’t connect to MySQL server on ‘localhost’ (10061)
- mysql load data infile ERROR 13 (HY000): Can’t get stat of
- Solution to error 2002 (HY000) in MySQL login startup
- MySQL error 1205 (HY000): lock wait timeout exceeded; try restarting transaction
- MYSQL:ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- Linux-mysql8.0 password reset problem – error 1396 (HY000): Operation alter user failed for ‘root’ @’localhost ‘
- ERROR 2000 (HY000): Unknown MySQL error
- MySQL 8 — error in setting simple password error 1819 (HY000): your password does not satisfy the current policy requirements
- Python rename renumber
- Batch modification of file names on MAC Linux rename command line