SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Feb 2005
    Location
    central Pennsylvania *sigh*
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    prompt not responding to mysql command

    I just installed MySQL on my OSX 10.3 laptop to start learning php and sql. According to the Sitepoint book on the topic, after installing I am supposed to run the command "mysql -u root mysql" from the bin of the mysql directory to log in as root and then assign a password for root.
    when I try to do this I am presented with "-bash: mysql: command not found" same with mysqladmin.
    They are both there in the directory, I can see them but they don't run.
    what gives?

  2. #2
    SitePoint Wizard guelphdad's Avatar
    Join Date
    Oct 2003
    Location
    St. Catharines, ON Canada
    Posts
    1,708
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Before you can run that you must make sure you have the mysqld (daemon) running on your machine. I don't know the setup for OSX so you might want to check the documentation to tell you how to get it running first.

  3. #3
    SitePoint Wizard stereofrog's Avatar
    Join Date
    Apr 2004
    Location
    germany
    Posts
    4,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by gunarch
    They are both there in the directory, I can see them but they don't run.
    what gives?
    Welcome to the Unix world! If you run programs from current dir, write dotslash before:

    ./mysqld
    ./mysql

  4. #4
    SitePoint Member
    Join Date
    Feb 2005
    Location
    central Pennsylvania *sigh*
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    thanks

    thank you for your responses. they were both helpful. I knew it had to be something simple.


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
  •