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
Hi Friends,
I am not able to conver character set from UTF-8 to IBM-284 throwing an error "cannot open convertor" . Could you please help me how to get out of this error.
Below command is working fine
iconv -f ISO8859-15 -t UTF-8 fromfile.txt > tofile.txt
But the below command is... (2 Replies)
After doing a yum install mysql mysql-server on Fedora 14 I wasn't able to fully install the packages correctly. It installed MySQL 5.1. I was getting the following error when running the:
mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)... (3 Replies)
Hi,
I need some help to get decimal value of some particluar character set
for e.g.
in windows-1251 characterset
ж --> 230
Please help and suggest way to achive same. (7 Replies)
I recently installed mysql-standard-5.0.21-solaris9-sparc-64bit.pkg on a Solaris 9 machine (SunOS 5.9 Generic_118558-19 sun4u sparc SUNW,Ultra-250). The package installation went very smooth, however, starting mysql is a different story. I get the message below everytime I try to start mysql:
#... (2 Replies)
MySQL on my server is down....
I figured out that the mysqld process isn't running. When I try to run it, it says it can't find mysql.sock
Any suggestions?
Here's what I can't do:
can't be root
don't have physical access (do stuff via SSH)
reinstall MySQL (need to keep the current MySQL... (8 Replies)
mysqladmin(1) MySQL database mysqladmin(1)NAME
mysqladmin [OPTIONS] command command.... - A utility for performing administrative operations
OPTION SYNOPSIS
mysqladmin [-#|--debug= logfile] [-f|--force] [-?|--help] [--character-sets-dir=directory] [-C|--compress] [-h|--host=[#]] [-p[pwd]]
[--password=[pwd]] [-P|--port= pnum] [-i|--sleep= sec] [-E|--vertical] [-s|--silent] [-S|--socket= #] [-r|--relative] [-t|--timeout= #]
[-u|--user= uname] [-v|--verbose] [-V|--version] [-w|--wait[=retries]]
OPTION DESCRIPTION
You can get a list of the options your version of mysqladmin supports by executing mysqladmin --help
OPTIONS
-#|--debug=logfile
Output debug log. Often this is 'd:t:o,filename`
-f|--force
Don't ask for confirmation on drop database; with multiple commands, continue even if an error occurs
-?|--help
Display help and exit
--character-sets-dir=directory
Set the character set directory
-C|--compress
Use compression in server/client protocol
-h|--host=hostname
Connect to host
-p|--password[=pwd]
Password to use when connecting to server If password is not given it's asked from the tty
-P|--port=pnum
Port number to use for connection
-i|--sleep=sec
Execute commands again and again with a sleep between
-r|--relative
Show difference between current and previous values when used with -i extended-status
-E|--vertical
Print output vertically. Is similar to --relative, but prints output vertically.
-s|--silent
Silently exit if one can't connect to server
-S|--socket=file
Socket file to use for connection
-t|--timeout=sec
Timeout for connection to the mysqld server
-u|--user=uname
User for login if not current user
-v|--verbose
Write more information
-V|--version
Output version information and exit
-w|--wait
Wait and retry if connection is down
COMMAND SYNOPSIS
MySQLADMIN [create databasename ] [drop databasename] [extended-status] [flush-hosts] [flush-logs] [flush-tables] [flush-privileges] [ kill
id,id,... ] [password new-password ] [ping] [processlist] [reload] [refresh] [shutdown] [slave-start] [slave-stop] [status] [variables]
[version]
COMMANDS
Where command is a one or more of: (Commands may be shortened)
create databasename
Create a new database
drop databasename
Delete a database and all its tables
extended-status
Gives an extended status message from the server
flush-hosts
Flush all cached hosts
flush-logs
Flush all logs
flush-status
Clear status variables
flush-tables
Flush all tables
flush-threads
Flush the thread cache
flush-privileges
Reload grant tables (same as reload)
kill id,id,...
Kill mysql threads
password new-password
Change old password to new-password
ping Check if mysqld is alive
processlist
Show list of active threads in server
reload Reload grant tables
refresh
Flush all tables and close and open logfiles
shutdown
Take server down
status Gives a short status message from the server
variables
Prints variables available
version
Get version info from server
SEE ALSO isamchk(1), isamlog(1), mysql(1), mysqlaccess(1), mysqld(1), mysqld_multi(1), mysqld_safe(1), mysqldump(1), mysql_fix_privilege_tables(1),
mysqlshow(1), mysql_zap(1), perror(1), replace(1)
For more information please refer to the MySQL reference manual, which may already be installed locally and which is also available online
at http://www.mysql.com/doc/en/
BUGS
Please refer to http://bugs.mysql.com/ to report bugs.
AUTHOR
Ver 1.0, distribution 4.0.24 Michael (Monty) Widenius (monty@mysql.com), MySQL AB (http://www.mysql.com/). This software comes with no
warranty. Manual page by L. (Kill-9) Pedersen (kill-9@kill-9.dk), Mercurmedia Data Model Architect / system developer (http://www.mercur-
media.com)
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+------------------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+------------------------------------+
|Availability | SUNWmysqlr, SUNWmysqlu, SUNWmysqlt |
+--------------------+------------------------------------+
|Interface Stability | External |
+--------------------+------------------------------------+
NOTES
Source for mysql is available on http://opensolaris.org.
MySQL 4.0 19 December 2000 mysqladmin(1)