Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 13
  1. #1
    Utente di HTML.it L'avatar di ivy_76
    Registrato dal
    Dec 2004
    Messaggi
    1,822

    MySQL: impostare una password

    Ciao

    Ho aperto http:\\localhost\phpmyadmin. Nella tabella MYSQL ho creato un utente ivano con password ivano. Ho messo si a qualsiasi permesso

    Ho aperto il file config.inc.php e l'ho modificato cosi:


    $cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
    $cfg['Servers'][$i]['port'] = '3306'; // MySQL port - leave blank for default port
    $cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
    $cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
    $cfg['Servers'][$i]['extension'] = 'mysql'; // The php MySQL extension to use ('mysql' or 'mysqli')
    $cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
    // (requires PHP >= 4.3.0)
    $cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
    // (this user must have read-only
    $cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
    // and "mysql/db" tables).
    // The controluser is also
    // used for all relational
    // features (pmadb)
    $cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
    $cfg['Servers'][$i]['user'] = 'ivano'; // MySQL user
    $cfg['Servers'][$i]['password'] = 'ivano'; // MySQL password



    Apro nuovamente http:\\localhost\phpmyadmin e NON entro ... ricevo questo errore :

    Messaggio di MySQL:

    #1045 - Access denied for user: 'ivano@localhost' (Using password: YES)



    Perché fa cosi ??
    TORTA DI RISO .. F I N I T A !!

    Da M.C.S.A. a impiegato pubblico :-(

  2. #2
    FLUSH PRIVILEGES;

    MySql deve ricaricare i privilegi degli utenti

    forse risolvi
    aquatimer2000

  3. #3
    Utente di HTML.it L'avatar di ivy_76
    Registrato dal
    Dec 2004
    Messaggi
    1,822
    come si fa a farlo ?
    TORTA DI RISO .. F I N I T A !!

    Da M.C.S.A. a impiegato pubblico :-(

  4. #4
    utilizzi PhpMyAdmin?

    entri con root... inserisci il nuovo utente e la sua pwd... vai su SQL e scrivi

    FLUSH PRIVILEGES;

    ed esegui la query..

    dovrebbe andare

    Bye
    aquatimer2000

  5. #5
    Utente di HTML.it L'avatar di ivy_76
    Registrato dal
    Dec 2004
    Messaggi
    1,822
    Niente da fare. Ecco cosa ho fatto:

    1. Nel file config.inc.ini ho messo utente 'root' e password '' (vuota)
    2. Ho aperto phpmyadmin e sono entrato. Ho fatto girare la query.
    3. Ho chiuso il browser
    4. Nel file config.inc.ini ho messo utente 'ivano' e password 'ivano'
    5 Ho aperto phpmyadmin e ho sempre lo stesso errore.

    Dove sbaglio °?
    TORTA DI RISO .. F I N I T A !!

    Da M.C.S.A. a impiegato pubblico :-(

  6. #6
    verifica il client MySql nel phpinfo();

    che versione è?
    aquatimer2000

  7. #7
    Utente di HTML.it L'avatar di ivy_76
    Registrato dal
    Dec 2004
    Messaggi
    1,822
    PHP Version 4.3.10


    mysql
    MySQL Support enabled
    Active Persistent Links 0
    Active Links 0
    Client API version 3.23.49
    TORTA DI RISO .. F I N I T A !!

    Da M.C.S.A. a impiegato pubblico :-(

  8. #8
    da shell:

    codice:
    mysql> SET PASSWORD FOR
        -> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');
    prova!
    aquatimer2000

  9. #9
    Utente di HTML.it L'avatar di ivy_76
    Registrato dal
    Dec 2004
    Messaggi
    1,822
    ho provato ma niente !!!!

    TORTA DI RISO .. F I N I T A !!

    Da M.C.S.A. a impiegato pubblico :-(

  10. #10
    che errore ti viene restituito?
    aquatimer2000

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 © 2025 vBulletin Solutions, Inc. All rights reserved.