Forum Moderators: coopster
$cfg['Servers'][$i]['password'] = 'apples';
I typed [localhost...] and got the following message
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server.
Error
MySQL said:
#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
I am so close thanks to your instructions I can almost taste it!
Is there a way of openeing mysl and seeing what I need to enter? I only made a note of the root password, nothing else.
Please advise
[webmasterworld.com...]
Reset the password to pre-4.1 style for each user that needs to use a pre-4.1 client program. This can be done using the SET PASSWORD statement and the
OLD_PASSWORD() function:
mysql> SET PASSWORD FOR
-> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');
please advise
UPDATE mysql.user SET Password = OLD_PASSWORD('pears') WHERE User = 'root';
FLUSH PRIVILEGES;This will update the password of all occurrences of User "root" in the table. SET_PASSWORD [dev.mysql.com]
WHAT DOWES THIS MEAN?!
What about On line 84 of config.inc.php found in the pma file .... /apache group/apache2/htdocs I put in my root password for mysql for example if my password was apples should it look like this.....
$cfg['Servers'][$i]['password'] = 'apples';
Please advise
UPDATE mysql.user SET Password = OLD_PASSWORD('pears') WHERE User = 'root';After that command runs successfully, you need to flush the privileges:FLUSH PRIVILEGES;If the first command isn't running successfully, I'm not sure why. The syntax should be fine...
This is what I tried....
I opened up mysql from Start>All Programs>Mysql>mysql command client (black background).
Then it prompts me to Enter Password: I do and it then leaves ......mysql>..... for me to begin.
I typed exactly what you suggested exept for the password....
UPDATE mysql.user SET Password = OLD_PASSWORD ('pears') WHERE User = 'root';
Then I pressed enter.
It then showed... Query OK, 2 rows affected (0.00 sec)
Rows matched: 2 Changed: 2 Warnings: 0
mysql>
So I then typed FLUCH PRIVALEGES;.....
I get ERROR 1064 (42000): You have an error in your aql suntax; check the manual that corresponds to your MySQL server version for the right syntax to use tnear 'PRIVALEGES' at line 1
What is going on!?
------------------------------------
By script I hope you mean the line 84 of config.inc.php!
How do I know my user ID?! I was not asked for it when I set up mysql, only the root password and email was asked for then...
I changed line 84 in config.inc.php so it has the new password.
How do I find my username?
At what stage shpuld I have chosen my username or is it my computers name? Ahhhhhh
I typed [localhost...] and got th same old message.
I also just went into mysql command prompt and it promted me to use my password and it only accepted my original one and not the new one! You implied it accepted my new password or have I got it wrong (Again!)
If Reload_priv aren't set for a user, you should get an "Access denied" message, not a syntax error, so if "FLUSH PRIVILEGES;" really does return a syntax error, I'd have to think the unlikely scenarion that there's something broken in your installation. And if you can't FLUSH PRIVILEGES, the new password isn't going to work.
Maybe try another FLUSH statement, like
FLUSH LOGS;
...to see if FLUSH is working for you at all.
As a minor point, I also noticed that 2 rows were affected when you updated the root password, so I'm guessing that one root user has Host as %, which you might want to delete. If you do that, however, be very careful with your WHERE clause that you don't delete both root users!
To see what users you've have, and their privileges, you might
USE mysql;
SELECT * FROM user;
To see what user you're logged in as
SELECT CURRENT_USER();
Sorry I wasn't more help.
I trid to FLUSH LOGS; and got the following..
Query OK, 0 rows affected (0.00 sec)
SELECT CUURENT_USER();
---------------------
CURRENT_USER()
---------------------
root@locahost
---------------------
1 row in set (0.01 sec)
I then exitedly went to the config.inc.php to put the user in line 83 ...it cuuently reads $cfg['Servers'][$i]['user'] = 'root'; // MySQL user
so I deleted in between ''and put 'root@localhost';
It did not work
where is the light?
FLUSH PRIVILEGES; ...spelled right? That's the only possible reason I can think of why you'd get a syntax error.