mySQL (phpMyAdmin) error : This table does not contain a unique column

If you face this error in phpMyAdmin and you can't change/edit the table fields.

If you sure you got error like this : 

"This table does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available."

 

So please execute next SQL query:

ALTER TABLE [tablename] add newid INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;

You can execute the query from GUI of phpMyAdmin or from SSH CLI using mysql command first.

Was this answer helpful?

 Print this Article

Also Read

Installing Softaculous

Installing Softaculous in cPanel. Source:...

WHM/cPanel license issue

You have ordered a license and see a next warn:  "Trial LicenseThis copy of cPanel & WHM is...

Vesta panel

Vesta is a Simple & Clever Web Hosting Control Panel. All the details can be found at the...

DirectAdmin License update \ip change

DirectAdmin will not be running, as the license file will be invalid. Get the new license file...

WHM/cPanel installiation and first login

<official cPanel install guide>...