I created new user name with password inside Privileges in Phpmyadmin. Then i removed "root" with blank password inside Privileges. After removing "root", the following Error was came out.
I think Database should have "root". Why shouldn't ? How could i sort out for that error?
Please help me ! Many Thanks !
" Error
MySQL said: Documentation #1045 - Access denied for user 'root'@'localhost' (using password: NO) phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server. "
I'm using xampp. I can't find config.inc.php. Found out this ->config.default.php change the password like following : $cfg['Servers'][$i]['password'] = 'apple'; But the error still showing.
----------
also tried like this. UPDATE mysql.user ->SET Password=PASSWORD("*******") ->WHERE User="root";
xampp/mysql/bin>mysql>UPDATE mysql.user SET Password=PASSWORD("apple") Where User="root";
Inside config.inc.php, I put $cfg['Servers'][$i]['password']= 'MyPassword'; also can't login from CMD. If put the password, the error has shown like this : ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
if no password, the error has shown: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
I can login from CMD with >mysql -u mydatabase -p >mypassword
then i wrote >SELECT Host,User From mysql.user;
I saw 2 Users : mydatabase & pma. I think actually it should be 3 Users: mydatabase, pma & root. Because i removed root. There's just only 2 Users & having Error 1045.