Find the answer to your Linux question:
Results 1 to 5 of 5
Hi all, Currently I'm using RHEL 5.3 in my server. Last time I install MySQl Server and it working fine. Then i facing a problem with my server and i ...
  1. #1
    Just Joined!
    Join Date
    Apr 2010
    Posts
    7

    Question [SOLVED] MySQL and RHEL 5.3

    Hi all,

    Currently I'm using RHEL 5.3 in my server. Last time I install MySQl Server and it working fine.

    Then i facing a problem with my server and i reinstall back RHEL. But i didnt use MySql package inside the CD to install MySQL.

    So i install MySQl separately. I download from MySql website.

    My problem is, i success install MySql in my server. The service also running. But when i type.

    mysql -u root password

    it said, command not found.

    I dont understand why.

    Can somebody give me an idea?

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695

  3. #3
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    Either you have only installed the server RPM (the mysql client is in the client package),
    or the mysql client is not in $PATH

    To check that, do a
    Code:
    rpm -qa|grep -i mysql
    and look for the name of that client package
    Code:
    rpm -qilv <CLIENTPACKAGENAME> |grep bin
    You must always face the curtain with a bow.

  4. #4
    Linux User cheesecake42's Avatar
    Join Date
    Jan 2007
    Location
    Panama City, FL
    Posts
    364
    also, when including the password in the mysql command, you want it to look like this (i'm going to use "test" as the password):

    Code:
    mysql -u root -ptest

  5. #5
    Just Joined!
    Join Date
    Apr 2010
    Posts
    7

    Thumbs up

    Thanks to everyone who has replied,

    It my fault. I suppose install the client. But i didn't.

    After i installed it, then it work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...