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 > password question
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
password question

Réponse
 
LinkBack Outils de la discussion
Vieux 22/12/2007, 01h23   #1
AMP
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut password question

I'm very confused. What prevents anyone from running this without
needing to know the original password:

C:\> C:\mysql\bin\mysqld-nt --init-file=C:\mysql-init.txt

where mysql-init.txt:

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPassword');

This is from the documents.http://dev.mysql.com/doc/refman/5.0/en/
resetting-permissions.html
what am i missing?
I actually tried it and it worked.

Thanks
Mike
  Réponse avec citation
Vieux 22/12/2007, 08h40   #2
Kees Nuyt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: password question

On Fri, 21 Dec 2007 17:23:50 -0800 (PST), AMP
<ampeloso@gmail.com> wrote:

>I'm very confused. What prevents anyone from running this without
>needing to know the original password:
>
>C:\> C:\mysql\bin\mysqld-nt --init-file=C:\mysql-init.txt
>
> where mysql-init.txt:
>
>SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPassword');


The only thing people need is a login on that machine.
That's why there are firewalls, login passwords,
restrictions on starting tasks from a webserver, etc.
etc..

>This is from the documents.http://dev.mysql.com/doc/refman/5.0/en/
>resetting-permissions.html
>what am i missing?


You aren't missing anything.
It's something one may sometimes need in the course of
maintaining a database server.

>I actually tried it and it worked.


Perhaps you can Chrisdud911 in the thread 'Resetting
Mysql Command Line root password', Message-ID:
<3ef718eb-0006-404e-9ed7-18b5b21d0f6f@e67g2000hsc.googlegroups.com>



>Thanks
>Mike

--
( Kees
)
c[_] Son, a woman is like a beer. They smell good, they look
good, you'd step over your own mother just to get one!
But you can't stop at one. You wanna drink another
woman! (Homer Simpson) (#457)
  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 21h34.


É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,09358 seconds with 10 queries