#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    Atlanta
    Posts
    3
    Rep Power
    0

    ok mysql, old & new.


    How do I fix this error? mysqld is running, but can't use mysql.

    ~> mysql
    bash: mysql: command not found

    ideally I would like to just remove current mysql and start from scratch to learn the whole process. If anyone can point me to the location I can learn how to do that on SuSE, that would be very helpful.

    Thank you.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    Germany
    Posts
    3
    Rep Power
    0
    hi,

    your problem is that the executable called 'mysql' is not known by the shell called 'bash'.
    add the Path to the mysql-binary to your PATH-variable in your User-environment and you will never see this errormessage again.

    how to find the path to the binary?
    when mysql is installed with RPM, you can ask the RedhatPackageManager where he has installed these files:
    $rpm -qa | grep -i mysql #to get name of mysql-package
    $rpm -ql mysql-package-name | grep bin/mysql

    or try:
    $whereis mysql
    $find /usr -name mysql -exec ll {} \;

    to add the Path to your PATH-variable, do :
    $export PATH=$PATH:/path/to/mysql
    and add this to your /etc/profile or ~/.profile

    to deinstall mysql:
    $rpm -qa | grep -i mysql #to get name of mysql-package installed
    $rpm -e package-name #to uninstall mysql package

    cheers.
    ike

IMN logo majestic logo threadwatch logo seochat tools logo