GilesGuthrie
Staff Emeritus
- 11,038

- Edinburgh, UK
- CMDRTheDarkLord
I've built a development server using PHP5 on Apache 2 and MySQL 5.something. It works.
I've used phpMyAdmin to export the database off my live server, but when I try to import the database into the dev box, I get "ERROR 1060 (42S21) at line 70: Duplicate column name 'ID'".
I know it's a MySQL thing because I've tried using phpMyAdmin on the dev box and also the MySQL command line.
My database consists of a number of discrete tables that are managed using application-side logic. Consequently, the field name ID is used in most tables as an internal Primary Key.
Is MySQL seriously telling me that I have to uniquely identify the primary key in all 148 tables? And is this something that can be switched off in the MySQL config (because it's not a behaviour that the live box exhibits).
I've used phpMyAdmin to export the database off my live server, but when I try to import the database into the dev box, I get "ERROR 1060 (42S21) at line 70: Duplicate column name 'ID'".
I know it's a MySQL thing because I've tried using phpMyAdmin on the dev box and also the MySQL command line.
My database consists of a number of discrete tables that are managed using application-side logic. Consequently, the field name ID is used in most tables as an internal Primary Key.
Is MySQL seriously telling me that I have to uniquely identify the primary key in all 148 tables? And is this something that can be switched off in the MySQL config (because it's not a behaviour that the live box exhibits).