02-25-2010
52,
0
Join Date: Dec 2008
Last Activity: 25 February 2010, 3:53 AM EST
Posts: 52
Thanks Given: 0
Thanked 0 Times in 0 Posts
How to get protocol, characterset, mysql info?
Hi,
I know the API to get protocol version, character set etc. If I want to find out the current protocol version, current user character set, mysql info, mysql server info wihtout using these API -
mysql_get_server_info()
mysql_info()
mysql_get_proto_info()
mysql_character_set_name()
mysql_get_client_info().
Is there any other way to get these information without using API?
I don't want to use API instead Shall I get these information from Infomrmation_schema?
Can I fetch these information directly accessing enviornment variable if possible?
---------- Post updated 02-25-10 at 12:53 AM ---------- Previous update was 02-24-10 at 11:49 PM ----------
I find out the value of protocol, version, character set, host name using
select @@hostname
select @@version
select @@protocol_version
select @@character_server_set.
But couldn't find out the how to get values of
mysql_get_client_info()
mysql_info()
mysql_stat()
mysql_thread_safe()
without using it in the same manner used for protocol,character set etc.