MySQL Forums
Forum List  »  French

Re: Restauration de base - User not found in user tbl
Posted by: Pascal MORVAN
Date: December 04, 2013 11:03AM

Bon ben je suis pas bien doué sur cette affaire!

J'ai tapé :
SET @p_login = 'admforum';
SELECT
CONCAT(
'''',
`User`,
'''@''',
`Host`,
''''
)
INTO @login
FROM mysql.user
WHERE `User` = 'root';

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

Et j'ai eu droit à un très flashy :
Requête SQL:

SELECT CONCAT( '''', `User` , '''@''', `Host` , '''' )
INTO @login
FROM mysql.user
WHERE `User` = 'root';

MySQL a répondu:
#1172 - Result consisted of more than one row

Il y a un truc que j'ai pas compris?

Options: ReplyQuote


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


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.