mysql 4.1.15-1 SUPER privs
Posted: Fri Mar 03, 2006 9:57 am
Having recently upgraded to mysql-server-4.1.15-1.rh90.art, I had a call from a user who was having problems with a PHP script that would not connect to MySQL.
It was the dreaded old/new password style type problem.
Only setting old_passwords=1 in my.conf did not cure it -- I had to run a query to manually update the password for that user to be in the old style.
I assume this was because the database was already created, with the new password type? And by setting old_password=1 I won't have to worry about this for future databases?
But here's what's really worrying me: I logged in as admin in mysql and did SHOW FULL PROCESSLIST; and was horrified to apparently see only admin's processes. At least that's what it looked like -- in the past when I did this I would see a whole load of db user processes and there would be a reasonable number of them, especially when I ran a MySQL-powered site at the same time. But there's pretty much nothing now.
I checked the MySQL manual, and found it said this:
SHOW PROCESSLIST shows you which threads are running. You can also get this information using the mysqladmin processlist command. If you have the SUPER privilege, you can see all threads. Otherwise, you can see only your own threads (that is, threads associated with the MySQL account that you are using). See Section 13.5.5.3, “KILL Syntax”. If you do not use the FULL keyword, only the first 100 characters of each statement are shown in the Info field.
So I did a SHOW PRIVELIGES and checked, and it seems to indicate I have SUPER prives as admin (as should be the case)
Super | Server Admin | To use KILL thread, SET GLOBAL, CHANGE MASTER, etc.
Am I worred about nothiing? All MySQL sites seem to be working perfectly. Could this lack of processes be down to having query caching enabled or something?
Faris.
It was the dreaded old/new password style type problem.
Only setting old_passwords=1 in my.conf did not cure it -- I had to run a query to manually update the password for that user to be in the old style.
I assume this was because the database was already created, with the new password type? And by setting old_password=1 I won't have to worry about this for future databases?
But here's what's really worrying me: I logged in as admin in mysql and did SHOW FULL PROCESSLIST; and was horrified to apparently see only admin's processes. At least that's what it looked like -- in the past when I did this I would see a whole load of db user processes and there would be a reasonable number of them, especially when I ran a MySQL-powered site at the same time. But there's pretty much nothing now.
I checked the MySQL manual, and found it said this:
SHOW PROCESSLIST shows you which threads are running. You can also get this information using the mysqladmin processlist command. If you have the SUPER privilege, you can see all threads. Otherwise, you can see only your own threads (that is, threads associated with the MySQL account that you are using). See Section 13.5.5.3, “KILL Syntax”. If you do not use the FULL keyword, only the first 100 characters of each statement are shown in the Info field.
So I did a SHOW PRIVELIGES and checked, and it seems to indicate I have SUPER prives as admin (as should be the case)
Super | Server Admin | To use KILL thread, SET GLOBAL, CHANGE MASTER, etc.
Am I worred about nothiing? All MySQL sites seem to be working perfectly. Could this lack of processes be down to having query caching enabled or something?
Faris.