SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: password

  1. #1
    SitePoint Addict
    Join Date
    Oct 2010
    Posts
    323
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    password

    hello, please i have just installed my sql and my sql workbench last week, so while i was learning through php with my sql essential, i got to the my sql bit,
    and i put in my password using the terminal interface as required

    mgltd$ mysql -u --password=password
    but it gave me
    -bash: mysql: command not found
    so am thinking
    is it that i have to work using the mysqlworkbench or ?am i using an old commandline?

  2. #2
    SitePoint Evangelist speda1's Avatar
    Join Date
    Jan 2002
    Posts
    550
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It sounds like you need the full path to mysql:
    /usr/bin/msyql -u --password=password (or wherever it is installed)

  3. #3
    SitePoint Addict
    Join Date
    Oct 2010
    Posts
    323
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    ok, i will check it out, and where it is installed thanks

  4. #4
    SitePoint Addict
    Join Date
    Oct 2010
    Posts
    323
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    i have tried it but it says no such file directory



    -bash: /usr/bin/msyql: No such file or directory
    Muyideen-Animashauns-MacBook-Pro:bin mgltd$ cd /usr/bin/msyql -u --password=password
    -bash: cd: /usr/bin/msyql: No such file or directory
    Muyideen-Animashauns-MacBook-Pro:bin mgltd$ cd /usr/local/mysql/bin/mysql -u --password=password
    -bash: cd: /usr/local/mysql/bin/mysql: Not a directory
    Muyideen-Animashauns-MacBook-Pro:bin mgltd$

  5. #5
    SitePoint Addict
    Join Date
    Oct 2010
    Posts
    323
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    just tried this and it worked


    ./mysql -u root --password=password


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
  •