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:...

CSF

ConfigServer Security & Firewall (CSF) is a powerful iptables configuration tool....

Virtualmin

Virtualmin is a Webmin module for managing multiple virtual hosts through a single interface,...

Uploading files in cPanel

If you would like to upload some files to your server using cPanel, you can do so with built-in...

cPanel/WHM: error "Sorry, you are not allowed to add any more than (0) parked domains!"

If you face the next issue with cPanel: "Sorry, you are not allowed to add any more than (0)...

Powered by WHMCompleteSolution