Results 1 to 4 of 4

Thread: MySql Login Problem in Ubuntu 14.04 LTS Platform

  1. #1
    Join Date
    Sep 2014
    Beans
    1

    MySql Login Problem in Ubuntu 14.04 LTS Platform

    I have installed mysql: installed successfully

    Then I have run mysql_install_db: successful

    Then
    skm@skmpc:~$ sudo /etc/init.d/mysql start
    * Starting MySQL database server mysqld [ OK ]
    skm@skmpc:~$


    Then
    skm@skmpc:~$ mysql -u root
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

    In the last step I am facing problem, and can't login to mysql.

    What to do?

  2. #2
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: MySql Login Problem in Ubuntu 14.04 LTS Platform

    Moved to General Help.

  3. #3
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    5,571
    Distro
    Xubuntu 14.10 Utopic Unicorn

    Re: MySql Login Problem in Ubuntu 14.04 LTS Platform

    You normally have to use mysql -u root -p to get it to prompt for the password. I don't remember now, but I presume that you were asked for a password during the install?

  4. #4
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: MySql Login Problem in Ubuntu 14.04 LTS Platform

    The root account is empty by default. Just hit enter and you should be able to log in. That said, it's better to set up a root password:
    Code:
    sudo mysql_secure_installation

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
  •