Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phpmyadmin blocks when executing a large query

I am using phpmyadmin for my MySQL administration. When I'm doing an expensive query, which takes several minutes, phpmyadmin seems to block all other activities going on in other tabs. I can still use the mysql console for queries, but I can't use phpmyadmin anymore in any tab, it loads and finish only when the big query in the other tab is finished. Can I change this somehow?

like image 257
Thomas Avatar asked Mar 20 '12 14:03

Thomas


People also ask

Can phpMyAdmin handle big data?

PHPMyAdmin is able to handle unlimited amount of data when it comes to exporting a table to sql, csv or spreadsheets. It just cannot handle that much data when it comes to display a nice interactive grid with ajax updates and gritty buttons.

What Cannot be done on phpMyAdmin?

Renaming a database cannot be performed directly through the phpMyAdmin area due to lack of privileges for the user. If you want to rename the database, you should create a new MySQL database, export the database tables and import them in the new one.

Why does MySQL query take so long to execute?

Queries can become slow for various reasons ranging from improper index usage to bugs in the storage engine itself. However, in most cases, queries become slow because developers or MySQL database administrators neglect to monitor them and keep an eye on their performance.


1 Answers

That's because of the way php handles sessions. One session can only be used by one script at a time. In one browser all tabs use the same session so they have to wait for the task to complete.

If you log in to phpMyAdmin in another browser, you have create a new session and can do things in parallel. (Because each browser has its own cookie store)

like image 174
flo Avatar answered Oct 27 '22 05:10

flo