SitePoint Sponsor

User Tag List

Results 1 to 9 of 9

Thread: command line?

  1. #1
    SitePoint Member Christia's Avatar
    Join Date
    May 2004
    Location
    Veurne, W.-Vl., Belgium
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question command line?

    Just got the "Database driven website" book. Looks great until now. I followed all the steps upon chapter 2 where I should connect to the MySQL server throuch the MySQL client program. I'm not very used to using the command line interface.
    My question: how do I get to access this client program. This is how it looks now:

    localhost:~ christia$ mysql -h 192.168.2.2 -u christia -p
    -bash: mysql: command not found

    Help anyone?

  2. #2
    SitePoint Member Christia's Avatar
    Join Date
    May 2004
    Location
    Veurne, W.-Vl., Belgium
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry. Forgot something: I use MacOsX

  3. #3
    SitePoint Addict frankdux's Avatar
    Join Date
    Apr 2004
    Location
    Ashland, North Carolina
    Posts
    267
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Christia
    Sorry. Forgot something: I use MacOsX
    Christia, wherever you are connecting to, is MySQL installed?

  4. #4
    SitePoint Member Christia's Avatar
    Join Date
    May 2004
    Location
    Veurne, W.-Vl., Belgium
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I installed MySQL and PHP succesfully on my local Mac and could not connect by command line. I just tried to connect to my webserver, still without succes. Here's what I got:
    [localhost:~] christia% mysql -h 195.234.184.48 -u root -p
    tcsh: mysql: Command not found.
    [localhost:~] christia%

  5. #5
    SitePoint Member Christia's Avatar
    Join Date
    May 2004
    Location
    Veurne, W.-Vl., Belgium
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Think I finally got in the right bin directory, but still no succes with anything mysql:

    [localhost:~] christia% cd /usr/local/mysql/bin
    [localhost:local/mysql/bin] christia% mysql -u root mysql
    tcsh: mysql: Command not found.
    [localhost:local/mysql/bin] christia%

  6. #6
    SitePoint Member Christia's Avatar
    Join Date
    May 2004
    Location
    Veurne, W.-Vl., Belgium
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I cant even connect to the database on my server via command line:
    [localhost:~] christia% mysql -h 195.234.184 -u root -p
    tcsh: mysql: Command not found.

  7. #7
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    have you started MySQL?
    Aaron Brazell
    Technosailor



  8. #8
    SitePoint Member Christia's Avatar
    Join Date
    May 2004
    Location
    Veurne, W.-Vl., Belgium
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I followed all the steps in the book and everything worked fine until here

  9. #9
    SitePoint Member Christia's Avatar
    Join Date
    May 2004
    Location
    Veurne, W.-Vl., Belgium
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry guys, just found the solution. As I told before, I'm not at all used to command line. I typed exactly what was in the book. I forgot to type "sudo /usr/local/mysql/bin/" and then the rest.


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
  •