Hi, I cant seem to find anything on this subject, but I want to be able to time how long it takes an sql query (whether mysql/postgresql etc.) to run from php. For example time a create database or select * from...
As part of my development process I print the sql command to the browser that I'm executing. I also print out the mysql_errno() and mysql_error(). This shows me exactly what the MySql Server received and the results were.
I've found that if I copy the sql from the browser and put it in the SQL box for PHPMyAdmin to execute the query. This not only gives me the test results but gives you a time that the execution took.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.