SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict heropage's Avatar
    Join Date
    May 2004
    Location
    canada
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to use mysql on command line

    I go to
    /usr/local/mysql/bin/
    run
    #mysql
    mysql: Command not found.
    I run
    #./ mysql
    ./: Permission denied.

    what the hell? I login as root.
    When I use ls -l, here is the info
    -rwxr-xr-x 1 root mysql 197642 Feb 20 2004 mysql

    I think I should have the permission to run this.
    Any idea?

  2. #2
    SitePoint Columnist
    Join Date
    Nov 2003
    Location
    Ohio
    Posts
    411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Make sure the MySQL Client is installed - and you will be able to run mysql from anywhere on the system.
    Freelance System Administrator, Researcher, Writer
    Practical Applications
    Open Sourcery "SitePoint's Open Source Blog"

  3. #3
    Hi there! Owen's Avatar
    Join Date
    Jan 2000
    Location
    CA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by heropage
    I go to
    /usr/local/mysql/bin/
    run
    #mysql
    mysql: Command not found.
    I run
    #./ mysql
    ./: Permission denied.
    No space between ./ and mysql. So run "./mysql" or /usr/local/mysql/bin/mysql

    Owen


Bookmarks

Posting Permissions

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