Find the answer to your Linux question:
Results 1 to 3 of 3
Dear All, I have new centos 5.5 machine then I yum install mysql mysql-server. Then I run mysql -u root. So I tried show databases just shows me one database ...
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    64

    Missing mysql database

    Dear All,
    I have new centos 5.5 machine then I yum install mysql mysql-server. Then I run mysql -u root. So I tried show databases just shows me one database that is information schema. So I can not change my root password. How go to about it? Thank you.

  2. #2
    Just Joined!
    Join Date
    Jan 2011
    Posts
    8
    Can you post the exact error message while changing the root password!. Also try to install mysql by using yum install mysql* which will install complete mysql packages.


    Alternatively after installing complete mysql packages and entering in to mysql terminal type the following command

    grant all privileges on *.* to 'root'@'%' identified by 'whatever password you like' with grant option;

  3. #3
    Just Joined!
    Join Date
    Jul 2010
    Posts
    64
    Dear Indiver,
    I have solved the problem by running this command usr/bin/mysql_secure_installation.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...