'Access denied for user 'root'

  • Follow


I've just installed mysql5 under Solaris 10.  I installed it as root.
Every thins seemed to go well, and then I attempted to execute:

/opt/csw/mysql5/bin/mysqladmin -u root password 'mysqls1rgu3'

and I receive the error:

/opt/csw/mysql5/bin/mysqladmin: connect to server at 'localhost'
failed
error: 'Access denied for user 'root'@'localhost' (using password:
NO)'

I've verified:

# ps -ef|grep mysql
    root   261     1   0 16:11:39 ?           0:00 /bin/sh /opt/csw/
mysql5/bin/mysqld_safe --pid-file=/opt/csw/mysql5/var/mysql.pi
   mysql   421   261   0 16:11:43 ?           0:00 /opt/csw/mysql5/
libexec/mysqld --basedir=/opt/csw/mysql5 --datadir=/opt/csw/mys

Can anyone offer a suggestion?
0
Reply milan_sanremo 12/30/2007 10:36:44 PM

milan_sanremo wrote:
> I've just installed mysql5 under Solaris 10.  I installed it as root.
> Every thins seemed to go well, and then I attempted to execute:
> 
> /opt/csw/mysql5/bin/mysqladmin -u root password 'mysqls1rgu3'
> 
> and I receive the error:
> 
> /opt/csw/mysql5/bin/mysqladmin: connect to server at 'localhost'
> failed
> error: 'Access denied for user 'root'@'localhost' (using password:
> NO)'
> 
> I've verified:
> 
> # ps -ef|grep mysql
>     root   261     1   0 16:11:39 ?           0:00 /bin/sh /opt/csw/
> mysql5/bin/mysqld_safe --pid-file=/opt/csw/mysql5/var/mysql.pi
>    mysql   421   261   0 16:11:43 ?           0:00 /opt/csw/mysql5/
> libexec/mysqld --basedir=/opt/csw/mysql5 --datadir=/opt/csw/mys
> 
> Can anyone offer a suggestion?
> 

It's -p or --password, not just password.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

0
Reply Jerry 12/30/2007 10:48:29 PM


>> I've just installed mysql5 under Solaris 10.  I installed it as root.
>> Every thins seemed to go well, and then I attempted to execute:
>> 
>> /opt/csw/mysql5/bin/mysqladmin -u root password 'mysqls1rgu3'
>> 
>> and I receive the error:
>> 
>> /opt/csw/mysql5/bin/mysqladmin: connect to server at 'localhost'
>> failed
>> error: 'Access denied for user 'root'@'localhost' (using password:
>> NO)'
>> 
>> I've verified:
>> 
>> # ps -ef|grep mysql
>>     root   261     1   0 16:11:39 ?           0:00 /bin/sh /opt/csw/
>> mysql5/bin/mysqld_safe --pid-file=/opt/csw/mysql5/var/mysql.pi
>>    mysql   421   261   0 16:11:43 ?           0:00 /opt/csw/mysql5/
>> libexec/mysqld --basedir=/opt/csw/mysql5 --datadir=/opt/csw/mys
>> 
>> Can anyone offer a suggestion?
>> 
>
>It's -p or --password, not just password.

It's -p or --password for the *OLD* password, and just password for
the *NEW* password.  If root already has a password, you need both.

0
Reply gordonb 12/31/2007 2:55:10 AM

On Dec 30 2007, 9:55 pm, gordonb.ki...@burditt.org (Gordon Burditt)
wrote:
> >> I've just installed mysql5 under Solaris 10.  I installed it as root.
> >> Every thins seemed to go well, and then I attempted to execute:
>
> >> /opt/csw/mysql5/bin/mysqladmin -u root password 'mysqls1rgu3'
>
> >> and I receive the error:
>
> >> /opt/csw/mysql5/bin/mysqladmin: connect to server at 'localhost'
> >> failed
> >> error: 'Access denied for user 'root'@'localhost' (using password:
> >> NO)'
>
> >> I've verified:
>
> >> # ps -ef|grep mysql
> >>     root   261     1   0 16:11:39 ?           0:00 /bin/sh /opt/csw/
> >> mysql5/bin/mysqld_safe --pid-file=/opt/csw/mysql5/var/mysql.pi
> >>    mysql   421   261   0 16:11:43 ?           0:00 /opt/csw/mysql5/
> >> libexec/mysqld --basedir=/opt/csw/mysql5 --datadir=/opt/csw/mys
>
> >> Can anyone offer a suggestion?
>
> >It's -p or --password, not just password.
>
> It's -p or --password for the *OLD* password, and just password for
> the *NEW* password.  If root already has a password, you need both.

Thanks.  It works.
0
Reply milan_sanremo 1/4/2008 6:32:42 PM

3 Replies
466 Views

(page loaded in 0.048 seconds)

Similiar Articles:













7/23/2012 11:06:33 AM


Reply: