Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not delete data from phpMyAdmin? [duplicate]

I create a table in database and enter some data into table.But i want to delete data from table manually but there are no option on phpMyAdmin. Here is a picture.

like image 910
imnhasan Avatar asked Sep 05 '25 03:09

imnhasan


1 Answers

You need creating a primary key in phpMyAdmin to be able to delete rows.

If there isn't a field that can be used as a primary key, you can add an 'id' column with autoincrement, or you can use multiple columns primary key. You can go to Structure menu to add the key. After defining primary key, phpMyAdmin can manage deletion, but this is a phpMyAdmin issue, not a MySQL one. In fact you could delete a row by ad hoc sql query.

like image 174
IgrewupwithSlackware Avatar answered Sep 07 '25 20:09

IgrewupwithSlackware