Hi,

The two passwords are totally separate. The MySQL root users password
controls access only to the MySQL databases and tables. sudo password
will allow you access to bash scripts/programs etc.

You could test this by logging in as a user other than root having run
mysql client as a sudo command. You will find you have no further access
than the user you have logged in as.

The manual has a good section on permissions.

Regards 


David Logan
Database Administrator
HP Managed Services
148 Frome Street,
Adelaide 5000
Australia

+61 8 8408 4273 - Work
+61 417 268 665 - Mobile
+61 8 8408 4259 - Fax


-----Original Message-----
From: untz [mailto:[EMAIL PROTECTED] 
Sent: Friday, 2 December 2005 10:09 AM
To: mysql@lists.mysql.com
Subject: Re: Help resetting password on MySQL 5

Ok, this worked... My question is that is the password for 'root'  
supposed to
match the sudo password used to grant super priveleges to the bash user?

I purposely wanted this different and changed my root password on  
mysqladmin
to something else... Is it supposed to be the same as the root's  
system password?

Kindest regards,

Unnsse

On Dec 1, 2005, at 2:52 PM, sean c peters wrote:

> First, you need to supply your existing password to mysqladmin so  
> that it
> knows that you areauthorized to perform the admin action.  
> Otherwise, anyone
> could change passwords, without knowing the original password.
>
> try this:
> mysqladmin -u <user> -p <existing password> password <new_password>
>
> That works for me on mysql 4.1.3 on solaris, should be the same for  
> you.
>
>
>
> On Thursday 01 December 2005 16:34, untz wrote:
>> Hello again,
>>
>> I am using OS X Tiger and MySQL 5...
>>
>> Set a password, yesterday, and wish to change it....
>>
>> How would I go about doing this?
>>
>> I tried do this:
>>
>> untz$ mysqladmin -u root password dolphin
>> mysqladmin: connect to server at 'localhost' failed
>> error: 'Access denied for user 'root'@'localhost' (using password:  
>> NO)'
>>
>> dolphin was supposed to be the new password....
>>
>> If my user name is untz, am I supposed to do this:
>>
>> untz$ mysqladmin -u untz passwordThatIWantSet
>>
>> Will this set passwordThatIWantSet to the user untz?
>>
>> What am I doing wrong?
>>
>> Any suggestions, tips, and hints will be mostly appreciated.....
>>
>> Kindest regards,
>>
>> Unnsse
>
> -- 
> Sean Peters
> Senior Programmer, WIREData Inc.
> [EMAIL PROTECTED]
>
> "The software required Windows 2000 or better, so i Downloaded Linux"
>


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to