ConfusedOfLife
04-10-2004, 10:20 AM
Hi all
I didn't want to change my MySQL root password because I was using it only on my own system. But since yesterday that we made a sort of network and others got connected to me, I thought it's really a good idea to set up a password if I don't want them to login to my MySQL server! So, I used this command at windows shell to change my password (after login in)
SET PASSWORD FOR root@localhost=PASSWORD('my_new_password');
and it works just fine. I tested it in shell and MySqlCC and I had no problem log into my MySQL as root. But then I have the following setting in config.inc.php ( phpMyAdmin configuration file ):
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = 'root'; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables).
// The controluser is also
// used for all relational
// features (pmadb)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
I changed the last line ( $cfg['Servers'][$i]['password'] = ''; ) to:
$cfg['Servers'][$i]['password'] = 'my_new_password';
and it doesn't work. It tells me:
Your client doesn't support authentication protocol requested by server; consider upgrading MySQL client
So, what does it mean? What am I supposed to do?
I didn't want to change my MySQL root password because I was using it only on my own system. But since yesterday that we made a sort of network and others got connected to me, I thought it's really a good idea to set up a password if I don't want them to login to my MySQL server! So, I used this command at windows shell to change my password (after login in)
SET PASSWORD FOR root@localhost=PASSWORD('my_new_password');
and it works just fine. I tested it in shell and MySqlCC and I had no problem log into my MySQL as root. But then I have the following setting in config.inc.php ( phpMyAdmin configuration file ):
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = 'root'; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables).
// The controluser is also
// used for all relational
// features (pmadb)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
I changed the last line ( $cfg['Servers'][$i]['password'] = ''; ) to:
$cfg['Servers'][$i]['password'] = 'my_new_password';
and it doesn't work. It tells me:
Your client doesn't support authentication protocol requested by server; consider upgrading MySQL client
So, what does it mean? What am I supposed to do?