Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install MySQL 5.1.69 server community onto a RHEL 6 system (although it's outdated; I want to replicate an issue reported on this version).

I installed a MySQL 5.1 PRM, downloaded from MySQL archives folder:

# which mysql
/usr/bin/which: no mysql in (/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/myusername/bin)

# mysql -u root -p
-bash: mysql: command not found

# ls /usr/bin/my*
/usr/bin/myisamchk                   /usr/bin/mysql_fix_extensions
/usr/bin/myisam_ftdump               /usr/bin/mysql_fix_privilege_tables
/usr/bin/myisamlog                   /usr/bin/mysqlhotcopy
/usr/bin/myisampack                  /usr/bin/mysql_install_db
/usr/bin/my_print_defaults           /usr/bin/mysql_secure_installation
/usr/bin/mysqlbug                    /usr/bin/mysql_setpermission
/usr/bin/mysql_config                /usr/bin/mysqltest
/usr/bin/mysql_convert_table_format  /usr/bin/mysql_tzinfo_to_sql
/usr/bin/mysqld_multi                /usr/bin/mysql_upgrade
/usr/bin/mysqld_safe                 /usr/bin/mysql_zap

Why is there no mysql program?

share|improve this question
up vote 15 down vote accepted

There are 2 metapackages: mysql-server and mysql-client. Looks like you have only the server pakage installed.

That is at least how it works in Debian.

Try installing mysql-client

share|improve this answer
    
that's weird I have virtual machine here installed mysql-server with no having issue with -bash: mysql: command not found – Edmhar Aug 24 at 9:37
    
@EAL Then this VM supposedly has both mysql-server and mysql-client installed. That was easy. – glglgl Aug 24 at 12:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.