Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1882 connectés 

  FORUM HardWare.fr
  Windows & Software
  Logiciels

  [MySQL] Après cette requete, normalement, je peux ajouter un user,nan?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[MySQL] Après cette requete, normalement, je peux ajouter un user,nan?

n°1314485
Tetedeienc​h
Head Of God
Posté le 13-10-2003 à 20:26:29  profilanswer
 

GRANT ALL PRIVILEGES ON XXX.* TO 'YYY'@'localhost' WITH GRANT OPTION; FLUSH PRIVILEGES;
 
Nan ?
 
L'user en question, YYY, peut ajouter un user qui a le droit d'insert sur une table de sa BDD, nan ?
 
Par exemple :
GRANT insert ON XXX.Table1 TO 'blabla'@'localhost' IDENTIFIED BY 'hihihi';
 
Pourquoi alors j'ai l'erreur suivante :
ERROR 1044: Access denied for user: 'YYY@localhost' to database 'mysql'
 
Merci de m'aider, je suis bloqued assez gravement a cause de ca :/

mood
Publicité
Posté le 13-10-2003 à 20:26:29  profilanswer
 

n°1314500
the mystic​al
It’s a competitive world...
Posté le 13-10-2003 à 20:41:48  profilanswer
 

cette requete me fait penser à du Oracle
 
je sais pas si c la meme en MySQL, j'utilise tout le temps MyAdmin  :jap:


---------------
It's hard to say it, I hate to say it, but it's probably me...
n°1314535
Tetedeienc​h
Head Of God
Posté le 13-10-2003 à 21:34:49  profilanswer
 

C'est du MySQL, certain.

n°1314570
Tetedeienc​h
Head Of God
Posté le 13-10-2003 à 22:19:30  profilanswer
 

atchoum.

n°1314580
mrbebert
Posté le 13-10-2003 à 22:26:38  profilanswer
 

le nouveau user ('blabla'@'localhost'), il est déja déclaré dans la base ?
Je pense que tu peux donner des droits, mais uniquement sur un user qui existe déjà [:figti]


Message édité par mrbebert le 13-10-2003 à 22:26:50
n°1314584
woo
Old Man Logan
Posté le 13-10-2003 à 22:32:12  profilanswer
 

Edit : je pense que MrBebert a raison
Apparemment pour donner un "with Grant option" il faut que l'utilisateur existe deja
 
 
d'apres un utilisateur
 
http://www.mysql.com/doc/en/GRANT.html
 

Citation :

It should be noted that WITH GRANT OPTION only
allows the user to pass on privileges to users who
already exist. The automagical creation of user
records does not apply - you get an error saying
that the user with the GRANT OPTION privilege does
not have access to the 'mysql' database. This is
probably a good thing, but it needs to be documented.
 


Message édité par woo le 13-10-2003 à 22:50:12
n°1314745
Tetedeienc​h
Head Of God
Posté le 14-10-2003 à 09:07:40  profilanswer
 

Merci Woo !
 
Je le saurai pour la suite ! :)
 
Vous venez de me sauver la vie :jap:


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Windows & Software
  Logiciels

  [MySQL] Après cette requete, normalement, je peux ajouter un user,nan?

 

Sujets relatifs
Ajouter une résolution dans les param d'affichageajouter un raccourci
ajouter une application comme un service WIndowsSite perso Free et problème d'accès à la MySQL
Passage MySQL => Postgre[Résolu] Comment ajouter un routeur wifi à un réseau existant
icone à ajouter dans un menu contextuel de l'explorer...base mysql free crée mais pas accessible !!!!!!???
[authentification] verifier que le user existe (+check du password)ça marche normalement l'OpenGL dans windows 2000 ???
Plus de sujets relatifs à : [MySQL] Après cette requete, normalement, je peux ajouter un user,nan?


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR