Change and Reset MySQL root Password Zmien a Reset MySQL kmeň slová Heslo

Other then the ways specified Ostatné potom určitým spôsobom here tady 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: obnoviť a zmeniť rootovská heslo k MySQL databázu v prípade, že heslo je zabudol alebo stratil, Nasledujúce pokyny vysvetľujú podrobne iným spôsobom v poslednej časti sprievodcu, kde žiadny ďalší súbor musí byť vytvorený:

  1. Login as root to the Windows or Unix-like (Unix, Linux or BSD) machine with the MySQL server. Prihlásiť sa ako root na Windows alebo Unix-like (Unix, Linux alebo BSD), stroj s MySQL serverom.
  2. Stop the MySQL server by using either of the following command: Stop MySQL server pomocou niektorej z nasledujúci príkaz:

    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-server.sh stop

  3. Open the mysql server startup script (ie mysql-server.sh – the file executed to start or stop MySQL server. Otvorte mysql server spúšťací skript (napr. mysql-server.sh - vykonaný súbor spustiť alebo zastaviť server MySQL.
  4. Add –skip-grant-tables to the end of the line that contains the mysqld_safe command as its parameter. Pridať-skip-grant-stoly na koniec riadku, ktorá obsahuje mysqld_safe príkaz ako jeho parameter.
  5. Start MySQL server with the following command: Štart MySQL servera s nasledujúcim príkazom:

    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-server.sh štart

  6. Alternatively, start the MySQL server directly and skip the editing with the following command: Potreby spustiť MySQL server priamo preskočiť a editácia s nasledujúcim príkazom:

    mysqld_safe –skip-grant-tables & mysqld_safe-skip-grant-tables &

    Depending on your path environment, you may need to point to the correct directory where mysqld_safe is instead. V závislosti na vašej ceste prostredia, môže byť potrebné, aby ukazoval na správny adresár, kde je mysqld_safe miesto.

  7. Run the following commands to login as the mysql user and connect to mysql user/permission database: Príkazy na prihlásenie ako užívateľ mysql a pripojenie k mysql užívateľa / oprávnenia databázy:

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

  8. Run the update queries to change the MySQL password: Spustite aktualizáciu otázky na zmenu MySQL heslo:

    mysql> UPDATE user SET Password=PASSWORD('newrootpassword') WHERE User='root'; mysql> UPDATE užívateľa SET Password = PASSWORD ( 'newrootpassword') KDE User = 'root';
    mysql> FLUSH PRIVILEGES; mysql> FLUSH PRIVILEGES;

    Note: Replace newrootpassword with the new root password for MySQL server. Poznámka: Nahraďte newrootpassword s novou koreňovú heslo pre server MySQL. Flush Privileges is needed to making the password change effect immediately. Výsady flush je potreba k tomu, aby zmenu hesla prejavia okamžite.

  9. Exit mysql database client by typing exit. Exit mysql databázy klientov príkazom exit.
  10. Stop MySQL server with commands listed at step 2. Stop MySQL server pomocou príkazov uvedených v kroku 2.
  11. Open the mysql server startup script edit in step 3 again and remove the –skip-grant-tables parameter that has been added. Otvorte mysql server spúšťací skript upraviť v kroku 3 opätovne a odstrániť-skip-grant-stoly parameter, ktorý bol pridaný.
  12. Start MySQL server by using command from step 5 or 6. Štart MySQL server pomocou príkazu z kroku 5 alebo 6.

For Redhat Linux users, use the following instructions as the root user of Redhat Linux machine: Redhat Linux pre používateľov, použite nasledujúce inštrukcie ako root z Redhat Linux stroj:

  1. Stop MySQL process by using command: Stop MySQL procesu pomocou príkazu:

    # killall mysqld # Killall mysqld

  2. Start the MySQL server with following options: Štart MySQL server s nasledujúcich možností:

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

  3. Start the MySQL client: Štart MySQL klienta:

    # mysql # Mysql

    You should see the following message: Mali by ste vidieť nasledovné správa:

    Welcome to the MySQL monitor. Welcome to the MySQL monitor. Commands end with ; or g. Commands end with; alebo g.
    Your MySQL connection id is 1 to server version: 3.xx.xx MySQL spojenie id je 1 až servera verzie: 3.xx.xx

    Type 'help;' or 'h' for help. Typ 'pomoc,' alebo 'h' for help. Type 'c' to clear the buffer. Type 'c' vymazať vyrovnávacej pamäte.

    mysql> mysql>

  4. Use mysql database: Použite mysql databázy:

    mysql> USE mysql mysql> USE mysql

    You should see the following message: Mali by ste vidieť nasledovné správa:

    Reading table information for completion of table and column names Čítanie tabuľke informácie pre vyplnenie tabuľky a názvy stĺpcov
    You can turn off this feature to get a quicker startup with -A Môžete túto funkciu vypnúť, aby si rýchlejšie štarte sa --

    Database changed Databáza zmenil

  5. Then, update the password for the root user with the following command: Potom, aktualizujte heslo pre užívateľa root nasledujúci príkaz:

    UPDATE user SET password=password(”newpassword”) WHERE user=”root”; UPDATE SET heslo = heslo ( "newpassword") KDE user = "root";

    Replace newpassword with your desired password. Nahraďte newpassword sa požadované heslo. You should see the following message: Mali by ste vidieť nasledovné správa:

    Query OK, 2 rows affected (0.03 sec) Query OK, 2 rows affected (0.03 sec)
    Rows matched: 2 Changed: 2 Warnings: 0 Riadky uzavreté: 2 Změněno: 2 Varovanie: 0

    Rows affected may be different, but the Query OK should be there. Postihnuté Riadky môžu byť rôzne, ale Query OK by tam mala byť.

  6. Flush the database privileges to reload it in order to make the changes effective: Vyprázdnení databázy oprávnenie ho znovu načítať, aby sa zmeny účinné:

    mysql> flush privileges; mysql> flush privileges;

    You should get the following result: Mali by ste dostať nasledujúci výsledok:

    Query OK, 0 rows affected (0.02 sec) Query OK, 0 rows affected (0.02 sec)

  7. Exit the MySQL client by typing exit. Ukončite MySQL klient príkazom exit.
  8. Kill the MySQL server process by typing killall mysqld. Kill servera MySQL procese príkazom killall mysqld.
  9. Then start MySQL again: MySQL a potom začnite znova:

    /etc/init.d/mysqld start / Etc / init.d / mysqld start

IMPORTANT : The page is machine translated and provided "as is" without warranty. Upozornenie: stránka je stroje preložené a za predpokladu, "ako je" bez záruky. Machine translation may be difficult to understand. Strojový preklad môže byť ťažké pochopiť. Please refer to Nájdete na original English article originál Anglicky artikl whenever possible. ak je to možné.


10 Responses to “Change and Reset MySQL root Password” 10 Reakcie na "Burza a Nová sadzba MySQL kmeň slová Heslo"

  1. Matt J. Matt J.
    September 20th, 2009 00:19 20.září 2009 00:19
    10 10

    I see it worked under Ubuntu for 'trail', but it did not work for me. Vidím, že pracoval pod Ubuntu pre 'chodník', ale to nie je práca pre mňa.

    On the contrary: even after following Rajesh's suggestion to use “–skip-grant-tables” instead of “-skip-grant-tables”, even after correcting the erroneous reference to “/etc/rc.d/init.d” for Linux (my Ubuntu has no such directory, it has only “/etc/init.d/”) I get strange error messages by the time I get to step 7. Naopak: aj po nasledujúce návrh Rajesh na použitie "-skip-grant-stoly" namiesto "-skip-grant-tabuliek", a to aj po tom, čo sa opravuje nesprávny odkaz na "/ etc / rc.d / init.d" pre Linux (Ubuntu nemá žiadny takýto adresár, má len "/ etc / init.d /"), dostanem záhadné chybové správy v čase, keď sa dostanem ku kroku 7.

    It seems either one of two things goes wrong. Zdá sa, že ani jedna z dvoch vecí, pokazí. Either 1) the server process starts, then soon dies or 2) if it finds the process running at all, it still gives me “ERROR 1045 (28000): Access denies for 'root'@'localhost' (using password: NO)” Buď 1), začne proces servera, potom sa čoskoro zomrie, alebo 2) ak zistí, že proces beží na všetkých, stále mi dáva "ERROR 1045 (28000): Access popiera pre 'root' @ 'localhost' (using password: NO) "

    What has my even more baffled is that I get this last message when trying to start and stop mysql! To, čo sa mi ešte viac zmätený, že som si to posledná správa pri pokuse o spustenie a zastavenie MySQL!

    Finally, the instructions to edit mysql are highly misleading: one cannot put “–skip-grant-tables” at the END of the line, since the line ends with redirection and '&'. A konečne, usmernenia úprav mysql, sú veľmi zavádzajúce: nikto nemôže dať "-skip-grant-tabuľky" na konci riadku, pretože linka končí s presmerovaním a '&'. The line now reads: Linka teraz znie:

    “/usr/bin/mysqld_safe –skip-grant-tables > /dev/null 2>&1 &” "/ Usr / bin / mysqld_safe-skip-grant-stoly> / dev / null 2> & 1 &"

    I am running the very latest released Ubuntu, with all updates as of yesterday. Používam najnovšiu prepustený Ubuntu, so všetkými aktualizáciami od včerajška.

  2. Reset MySQL Root Password (for Windows) « Noel's Techie Blog Reset MySQL Root Heslo (pre Windows) «Noelově Techie Blog
    August 8th, 2009 10:57 8.srpna 2009 10:57
    9 9

    [...] This article was written based on information from [...] Tento článok bol napísaný na základe informácií od http://www.mydigitallife.info/2006/06/06/change-and-reset-mysql-root-password/ http://www.mydigitallife.info/2006/06/06/change-and-reset-mysql-root-password/ to illustrate changing the mysql password on [...] Pre ilustráciu meniace MySQL heslo na [...]

  3. ap ap
    March 12th, 2009 17:35 12.března 2009 17:35
    8 8

    @trail: Worked like a charm, thanks! @ Chodník: Worked like a charm, thanks!

  4. trail chodník
    September 23rd, 2008 17:22 23.září 2008 17:22
    7 7

    worked for me on ubuntu, in just one line: worked for me na ubuntu, len jeden riadok:

    sudo dpkg-reconfigure mysql-server-5.0 sudo dpkg-reconfigure mysql-server-5.0

  5. Rajesh Cheethirala Rajesh Cheethirala
    July 3rd, 2008 05:46 3.července 2008 05:46
    6 6

    On ubuntu, command is mysqld_safe –-skip-grant-tables & Na ubuntu, príkaz mysqld_safe - skip-grant-tables &

    Extra dash is required so mysql can parse it correctly. Extra pomlčka je potrebné preto, mysql možno analyzovať správne.

  6. Mengubah password root pada MySQL 5.0 di Windows. Zavrie kalendár bezo zmeny hesla root dňa MySQL 5.0 di Windows. « Iwan Binanto: “hari-hari ku yang berlalu ..” «Iwan Binanto:" hari hari-jang berlalu ku .. "
    May 5th, 2008 16:52 5.května 2008 16:52
    5 5

    [...] judulnya), setelah googling cuma dapat cara untuk mereset dan mengganti password MySQL di UNIX-like di sini. [...] Judulnya), Setelah googling Cuma dapat cara untuk mereset dan mengganti heslo MySQL di UNIX-like di Sini. Wah, perlu sedikit modifikasi ni … Berikut cara2 yang saya lakukan: 1. Wah, perlu sedikit modifikasi ni ... berikut cara2 jang Me lakukan: 1. Kill proses MySQL [...] Kill proses MySQL [...]

  7. links for 2007-04-23 | Patrick Kempf odkazy na 2007-04-23 | Patrick Kempf
    April 23rd, 2007 08:23 23.apríla 2007 08:23
    4 4

    [...] Change and Reset MySQL root Password » My Digital Life (tags: mysql administration) No Tags Gelesen: 2 / heute: 2 [...] [...] Burza a Nová sadzba MySQL kmeň slová Heslo »Má Digital Life (tags: mysql správa) č Tagy gelesen: 2 / heute: 2 [...]

  8. Help me retrieve my password - Geeks Talk Pomôžte mi získať moje heslo - Geeks Talk
    December 19th, 2006 14:54 19.prosince 2006 14:54
    3 3

    [...] Re: Help me retrieve my password Try this link… Change and Reset MySQL root Password [...] Re: Pomôžte mi získať moje heslo Skúste tento odkaz ... Zmena a Nová sadzba MySQL kmeň slová Heslo

  9. Vincitore Víťaz
    July 9th, 2006 12:05 9. júla 2006 12:05
    2 2

    I wanna reset my ZXDSL 831 ADSL Modemn Chcem obnoviť svoje ZXDSL 831 ADSL Modemn
    Plz tell me the way how to reset it Plz oznámiť mňa spôsob, ako ho resetovať
    I need to do that right now Musím to urobiť hneď teraz

    Best Rgds Najlepšie Rgds
    dugger(vincitore) Dugger (Víťaz)

  10. Reset the Root Password of MySQL Server » My Digital Life Root Password Reset MySQL server »Má Digital Life
    June 6th, 2006 18:18 6.června 2006 18:18
    1 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): [...] [...] Inak, na akejkoľvek platforme, môže byť mysql klient slúži na nastavenie nového hesla, aj keď to je menej bezpečný spôsob resetovania hesla (podrobný návod tu): [...]

Leave a Reply Leave a Reply

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> Môžete použiť tieto značky: href = "" <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Prihlásiť sa k pripomienkam funkcia bola zakázaná. To receive notification of latest comments posted, subscribe to Ak chcete dostávať oznámenia o najnovšie komentáre vyslaný, prihláste sa My Digital Life Comments RSS feed Má Digital Life Komentáre RSS or alebo register to receive zaregistrovať na new comments in daily email digest. nové komentáre v dennom email Digest.
Custom Search

New Articles Nové články

Incoming Search Terms for the Article Vcházející Hľadať Čas do člen určitý Artikel

reset mysql password reset MySQL password - -- reset password mysql reset hesla mysql - -- change mysql root password Zmena mysql root heslo - -- mysql password reset mysql hesla - -- lost mysql password mysql stratené heslo - -- mysql reset password mysql reset hesla - -- mysql reset root password linux mysql root heslo resetovať linux - -- retrieve mysql password načítanie MySQL heslo - -- ubuntu mysql default password ubuntu mysql predvolené heslo - -- ubuntu mysql root password ubuntu mysql root heslo - -- changing default password mysql meniace predvolené heslo mysql - -- change mysql password windows Zmena mysql hesla windows - -- change mysql-server password Zmena mysql-server heslo - -- how to reset mysql root password ako obnoviť mysql root heslo - -- how to clear password in mysql Ako vymazať heslo do mysql - -- how to reset mysql password ako obnoviť MySQL heslo - -- mysql root password change mysql root heslo zmeniť - -- mysql password recovery mysql obnovenie hesla - -- password recovery of mysql database in ubuntu Heslo využitie databázy MySQL v Ubuntu - -- reset mysql password ubuntu reset MySQL heslo ubuntu - -- start mysql in ubuntu af root mysql štart v ubuntu af root - -- ubuntu mysql password ubuntu MySQL heslo - -- ubuntu mysql root ubuntu mysql root - -- Recover MySQL root password and user name in Ubuntu Nadobudnúť MySQL root heslo a užívateľské meno v Ubuntu - -- +mysql +change root password + MySQL + zmena hesla root - -- Alterar senha MySQL query Zmeniť heslo MySQL dotaz - -- change mysql database password windows Zmena mysql databázy okná heslo - -- change lost password mysql root zmeniť zabudnuté heslo MySQL root - -- changing admin mysql password meniace sa admin MySQL heslo - -- change mysql root user Zmena mysql užívateľa root - -- change password for mysql user Zmena hesla pre užívateľa mysql - -- change lost password mysql zmeniť zabudnuté heslo mysql - -- change mysql password in windows Zmena mysql hesla vo windows - -- change mysql password Zmena mysql hesla - -- change root mysql password Zmena mysql root heslo - -- change root password mysql windows zmeniť heslo užívateľa root mysql okná - -- change password mysql root zmeniť heslo root mysql - -- change passpord mysql Zmena passpord mysql - -- crackear contraseña mysql crackear contraseña mysql - -- crack mysql root bezva mysql root - -- default user password for mysql ubuntu Predvolená užívateľské heslo pre mysql ubuntu - -- default mysql password root ubuntu Predvolené mysql root heslo ubuntu - -- forgot mysql root password ubuntu Zabudol mysql root heslo ubuntu - -- forget mysql pass users command zabudnúť na preukaz užívateľa mysql príkaz - -- forgotten mysql root password + windows zabudnuté heslo užívateľa root mysql + windows - -- freebsd forgotten password mysql freebsd mysql zabudnuté heslo - -- gpu crack mysql password GPU bezva MySQL heslo - -- how to reset password mysql 5 Ako obnoviť heslá mysql 5 - -- how to edit mysql password ako upraviť MySQL heslo - -- how to recover mysql database that has no root access ako obnoviť mysql databázu, ktorá nemá root - --