Il comando seguente fornisce tutti i privilegi in tutti i database per l'utente "admin". Ma non consente a "admin" di creare un database.
GRANT ALL ON * . * TO 'admin'@'localhost';
Come posso fornire l'accesso a "admin" per creare un database?
Mentre provo a creare un database, visualizzo il seguente errore:
ERRORE 1044 (42000): Accesso negato per l'utente 'admin' @ 'localhost' al database 'newdb'
GRANT?
flush privileges;come root?
GRANT ALL ON *.* TO 'admin'@'localhost';? Nel tuo esempio dici che hai eseguito:,GRANT ALL ON * . * TO 'admin'@'hostname';mahostnameè un host distinto dilocalhost.