-
mysql default login?
I've been fooling with mysql's user privilege system today, and I was wondering if there is a way to change the default user that mysql uses when someone just runs mysql, i.e.:
c:\mysql\bin\mysql
when I run mysql this way, there is no prompt for a password, it just dumps me straight to the mysql> prompt. The thing is that it seems to be using the root account, since I can do just about anything, including edit the mysql.user table. Any way to change this so that it prompts for a user name and password, or am I just being paranoid?
-
Also, here's something wierd. I have a user "webuser" that is used for web connections. I have explicitly revoked drop and create privileges from webuser (among others):
revoke drop on *.* from webuser;
revoke create on *.* from webuser;
and yet I can create and drop databases at will when I log in as webuser. Why don't the privileges apply?
-
>>moved this discussion to the php development forum, since I use mysql in conjunction with php.
http://www.sitepointforums.com/showt...threadid=47799