1,mysql的命令行工具如:mysql,mysqldump,mysqlshow等必须要安装mysql client的rpm包或源码包,只装mysql server rpm包是没有这些工具的
2,安装mysql client及查看与mysql所有相匹配的文件
[root@capitek1 mysql]# rpm -ivh *client*rpm
warning: MySQL-client-community-5.1.48-1.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-client-community ########################################### [100%]
[root@capitek1 mysql]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.48-community MySQL Community Server (GPL)Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 licenseType 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exit
Bye
[root@capitek1 mysql]# which mysql
/usr/bin/mysql
[root@capitek1 mysql]# cd /usr/bin
[root@capitek1 bin]# ls -l mysql*
-rwxr-xr-x 1 root root 2059156 Jun 8 14:20 mysql
-rwxr-xr-x 1 root root 4169 Jun 8 14:19 mysql_convert_table_format
-rwxr-xr-x 1 root root 3245 Jun 8 14:19 mysql_find_rows
-rwxr-xr-x 1 root root 483 Jun 8 14:19 mysql_fix_extensions
-rwxr-xr-x 1 root root 5831 Jun 8 14:19 mysql_fix_privilege_tables
-rwxr-xr-x 1 root root 14277 Jun 8 14:19 mysql_install_db
-rwxr-xr-x 1 root root 7694 Jun 8 14:19 mysql_secure_installation
-rwxr-xr-x 1 root root 16689 Jun 8 14:19 mysql_setpermission
-rwxr-xr-x 1 root root 1199504 Jun 8 14:20 mysql_tzinfo_to_sql
-rwxr-xr-x 1 root root 1282868 Jun 8 14:20 mysql_upgrade
-rwxr-xr-x 1 root root 130524 Jun 8 14:20 mysql_waitpid
-rwxr-xr-x 1 root root 3818 Jun 8 14:19 mysql_zap
-rwxr-xr-x 1 root root 110776 Jun 8 14:19 mysqlaccess
-rwxr-xr-x 1 root root 1849404 Jun 8 14:20 mysqladmin
-rwxr-xr-x 1 root root 1956824 Jun 8 14:20 mysqlbinlog
-rwxr-xr-x 1 root root 11898 Jun 8 14:19 mysqlbug
-rwxr-xr-x 1 root root 1846224 Jun 8 14:20 mysqlcheck
-rwxr-xr-x 1 root root 23173 Jun 8 14:19 mysqld_multi
-rwxr-xr-x 1 root root 16631 Jun 8 14:19 mysqld_safe
-rwxr-xr-x 1 root root 1899272 Jun 8 14:20 mysqldump
-rwxr-xr-x 1 root root 6602 Jun 8 14:19 mysqldumpslow
-rwxr-xr-x 1 root root 31715 Jun 8 14:19 mysqlhotcopy
-rwxr-xr-x 1 root root 1850020 Jun 8 14:20 mysqlimport
-rwxr-xr-x 1 root root 1844620 Jun 8 14:20 mysqlshow
-rwxr-xr-x 1 root root 1867148 Jun 8 14:20 mysqlslap
-rwxr-xr-x 1 root root 1976856 Jun 8 14:20 mysqltest
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9240380/viewspace-665658/ ,如需转载,请注明出处,否则将追究法律责任。