Unix Technical Forum

Treat results of SHOW STATUS as table

This is a discussion on Treat results of SHOW STATUS as table within the MySQL forums, part of the Database Server Software category; --> Commands like this won't work, apparently: INSERT INTO connections SHOW STATUS LIKE 'Threads_connected'; Is there a way to put ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 10:00 AM
Christoph Burschka
 
Posts: n/a
Default Treat results of SHOW STATUS as table

Commands like this won't work, apparently:

INSERT INTO connections SHOW STATUS LIKE 'Threads_connected';

Is there a way to put the result of a status query into a table within
MySQL, or am I going to have to select and insert it in two separate
queries using PHP or a shell script?

--
cb
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 10:00 AM
lark
 
Posts: n/a
Default Re: Treat results of SHOW STATUS as table

== Quote from Christoph Burschka (christoph.burschka@rwth-aachen.de)'s article
> Commands like this won't work, apparently:
> INSERT INTO connections SHOW STATUS LIKE 'Threads_connected';
> Is there a way to put the result of a status query into a table within
> MySQL, or am I going to have to select and insert it in two separate
> queries using PHP or a shell script?


it appears you're gonna have to use two queries and php. didn't work for me
either. strange!
--
POST BY: lark with PHP News Reader
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:25 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com