PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > 'Access denied for user 'root'
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
'Access denied for user 'root'

Réponse
 
LinkBack Outils de la discussion
Vieux 30/12/2007, 22h36   #1
milan_sanremo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 'Access denied for user 'root'

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?
  Réponse avec citation
Vieux 30/12/2007, 22h48   #2
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 'Access denied for user 'root'

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
==================

  Réponse avec citation
Vieux 31/12/2007, 02h55   #3
Gordon Burditt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 'Access denied for user 'root'

>> 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.

  Réponse avec citation
Vieux 04/01/2008, 18h32   #4
milan_sanremo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 'Access denied for user 'root'

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.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h25.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,24274 seconds with 12 queries