Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get PhpMyAdmin to delete/truncate without asking for confirmation

On my local development machine, I'm always deleting rows/truncating tables, or even dropping tables/databases all the time. However I'm constantly getting messages asking to confirm.

1) Where can I edit phpmyadmin's code so it doesn't show me javascript confirm/cancel boxes when I try to delete or empty tables,

2) In the new version of phpmyadmin, the handy 'empty' and 'drop' buttons that used to be visible while you were browsing a table are now gone. How can I bring them back?

I tried to do this myself but phpmyadmin's code is pretty impossible to make sense of. I don't know where their html is kept.

like image 364
Ali Avatar asked Nov 13 '22 09:11

Ali


1 Answers

I didn't try it, but it looks good:

Take a look at your config.inc.php and change:

$cfg['Confirm']                 = TRUE;   

Source: http://wiki.phpmyadmin.net/pma/Config#Confirm

like image 200
Martin Thoma Avatar answered Nov 16 '22 03:11

Martin Thoma