Visualizzazione dei risultati da 1 a 2 su 2

Discussione: Creare utente mysql

  1. #1
    Utente di HTML.it
    Registrato dal
    Sep 2012
    Messaggi
    13

    Creare utente mysql

    Ciao a tutti,recentemente ho installato sul mio computer il server mysql,fin qui tutto bene,ma quando ho cercato di creare un utente ho riscontrato seri problemi.Ecco qui la shell dei comandi con tutte le istruzioni che ho utilizzato per cercare di creare l' account:
    codice:
    /usr/local/mysql/bin/mysql -v
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 55
    Server version: 5.6.10 MySQL Community Server (GPL)
    
    Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
    
    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.
    
    Reading history-file /Users/mor/.mysql_history
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    mysql> CREATE USER 'nome'@'localhost' IDENTIFIED BY 'password';
    --------------
    CREATE USER 'nome'@'localhost' IDENTIFIED BY 'password'
    --------------
    
    ERROR 1227 (42000): Access denied;
     you need (at least one of) 
    the CREATE USER privilege(s) for this operation
    In che cosa ho sbagliato?Perché mi compare l' errore alla fine?Grazie in anticipo

  2. #2
    Entra come root:

    mysql -uroot -p
    (poi ti chiede la password e tu la scrivi)

    poi crea gli utenti che ti servono con i permessi che ti servono.
    STK/Unit: Unit Test framework per MariaDB
    http://stk.wikidot.com/stk-unit

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.