How to view Query Execution time

Dear all,

I want to know how much time did it take to run a sample query.
In postgresql, we enable timing by \timing command.

Is there is any way to enable in Mysql

Thanks

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2 [at] m.gmane.org
Adarsh Sharma [ Mo, 01 August 2011 08:41 ] [ ID #2062849 ]

Re: How to view Query Execution time

--20cf305643b9a9b8df04a96bfa07
Content-Type: text/plain; charset=ISO-8859-1

Usually, at the end of the query running it displays the time how much it
took.

Or else enable the profiling and run the query to check the exact time it
took for execution at all levels.

On Mon, Aug 1, 2011 at 12:11 PM, Adarsh Sharma <adarsh.sharma [at] orkash.com>wrote:

> Dear all,
>
> I want to know how much time did it take to run a sample query.
> In postgresql, we enable timing by \timing command.
>
> Is there is any way to enable in Mysql
>
> Thanks
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql?**
> unsub=sureshkumarilu [at] gmail.com<http://lists.mysql.com/mysql?unsub=sureshkumarilu [at] gmail.com>
>
>


--
Thanks
Suresh Kuna
MySQL DBA

--20cf305643b9a9b8df04a96bfa07--
sureshkumarilu [ Mo, 01 August 2011 08:45 ] [ ID #2062850 ]

Re: How to view Query Execution time

--bcaec51a8dfcdb5fd604a973a6d2
Content-Type: text/plain; charset=ISO-8859-1

you can also use EXPLAIN, which will give you much more details.
http://dev.mysql.com/doc/refman/5.5/en/execution-plan-inform ation.html
http://www.techiequest.com/mysql-visual-explain-hierarchical -view-of-query-execution-plan/

On Sun, Jul 31, 2011 at 11:45 PM, Suresh Kuna <sureshkumarilu [at] gmail.com>wrote:

> Usually, at the end of the query running it displays the time how much it
> took.
>
> Or else enable the profiling and run the query to check the exact time it
> took for execution at all levels.
>
> On Mon, Aug 1, 2011 at 12:11 PM, Adarsh Sharma <adarsh.sharma [at] orkash.com
> >wrote:
>
> > Dear all,
> >
> > I want to know how much time did it take to run a sample query.
> > In postgresql, we enable timing by \timing command.
> >
> > Is there is any way to enable in Mysql
> >
> > Thanks
> >
> > --
> > MySQL General Mailing List
> > For list archives: http://lists.mysql.com/mysql
> > To unsubscribe: http://lists.mysql.com/mysql?**
> > unsub=sureshkumarilu [at] gmail.com<
> http://lists.mysql.com/mysql?unsub=sureshkumarilu [at] gmail.com>
> >
> >
>
>
> --
> Thanks
> Suresh Kuna
> MySQL DBA
>



--
Best Regards,

Prabhat Kumar
MySQL DBA

My Blog: http://adminlinux.blogspot.com
My LinkedIn: http://www.linkedin.com/in/profileprabhat

--bcaec51a8dfcdb5fd604a973a6d2--
prabhat kumar [ Mo, 01 August 2011 17:54 ] [ ID #2062852 ]

Re: How to view Query Execution time

--f46d04389287699bdb04a975d773
Content-Type: text/plain; charset=ISO-8859-1

http://dev.mysql.com/doc/refman/5.1/en/query-log.html information on query
log may become useful for you in the future. Also, search the slow query
log, which also may help you in the future

On Mon, Aug 1, 2011 at 11:54 AM, Prabhat Kumar <aim.prabhat [at] gmail.com>wrote:

> you can also use EXPLAIN, which will give you much more details.
> http://dev.mysql.com/doc/refman/5.5/en/execution-plan-inform ation.html
>
> http://www.techiequest.com/mysql-visual-explain-hierarchical -view-of-query-execution-plan/
>
> On Sun, Jul 31, 2011 at 11:45 PM, Suresh Kuna <sureshkumarilu [at] gmail.com
> >wrote:
>
> > Usually, at the end of the query running it displays the time how much it
> > took.
> >
> > Or else enable the profiling and run the query to check the exact time it
> > took for execution at all levels.
> >
> > On Mon, Aug 1, 2011 at 12:11 PM, Adarsh Sharma <adarsh.sharma [at] orkash.com
> > >wrote:
> >
> > > Dear all,
> > >
> > > I want to know how much time did it take to run a sample query.
> > > In postgresql, we enable timing by \timing command.
> > >
> > > Is there is any way to enable in Mysql
> > >
> > > Thanks
> > >
> > > --
> > > MySQL General Mailing List
> > > For list archives: http://lists.mysql.com/mysql
> > > To unsubscribe: http://lists.mysql.com/mysql?**
> > > unsub=sureshkumarilu [at] gmail.com<
> > http://lists.mysql.com/mysql?unsub=sureshkumarilu [at] gmail.com>
> > >
> > >
> >
> >
> > --
> > Thanks
> > Suresh Kuna
> > MySQL DBA
> >
>
>
>
> --
> Best Regards,
>
> Prabhat Kumar
> MySQL DBA
>
> My Blog: http://adminlinux.blogspot.com
> My LinkedIn: http://www.linkedin.com/in/profileprabhat
>

--f46d04389287699bdb04a975d773--
Jon Siebert [ Mo, 01 August 2011 20:31 ] [ ID #2062854 ]
Datenbanken » gmane.comp.db.mysql.general » How to view Query Execution time

Vorheriges Thema: corrupt innodb database
Nächstes Thema: How select all records exact x days ago ?