PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > mailing.database.mysql > Access denied for user
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Access denied for user

Réponse
 
LinkBack Outils de la discussion
Vieux 13/04/2006, 22h16   #1
Ray Muforosky
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Access denied for user

Hello everyone.

I created a new user with the grant command and yet, I can't login into
the database I must mention that the user was created but all the
privileges are set to 'N'.

This is what i get trying to login with the new user I created.

"ERROR 1045 (28000): Access denied for user 'nsac'@'localhost' (using
password: YES)"

Any is appreciated
Ray

  Réponse avec citation
Vieux 13/04/2006, 22h33   #2
Bill Karwin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Access denied for user

Ray Muforosky wrote:
> I created a new user with the grant command and yet, I can't login into
> the database I must mention that the user was created but all the
> privileges are set to 'N'.


If you granted privileges to the user for one database, the user's row
in the mysql.user table will have all 'N' values, but there will also be
a row for that user for a particular database in the mysql.db table,
with 'Y' values for privileges you chose to grant to that user.

In other words, this command:

GRANT ALL ON *.* TO 'nsac'@'localhost' IDENTIFIED BY 'password';

results in a row in the mysql.user table with 'Y' values.
However, a different command:

GRANT ALL ON mydatabase.* TO 'nsac'@'localhost' IDENTIFIED BY 'password';

results in a row in the mysql.user table with 'N' values, and a row in
the mysql.db table with 'Y' values. In this case, the user has 'N'
privileges by default, except for having 'Y' privileges on the one
database "mydatabase".

Regards,
Bill K.
  Réponse avec citation
Vieux 13/04/2006, 22h33   #3
Bill Karwin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Access denied for user

Ray Muforosky wrote:
> I created a new user with the grant command and yet, I can't login into
> the database I must mention that the user was created but all the
> privileges are set to 'N'.


If you granted privileges to the user for one database, the user's row
in the mysql.user table will have all 'N' values, but there will also be
a row for that user for a particular database in the mysql.db table,
with 'Y' values for privileges you chose to grant to that user.

In other words, this command:

GRANT ALL ON *.* TO 'nsac'@'localhost' IDENTIFIED BY 'password';

results in a row in the mysql.user table with 'Y' values.
However, a different command:

GRANT ALL ON mydatabase.* TO 'nsac'@'localhost' IDENTIFIED BY 'password';

results in a row in the mysql.user table with 'N' values, and a row in
the mysql.db table with 'Y' values. In this case, the user has 'N'
privileges by default, except for having 'Y' privileges on the one
database "mydatabase".

Regards,
Bill K.
  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 07h11.


É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,11055 seconds with 11 queries