Results 1 to 2 of 2

Thread: Cant create mysql database

  1. #1
    Join Date
    Dec 2007
    Beans
    177

    Cant create mysql database

    Hi I want to create database for cacti, I installed mysql-server on ubuntu.

    and it shows me this error:
    r-c@rclr-srv:~$ sudo mysql -uroot -p
    Enter password:
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    r-c@rclr-srv:~$ mysql -uroot -p
    Enter password:
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    r-c@rclr-srv:~$

    Can you help how to solve it?

  2. #2
    Join Date
    Sep 2008
    Location
    Tampa Bay, FL USA
    Beans
    104
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Cant create mysql database

    Quote Originally Posted by rado3105 View Post
    Hi I want to create database for cacti, I installed mysql-server on ubuntu.

    and it shows me this error:
    r-c@rclr-srv:~$ sudo mysql -uroot -p
    Enter password:
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    r-c@rclr-srv:~$ mysql -uroot -p
    Enter password:
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    r-c@rclr-srv:~$

    Can you help how to solve it?
    Try simply mysql -u root -p

    then enter the password you assigned the root user when you installed it. It being MySQL not Ubuntu.

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
  •