MySQL Forums
Forum List  »  French

Re: Restauration de base - User not found in user tbl
Posted by: Jean Molliné
Date: December 04, 2013 11:10AM

Désolé, c'est ma faute, j'ai oublié de remettre un détail de la requête d'origine après l'avoir testée.

SET @p_login = 'login-de-l-utilisateur';
SELECT
  CONCAT(
    '''',
    `User`,
    '''@''',
    `Host`,
    ''''
  )
  INTO @login
FROM mysql.user
WHERE `User` = @p_login;

SELECT *
FROM information_schema.USER_PRIVILEGES
WHERE GRANTEE = @login;

Là ça devrait mieux fonctionner

______________________________________________________________
Une question bien formulée, c'est un problème bien compris : ça représente déjà les 3/4 de la réponse ;)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Restauration de base - User not found in user tbl
1563
December 04, 2013 11:10AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.