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 > cmd client forcing password as argument?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
cmd client forcing password as argument?

Réponse
 
LinkBack Outils de la discussion
Vieux 04/04/2008, 18h08   #1
ybakos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut cmd client forcing password as argument?

Hi,

I've encountered a strange problem.

Mysql user root can only log in to the server via the command line
client using the -p option immediately followed by the password. In
other words:

mysql -u root -p FAILS
mysql -u root -pMyPassword SUCCEEDS

Just wondering if anyone has encountered this before.

Some more details:

- logging in from localhost
- in mysql.user, there are two entries for user root
-- root@localhost identified by password
-- root@another.domain (no password)

I do understand that mysql uses the most specific hostname in
authenticating users... but it appears that maybe the password takes
even higher precedence?

I'm of course going to try logging in after removing the root user
without a password (yes, dumb to have that passwordless root anyway)
but has anyone encountered something similar? Or am I right in mysql's
order of authentication logic?

Cheers,
yong

  Réponse avec citation
Vieux 05/04/2008, 09h21   #2
Luuk
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: cmd client forcing password as argument?

ybakos schreef:
> Hi,
>
> I've encountered a strange problem.
>
> Mysql user root can only log in to the server via the command line
> client using the -p option immediately followed by the password. In
> other words:
>
> mysql -u root -p FAILS
> mysql -u root -pMyPassword SUCCEEDS
>
> Just wondering if anyone has encountered this before.
>
> Some more details:
>
> - logging in from localhost
> - in mysql.user, there are two entries for user root
> -- root@localhost identified by password
> -- root@another.domain (no password)
>
> I do understand that mysql uses the most specific hostname in
> authenticating users... but it appears that maybe the password takes
> even higher precedence?
>
> I'm of course going to try logging in after removing the root user
> without a password (yes, dumb to have that passwordless root anyway)
> but has anyone encountered something similar? Or am I right in mysql's
> order of authentication logic?
>
> Cheers,
> yong
>


maybe its this?:
http://dev.mysql.com/doc/refman/5.1/...-too-long.html


--
Luuk
  Réponse avec citation
Vieux 07/04/2008, 16h39   #3
ybakos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: cmd client forcing password as argument?

Thanks Luuk. I agree this might be it, since the pwd is 9 chars long.
I can't verify right now due to some dependencies, but will post a
follow up to this thread when I've verified this.



On Apr 5, 2:21am, Luuk <L...@invalid.lan> wrote:
>
> maybe its this?:http://dev.mysql.com/doc/refman/5.1/...-too-long.html
>



  Réponse avec citation
Vieux 07/04/2008, 19h44   #4
Gary L. Burnore
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: cmd client forcing password as argument?

On Mon, 7 Apr 2008 08:39:23 -0700 (PDT), ybakos
<humanoriented@gmail.com> wrote:

>Thanks Luuk. I agree this might be it, since the pwd is 9 chars long.
>I can't verify right now due to some dependencies, but will post a
>follow up to this thread when I've verified this.


Neat. When you do could you please not top post?
>
>
>
>On Apr 5, 2:21am, Luuk <L...@invalid.lan> wrote:
>>
>> maybe its this?:http://dev.mysql.com/doc/refman/5.1/...-too-long.html
>>


Strange. We have several passwords > 9 char on Solaris, famous for
only paying attention to the first 8.


--
gburnore at DataBasix dot Com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
Official .sig, Accept no substitutes. | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ 0 1 7 2 3 / Ý³Þ 3 7 4 9 3 0 Û³
Black Helicopter Repair Services, Ltd.| Official Proof of Purchase
================================================== =========================
  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 22h32.


É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,09602 seconds with 12 queries