RE: get instance variable

2002-02-19 Thread Kenneth Hylton

Hi Robert - 

The only way I have found to get this sort of stuff (as well as security
info) out is to use mysql_query (or mysql_real_query) and issue the query
just like you would at the mysql client.

Then you can interpret the results that are returned.

I am having to do that with column level grants by user ID to implement
views of the data in a C++ environment and it's the only way that I could
find to do it.

There are not a lot of C API things that are specific to getting data column
metadata and other configuration data.  IT is mostly for obtaining
connections, results sets, and manipulating result sets.

It appears that the way they want you to get stuff out using the C API is
not with lots of specific calls, but by just issuing the command yourself
and interpreting the result set.  

I found the best way is to write a simple program to issue a call and the
cout the result set information.  Be sure and do that because sometimes the
returned data will surprise you a little bit

I have some working C++ connection and result set classes if you would like
them, plus a test program you can use.

Ken Hylton


-Original Message-
From:   Li, Robert [mailto:[EMAIL PROTECTED]]
Sent:   Monday, February 18, 2002 9:07 PM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject:get instance variable

Hi, all MySQL team

Here is another question.
I want to get individual MySQL instance's variable(like
datadir, tmpdir etc)
using C API. Is there any function can do this? 
I know that use mysqladmin and use query show variables 
can do this.

Thanks and regards


Robert Li
Computer Associates 
RD Centre Beijing , China 
Tel:+86 10 6561 1136 ext 852 (O) 
Fax:+86 10 8529 8979 
E-mail: [EMAIL PROTECTED]


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail
[EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try:
http://lists.mysql.com/php/unsubscribe.php

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




get instance variable

2002-02-18 Thread Li, Robert

Hi, all MySQL team

Here is another question.
I want to get individual MySQL instance's variable(like datadir, tmpdir etc)
using C API. Is there any function can do this? 
I know that use mysqladmin and use query show variables 
can do this.

Thanks and regards


Robert Li
Computer Associates 
RD Centre Beijing , China 
Tel:+86 10 6561 1136 ext 852 (O) 
Fax:+86 10 8529 8979 
E-mail: [EMAIL PROTECTED]

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




get instance variable

2002-02-12 Thread Li, Robert

Hi, all MySQL team

Here is another question.
I want to get individual MySQL instance's variable(like datadir, tmpdir etc)
using C API. Is there any function can do this? 
I know that use mysqladmin and use query show variables 
can do this.

Thanks and regards


Robert Li
Computer Associates 
RD Centre Beijing , China 
Tel:+86 10 6561 1136 ext 852 (O) 
Fax:+86 10 8529 8979 
E-mail: [EMAIL PROTECTED]

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




get instance variable

2002-02-07 Thread Li, Robert

Hi, all MySQL team

Here is another question.
I want to get individual MySQL instance's variable(like datadir, tmpdir etc)
using C API. Is there any function can do this? 
I know that use mysqladmin and use query show variables 
can do this.

Thanks and regards


Robert Li
Computer Associates 
RD Centre Beijing , China 
Tel:+86 10 6561 1136 ext 852 (O) 
Fax:+86 10 8529 8979 
E-mail: [EMAIL PROTECTED]

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php