SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy newbie questions : how to even start MySQL

    im a total newbie...

    ok, so Im following Lenz's book and in chapter 2 it says that if i download the ROR package and unzips it, in one easy setup the Ruby interpreter, MySQL database server, Apache serve, and ROR will be installed.

    in chapter 4 he says to enter mysql -u root at the command prompt. what command prompt!? the only one i know is the Ruby Console Window

    C:\Instant Rails\rails_apps

    and this won't start MySql. PLEASE HELP!

  2. #2
    SitePoint Addict
    Join Date
    Jan 2006
    Posts
    268
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That just means the windows command window..

    (Start -> Run -> cmd ) should take you to
    Code:
    C:\>
    So you just need to type

    Code:
    mysql -u root
    Where you would normally type any other kind of command.
    If you give someone a program,
    you will frustrate them for a day;
    if you teach them how to program,
    you will frustrate them for a lifetime.

  3. #3
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the quick reply... i've tried that, and i get:

    'mysql' is not recognized as an internal or external command,
    operable program or batch file.

    does this mean that mySql is not installed (even tho the Instant Rails Manager says MySql is started -- green light)?

  4. #4
    SitePoint Addict
    Join Date
    Jan 2006
    Posts
    268
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unfortuanly I don't think I can help you, I've never used instant Rails before (and am not running windows, so I can't download it to play around with it..) I know there are a number of people on this board who have used to before, so hopefully one of them chimes in shortly.

    Best of Luck
    If you give someone a program,
    you will frustrate them for a day;
    if you teach them how to program,
    you will frustrate them for a lifetime.

  5. #5
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    strange! i reinstalled the ROR package that Lenz mentions (v.1.3a) and it worked at the Ruby Console Window. weird!

    thanks for trying to help! i like your quote too :P

  6. #6
    SitePoint Enthusiast crag's Avatar
    Join Date
    Apr 2003
    Location
    Ft. Lauderdale, FL
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks like MySQl is not installed. You can do it yourself (and it's not that hard). Get it at http://dev.mysql.com/downloads/mysql/5.0.html#downloads

  7. #7
    SitePoint Enthusiast
    Join Date
    Nov 2006
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by mksubherw View Post
    strange! i reinstalled the ROR package that Lenz mentions (v.1.3a) and it worked at the Ruby Console Window. weird!

    thanks for trying to help! i like your quote too :P
    Did you have Instant Rails running when you tried to access MySQL? InstantRails needs to be running for MySQL to work (assuming you don't have MySQL installed separately). I think you'll need to access MySQL through a command prompt opened with InstantRails, too, because InstantRails sets all the environment variables when opening a prompt. Just doing Start->Run->cmd probably won't work.
    localhost80.com 250+ resources for web developers.

  8. #8
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im sorry...i guess my message wasn't clear. after reinstalling the ROR package it worked perfectly! thanks for giving a helping hand tho :]


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
  •