Results 1 to 3 of 3

Thread: mysql problem with new accounts

  1. #1
    Join Date
    Jul 2005
    Beans
    107

    mysql problem with new accounts

    My MySQL install seems to be borked.

    Basically, for example, if I create a database called: thedb with
    create database thedb;

    Then run:
    grant all privileges on thedb.* to user identified by 'password';

    The db and the user is formed properly. the show grants for user shows they have all privileges on that db, but when I try and log in as that user with

    mysql -u user -p

    and give my password, and no, Im not mistyping it, Ive checked that, it still refuses access to the db.
    Code:
    ERROR 1045 (28000): Access denied for user 'user'@'localhost' (using password: YES)
    The db works perfectly if I log in as root. (mysql -u root -p). All I can think of is that MySQL is not crypting the password correctly.

    Can anyone offer any suggestions?

  2. #2
    Join Date
    Jun 2006
    Location
    Switzerland
    Beans
    Hidden!
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: mysql problem with new accounts

    you need to reload the user privileges by flushing mysql.

  3. #3
    Join Date
    Mar 2006
    Location
    Saint Petersburg, FL
    Beans
    1,123

    Re: mysql problem with new accounts

    I have the same problem, but if I use this syntax:

    Code:
    mysql -u $USER --password=$PASSWORD
    I can login just fine.
    For those new to Ubuntu most of your answers can be found at help.ubuntu.com or ubuntuguide.org

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
  •