set profiling=1;Now run a query or two. Then...
show profile;Or...
show profiles;Then you can...
show profile for query 4;More info on this very helpful functionality:
SELECT FROM_UNIXTIME(access, '%Y %M') AS 'Year and Month', count(*)
FROM users GROUP BY FROM_UNIXTIME(access, '%Y %M') WITH ROLLUP;Select all user's access times grouped by year and months with counts.
More info can be had at http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#func...
Thanks owed to Chandima for making me aware of this great function.
UPDATE links SET link_description = REPLACE(link_description, 'string to replace', 'new string');
Replace strings in database fields.