[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

new debian user question about mysql on debian



Hello
   I've install mysql on a etch box e I've noticed a debian-sys-maint user.
   Shouldnt this user  have grant privileges?
   Aparently it does:


mysql> select Grant_priv  from user where User="debian-sys-maint";
+------------+
| Grant_priv |
+------------+
| Y          |
+------------+
1 row in set (0.00 sec)




But when i do the following with that user(after login with the right credentials):

webserver:~/vhcs-2.4.7.1# mysql -u debian-sys-maint -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 53
Server version: 5.0.32-Debian_7etch1-log Debian etch distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> grant all on *.* to 'vhcs2'@'localhost' identified by 'teste' with grant option; ERROR 1045 (28000): Access denied for user 'debian-sys-maint'@'localhost' (using password: YES) mysql> grant all on vhcs2.* to 'vhcs2'@'localhost' identified by 'teste' with grant option; ERROR 1044 (42000): Access denied for user 'debian-sys-maint'@'localhost' to database 'vhcs2'


Thanks in advance




Reply to: