Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Free MySQL Profiler [closed]

Tags:

mysql

My Background is with MS-SQL and not MySQL and I am struggeling to figure out how to debug something,

I need to see exactly what querys (actually inserts) a webservice is executing in a MySQL database, However I cannot find an equivelent to MS-SQL Profiler that is free (we have no budget). Does anyone have any suggestions?

Thanks

Ian

like image 459
Ian Avatar asked Feb 06 '13 11:02

Ian


People also ask

Is there a profiler for MySQL?

Query Profiler, built into dbForge Studio for MySQL, is the best query optimization tool to tune MySQL queries and investigate query performance issues in an efficient and fast way. It helps build up a picture of how the queries are run to access data and what operations impact your application.

Is MySQL software free?

MySQL is free and open-source software under the terms of the GNU General Public License, and is also available under a variety of proprietary licenses.

Is MySQL open source and free?

MySQL Community Edition is the freely downloadable version of the world's most popular open source database. It is available under the GPL license and is supported by a huge and active community of open source developers.


1 Answers

Try that:

mysql> SET profiling = 1;

mysql> SELECT * FROM {your_table}

mysql> SHOW PROFILES;

or

mysql> SHOW PROFILE;

More info: http://dev.mysql.com/doc/refman/5.0/en/show-profile.html

like image 54
demsey Avatar answered Oct 01 '22 07:10

demsey