Change and Reset MySQL root Password Reset cambiamento e MySQL root Password

Other then the ways specified Poi altri modi specificati here qui to reset and change the root password for mySQL database in the case that the password is forgotten or lost, the following instructions explain in details the alternative way at the last part of the guide, where no additional file needs to be created: per reimpostare e cambiare la password di root per MySQL banca dati nel caso in cui la password viene dimenticata o smarrita, le seguenti istruzioni spiegano nei dettagli il modo alternativo durante l'ultima parte della guida, se non ulteriori file deve essere creato:

  1. Login as root to the Windows or Unix-like (Unix, Linux or BSD) machine with the MySQL server. Login come root per Windows o Unix-like (Unix, Linux o BSD) macchina con il server MySQL.
  2. Stop the MySQL server by using either of the following command: Arrestare il server MySQL utilizzando uno dei seguenti comandi:

    Linux: /etc/rc.d/init.d/mysql stop Linux: / etc / rc.d / init.d / mysql stop
    FreeBSD: /usr/local/etc/rc.d/mysql-server.sh stop FreeBSD: / usr / local / etc / rc.d / mysql stop-server.sh

  3. Open the mysql server startup script (ie mysql-server.sh - the file executed to start or stop MySQL server. Aprire il server MySQL script di avvio (vale a dire mysql-server.sh - eseguito il file per avviare o interrompere server MySQL.
  4. Add –skip-grant-tables to the end of the line that contains the mysqld_safe command as its parameter. Aggiungi-skip-concessione-tabelle alla fine della riga che contiene il comando mysqld_safe come parametro.
  5. Start MySQL server with the following command: Inizio server MySQL con il seguente comando:

    Linux: /etc/rc.d/init.d/mysql start Linux: / etc / rc.d / init.d / mysql start
    FreeBSD: /usr/local/etc/rc.d/mysql-server.sh start FreeBSD: / usr / local / etc / rc.d / mysql start-server.sh

  6. Alternatively, start the MySQL server directly and skip the editing with the following command: In alternativa, avviare il server MySQL e saltare direttamente la redazione con il seguente comando:

    mysqld_safe –skip-grant-tables & mysqld_safe-skip-concessione-tabelle &

    Depending on your path environment, you may need to point to the correct directory where mysqld_safe is instead. A seconda del tuo percorso di ambiente, potrebbe essere necessario per puntare a correggere la directory in cui è invece mysqld_safe.

  7. Run the following commands to login as the mysql user and connect to mysql user/permission database: Eseguire i seguenti comandi per effettuare il login come utente mysql e connettersi a mysql utente / autorizzazione banca dati:

    # mysql -u root mysql # Mysql-u root mysql

  8. Run the update queries to change the MySQL password: Eseguire l'aggiornamento di query per modificare la password di MySQL:

    mysql> UPDATE user SET Password=PASSWORD(’newrootpassword’) WHERE User=’root’; mysql> UPDATE utente SET Password = password ( 'newrootpassword'), dove user = 'root';
    mysql> FLUSH PRIVILEGES; mysql> flush privileges;

    Note: Replace newrootpassword with the new root password for MySQL server. Nota: Sostituire newrootpassword con la nuova password di root per il server MySQL. Flush Privileges is needed to making the password change effect immediately. Flush privileges è necessario per rendere l'effetto cambiare la password immediatamente.

  9. Exit mysql database client by typing exit. Uscita database mysql client digitando uscita.
  10. Stop MySQL server with commands listed at step 2. Stop server MySQL con i comandi di cui al punto 2.
  11. Open the mysql server startup script edit in step 3 again and remove the –skip-grant-tables parameter that has been added. Aprire il server MySQL script di avvio di modificare nel passaggio 3 di nuovo e rimuovere la-skip-concessione-tabelle parametro che è stato aggiunto.
  12. Start MySQL server by using command from step 5 or 6. Inizio server MySQL utilizzando il comando passo da 5 o 6.

For Redhat Linux users, use the following instructions as the root user of Redhat Linux machine: Per gli utenti di Linux RedHat, utilizzare le seguenti istruzioni come utente root della macchina Linux RedHat:

  1. Stop MySQL process by using command: Stop MySQL processo utilizzando il comando:

    # killall mysqld # Killall mysqld

  2. Start the MySQL server with following options: Avviare il server MySQL con le seguenti opzioni:

    # /usr/libexec/mysqld -Sg –user=root & # / Usr / libexec / mysqld-SG-user = root &

  3. Start the MySQL client: Avviare il client MySQL:

    # mysql # MySQL

    You should see the following message: Si dovrebbe vedere la seguente messaggio:

    Welcome to the MySQL monitor. Benvenuti a MySQL monitor. Commands end with ; or g. Con comandi fine; o g.
    Your MySQL connection id is 1 to server version: 3.xx.xx MySQL il tuo codice di connessione è di 1 a versione del server: 3.xx.xx

    Type ‘help;’ or ‘h’ for help. Type 'help;' o 'h' per aiuto. Type ‘c’ to clear the buffer. Tipo 'c' chiaro a buffer.

    mysql>

  4. Use mysql database: Utilizzare database MySQL:

    mysql> USE mysql mysql> USE mysql

    You should see the following message: Si dovrebbe vedere la seguente messaggio:

    Reading table information for completion of table and column names Tavolo da lettura di informazioni per il completamento del tavolo e nomi di colonna
    You can turn off this feature to get a quicker startup with -A È possibile disattivare questa funzione per ottenere un più rapido avvio con-A

    Database changed Database changed

  5. Then, update the password for the root user with the following command: Quindi, aggiornare la password per l'utente root con il seguente comando:

    UPDATE user SET password=password(”newpassword”) WHERE user=”root”; UPDATE utente SET password = password ( "Newpassword") dove l'utente = "root";

    Replace newpassword with your desired password. Newpassword sostituire con il tuo password desiderata. You should see the following message: Si dovrebbe vedere la seguente messaggio:

    Query OK, 2 rows affected (0.03 sec) Query OK, 2 righe colpite (0,03 sec)
    Rows matched: 2 Changed: 2 Warnings: 0 Righe ha trovato: 2 Changed: 2 Warnings: 0

    Rows affected may be different, but the Query OK should be there. Righe colpite possono essere diverse, ma la Query OK dovrebbe essere lì.

  6. Flush the database privileges to reload it in order to make the changes effective: Flush banca dati privilegi per ricaricare al fine di apportare le modifiche efficaci:

    mysql> flush privileges; mysql> flush privileges;

    You should get the following result: Si dovrebbe ottenere il seguente risultato:

    Query OK, 0 rows affected (0.02 sec) Query OK, 0 righe colpite (0,02 sec)

  7. Exit the MySQL client by typing exit. Uscita il client MySQL digitando uscita.
  8. Kill the MySQL server process by typing killall mysqld. Uccidere il processo server MySQL digitando killall mysqld.
  9. Then start MySQL again: Quindi avviare nuovamente MySQL:

    /etc/init.d/mysqld start / etc / init.d / mysqld inizio

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Questa è una pagina tradotta macchina che è fornito "così com'è" senza alcuna garanzia. Machine translation may be difficult to understand. Traduzione automatica può essere difficile da capire. Please refer to Si prega di fare riferimento a original English article articolo originale in lingua inglese whenever possible. quando possibile.

Share and contribute or get technical support and help at Condividere e contribuire o ottenere supporto tecnico e assistenza in My Digital Life Forums La mia vita digitale Forum .



6 Responses to “Change and Reset MySQL root Password” 6 risposte a "Cambiamento e Reset MySQL root Password"

  1. Reset the Root Password of MySQL Server » My Digital Life Reimpostare la password di root di MySQL Server »La mia vita digitale
    June 6th, 2006 18:18 6 giugno 2006 18.18
    1

    [...] Alternatively, on any platform, mysql client can be used to set the new password, althought it’s less secure way of resetting the password (detailed instruction here): [...] [...] In alternativa, su qualsiasi piattaforma, mysql client può essere utilizzata per impostare la nuova password, anche se è meno sicuro modo di reimpostazione della password (istruzioni dettagliate qui): [...]

  2. Vincitore
    July 9th, 2006 12:05 9 luglio 2006 12:05
    2

    I wanna reset my ZXDSL 831 ADSL Modemn Voglio reimpostare la mia ZXDSL 831 ADSL Modemn
    Plz tell me the way how to reset it Plz dimmi il modo come reimpostarla
    I need to do that right now Ho bisogno di farlo ora

    Best Rgds Migliori Rgds
    dugger(vincitore) Dugger (vincitore)

  3. Help me retrieve my password - Geeks Talk Help me recuperare la mia password - Geeks Talk
    December 19th, 2006 14:54 19 dicembre 2006 14:54
    3

    [...] Re: Help me retrieve my password Try this link… Change and Reset MySQL root Password [...] Re: Help me recuperare la mia password Prova questo link… Cambia e reimpostare la password di root di MySQL

  4. links for 2007-04-23 | Patrick Kempf collegamenti per 2007-04-23 | Patrick Kempf
    April 23rd, 2007 08:23 23 aprile 2007 08:23
    4

    [...] Change and Reset MySQL root Password » My Digital Life (tags: mysql administration) No Tags Gelesen: 2 / heute: 2 [...] [...] Cambia e reimpostare la password di root di MySQL »Il mio Digital Life (tag: mysql amministrazione) n. Tag Gelesen: 2 / oggi: 2 [...]

  5. Mengubah password root pada MySQL 5.0 di Windows. Mengubah la password di root di MySQL 5,0 pada di Windows. « Iwan Binanto: “hari-hari ku yang berlalu ..” «Binanto Iwan:" re-re ku yang berlalu .. "
    May 5th, 2008 16:52 5 maggio 2008 16:52
    5

    [...] judulnya), setelah googling cuma dapat cara untuk mereset dan mengganti password MySQL di UNIX-like di sini. [...] Judulnya), setelah googling cuma come dovrebbe disponibili per quelle mereset presente mengganti MySQL password di Unix-like di Sini. Wah, perlu sedikit modifikasi ni … Berikut cara2 yang saya lakukan: 1. Wah, è richiesta la sedikit modifikasi ni… berikut cara2 che ho lakukan: 1. Kill proses MySQL [...] Uccidere proses MySQL [...]

  6. Rajesh Cheethirala Rajesh Cheethirala
    July 3rd, 2008 05:46 3 luglio 2008 05:46
    6

    On ubuntu, command is mysqld_safe –-skip-grant-tables & A Ubuntu, comando è mysqld_safe - skip-concessione-tabelle &

    Extra dash is required so mysql can parse it correctly. Extra trattino è richiesto in modo mysql può analizzare correttamente.

Leave a Reply Lasciare una risposta

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> È possibile utilizzare questi tag: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Iscriviti senza commentare


Custom Search

New Articles Nuovi articoli

Incoming Search Terms for the Article Cerca in arrivo Condizioni per l'articolo

change mysql root password cambiare la password di root di MySQL - -- mysql change root password MySQL cambiare la password di root - -- mysql change password MySQL modificare la password - -- reset mysql password MySQL reimpostare la password - -- reset mysql root password reimpostare la password di root di MySQL - -- mysql password change MySQL modifica della password - -- mysql password reset MySQL reimpostazione password - -- mysql password recovery MySQL il recupero della password - -- change root password mysql cambiare la password di root di MySQL - -- change password mysql modificare la password di MySQL - -- retrieve mysql root password recuperare la password di root di MySQL - -- forgot mysql password MySQL dimenticato la password - -- mysql root password change MySQL cambiare la password di root - -- mysql root password reset MySQL reimpostare la password di root - -- reset mysql password ubuntu MySQL reimpostare la password Ubuntu - -- reset mysql root pass reset MySQL root pass - -- mysql retrieve root password MySQL recuperare la password di root - -- ubuntu stop mysql Ubuntu fermata MySQL - -- change password in mysql modificare la password in MySQL - -- mysql reset root pass MySQL passa il reset di root - -- How to change Mysql root password Come cambiare la password di root Mysql - -- change mysql password ubuntu cambiare la password MySQL Ubuntu - -- CHANGE MYSQL PASSWORD Cambiare la password mysql - -- how to reset mysql password come reimpostare la password di MySQL - -- mysql reset privileges MySQL privilegi di reset - -- ubuntu reset mysql root password Ubuntu reimpostare la password di root di MySQL - -- ubuntu reset mysql password Ubuntu reimpostare la password di MySQL - -- how to change password in mysql come cambiare la password in MySQL - -- mysql ubuntu default password MySQL password di default Ubuntu - -- retrieve mysql password MySQL recuperare la password - -- mysql reset password MySQL reimpostare la password - -- ubuntu mysql reset password Ubuntu MySQL reimpostare la password - -- reset mysql root password ubuntu MySQL reimpostare la password di root Ubuntu - -- crack mysql password MySQL password crack - -- reset mysql password linux reimpostare la password MySQL Linux - -- forgot mysql root password MySQL dimenticato la password di root - -- reset mysql pass MySQL passa il reset - -- all tutto - -- reset password mysql reimpostare la password di MySQL - -- stop mysql ubuntu MySQL fermata Ubuntu - -- ubuntu change mysql password Ubuntu cambiare la password di MySQL - -- ubuntu mysql change password Ubuntu MySQL modificare la password - -- mysql set password MySQL impostare la password - -- mysql lost password MySQL perso la password - -- mysql forgot password MySQL dimenticato la password - -- mysql reset password linux MySQL reimpostare la password di Linux - -- mysql reset root reset di root di MySQL - -- changing mysql root password cambiare la password di root di MySQL - -- how to reset mysql root password come reimpostare la password di root mysql - -- ubuntu mysql default password Ubuntu MySQL password di default - -- mysql forgot root password MySQL dimenticato la password di root - -- mysql change password root MySQL modificare la password di root - -- ubuntu mysql set root password Ubuntu MySQL impostare la password di root - -- mysql "change password" MySQL "cambia password" - -- lost mysql password MySQL perso la password - -- mysql change root pass MySQL passa il cambiamento di root - -- mysql root change password MySQL modificare la password di root - -- ubuntu mysql reset root password Ubuntu MySQL reimpostare la password di root - -- resetting mysql password MySQL reimpostare la password - -- mysql reset root password MySQL reimpostare la password di root - -- change password mysql ubuntu modificare la password di MySQL Ubuntu - -- change mysql root pass MySQL root cambiamento passa - -- change mysql password linux cambiare la password MySQL Linux - -- mysql clear password MySQL chiaro la password - -- mysql password MySQL password - -- mysql lost root password windows MySQL perso la password di root di Windows - -- mysql reset user MySQL reimpostare utente - -- set mysql password impostare la password di MySQL - -- set password mysql Imposta la password di MySQL - -- ubuntu mysql password Ubuntu MySQL password - -- lost mysql password ubuntu MySQL perso la password Ubuntu - -- linux mysql reset password Linux MySQL reimpostare la password - -- reset mysql database password reimpostare la password database MySQL - -- retrieve lost mysql password MySQL recuperare perso la password - -- linux reset mysql password Linux MySQL reimpostare la password - --