Change and Reset MySQL root Password MySQLのrootのパスワードを変更し、リセット

Other then the ways specified他の方法で入力し、指定 hereここで 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: rootのパスワードをリセットするために変更し、 MySQLデータベースの場合には、パスワードを忘れたり、失われたり、詳細は、次の手順を説明し、代替手段は、このガイドの最後の部分、ここで追加のファイルを作成する必要があります:

  1. Login as root to the Windows or Unix-like (Unix, Linux or BSD) machine with the MySQL server.は、 rootとしてログインしてWindowsやUNIXライクな( UNIXは、 LinuxやBSDの)マシンで、 MySQLサーバです。
  2. Stop the MySQL server by using either of the following command: MySQLサーバを使用して停止するには、以下のコマンドのいずれかの:

    Linux: /etc/rc.d/init.d/mysql stopリナックスなります: / etc / rc.d / init.dに/ MySQLの停止
    FreeBSD: /usr/local/etc/rc.d/mysql-server.sh stop FreeBSDの: / usr /ローカル/等/ rc.d / MySQLの- server.sh停止

  3. Open the mysql server startup script (ie mysql-server.sh - the file executed to start or stop MySQL server. MySQLサーバスタートアップスクリプトを開いて(すなわちのMySQL - server.sh -ファイルの実行を開始または停止するM ySQLサーバです。
  4. Add –skip-grant-tables to the end of the line that contains the mysqld_safe command as its parameter.アドインをスキップ-助成金-のテーブルを、その行の最後にコマンドが含まれてmysqld_safeはそのパラメータを指定します。
  5. Start MySQL server with the following command:スタート]ボタンをMySQLサーバには、以下のコマンド:

    Linux: /etc/rc.d/init.d/mysql startリナックスなります: / etc / rc.d / init.dに/ MySQLのスタート]ボタンを
    FreeBSD: /usr/local/etc/rc.d/mysql-server.sh start FreeBSDの: / usr /ローカル/等/ rc.d / MySQLの- server.shスタート]ボタンを

  6. Alternatively, start the MySQL server directly and skip the editing with the following command:また、 MySQLサーバを直接起動して、スキップして編集するには、以下のコマンド:

    mysqld_safe –skip-grant-tables & mysqld_safeをスキップ-助成金-テーブル&

    Depending on your path environment, you may need to point to the correct directory where mysqld_safe is instead.お客様のパスを環境に応じて、必要に応じて、適切なディレクトリをポイントしてmysqld_safeでは、代わりにします。

  7. Run the following commands to login as the mysql user and connect to mysql user/permission database:以下のコマンドを実行してMySQLユーザとしてログインし、接続してMySQLユーザ/許可データベース:

    # mysql -u root mysql # MySQLの- uルートのMySQL

  8. Run the update queries to change the MySQL password:クエリを実行して更新プログラムを変更するにMySQLのパスワード:

    mysql> UPDATE user SET Password=PASSWORD(’newrootpassword’) WHERE User=’root’; MySQLの> "アップデートユーザーパスワードの設定=パスワード( ' newrootpassword ' )ここで、 user = 'ルート' ;
    mysql> FLUSH PRIVILEGES; MySQLの>フラッシュ権限;

    Note: Replace newrootpassword with the new root password for MySQL server.注:置き換えるnewrootpasswordは、新しいMySQLサーバのrootユーザのパスワードです。 Flush Privileges is needed to making the password change effect immediately.フラッシュの権限を作る必要に応じて、パスワードの変更が反映されます。

  9. Exit mysql database client by typing exit.出口MySQLデータベースクライアントを入力して終了します。
  10. Stop MySQL server with commands listed at step 2. MySQLサーバにコマンドを停止するステップ2記載されています。
  11. Open the mysql server startup script edit in step 3 again and remove the –skip-grant-tables parameter that has been added. MySQLサーバスタートアップスクリプトを開いて、ステップ3を再度編集や削除してスキップ-助成金-テーブルのパラメータには追加されました。
  12. Start MySQL server by using command from step 5 or 6. MySQLサーバを使用してコマンドを開始するステップ5または6 。

For Redhat Linux users, use the following instructions as the root user of Redhat Linux machine: Redhat Linuxのユーザは、以下の手順を使用して、 rootユーザとしてのRedhat Linuxを機:

  1. Stop MySQL process by using command:コマンドを使用してMySQLのプロセスを停止:

    # killall mysqld # killallをmysqldの

  2. Start the MySQL server with following options: MySQLサーバを起動して以下のオプション:

    # /usr/libexec/mysqld -Sg –user=root & # / usr / libexec / mysqldを-用SG -ユーザ=ルート&

  3. Start the MySQL client: mysqlクライアントを起動します:

    # mysql # MySQLの

    You should see the following message:詳細については、次のメッセージが表示する必要が:

    Welcome to the MySQL monitor. MySQLモニタへようこそ。 Commands end with ; or g.コマンドを最後に、またはg.
    Your MySQL connection id is 1 to server version: 3.xx.xx MySQL接続してサーバのバージョン番号は1から: 3.xx.xx

    Type ‘help;’ or ‘h’ for help.タイプ'ヘルプ; 'または' h 'にしてください。 Type ‘c’ to clear the buffer.タイプ' c 'にバッファをクリアしています。

    mysql> MySQLの>

  4. Use mysql database: MySQLデータベースを使用する:

    mysql> USE mysql MySQLの> " MySQLの

    You should see the following message:詳細については、次のメッセージが表示する必要が:

    Reading table information for completion of table and column names読書テーブルの情報を完了したテーブル名やカラム名
    You can turn off this feature to get a quicker startup with -Aこの機能を無効にすることができますを取得するにスタートアップを迅速に

    Database changedデータベースが変更されました

  5. Then, update the password for the root user with the following command:次に、 rootユーザのパスワードを更新するには、次のコマンド:

    UPDATE user SET password=password(”newpassword”) WHERE user=”root”;更新プログラムのユーザのパスワード=パスワードを設定する( " newpassword " )ここで、 user =の" root " ;

    Replace newpassword with your desired password. newpasswordに置き換えるご希望のパスワードを入力します。 You should see the following message:詳細については、次のメッセージが表示する必要が:

    Query OK, 2 rows affected (0.03 sec)クエリよし、 2行の影響を受ける( 0.03秒)
    Rows matched: 2 Changed: 2 Warnings: 0似た行: 2変更: 2警告: 0

    Rows affected may be different, but the Query OK should be there.影響を受ける行が異なる場合がありますが、オクラホマ、クエリの必要がある。

  6. Flush the database privileges to reload it in order to make the changes effective:フラッシュし、データベースの権限をリロードして変更を行うために効果的な:

    mysql> flush privileges; MySQLの>フラッシュ権限;

    You should get the following result:を取得するべきかを、次の検索結果:

    Query OK, 0 rows affected (0.02 sec)クエリオクラホマ、 0行の影響を受ける( 0.02秒)

  7. Exit the MySQL client by typing exit.終了してmysqlクライアントを入力して終了します。
  8. Kill the MySQL server process by typing killall mysqld. MySQLサーバプロセスを台無しにするのmysqld killallを入力します。
  9. Then start MySQL again: MySQLのスタート]ボタンを再度入力し:

    /etc/init.d/mysqld start / etc / init.dに/ mysqldを開始

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要 :これは、機械翻訳ページで提供"現状有姿"を保証します。 Machine translation may be difficult to understand.機械翻訳を理解するのは難しいかもしれません。 Please refer toをご覧ください original English articleオリジナルの英語記事索引 whenever possible.可能な限りです。

Share and contribute or get technical support and help atを共有して貢献や技術サポートとヘルプを得る My Digital Life Forums 私のデジタルライフフォーラム .です。



6 Responses to “Change and Reset MySQL root Password” 6レスポンスを" MySQLのrootのパスワードを変更し、リセット"

  1. Reset the Root Password of MySQL Server » My Digital LifeルートのパスワードをリセットしてMySQLサーバ»私のデジタルライフ
    June 6th, 2006 18:18 2006年6月6日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): [...] [...]また、どんなプラットフォームでも、 mysqlクライアントを使用して新しいパスワードを設定して、これの少ない安全な方法のパスワードをリセットして(ここでの詳細な命令) : [...]

  2. Vincitore vincitore
    July 9th, 2006 12:05 2006年7月9日12:05
    2

    I wanna reset my ZXDSL 831 ADSL Modemnマイzxdslをリセットしたい831 adsl modemn
    Plz tell me the way how to reset itのplzの道を教えてそれをリセットする方法
    I need to do that right now私は今すぐこの操作を行う必要があります

    Best Rgdsベストrgds
    dugger(vincitore)ダガー( vincitore )

  3. Help me retrieve my password - Geeks Talk手伝って私のパスワードを取得する-オタクトーク
    December 19th, 2006 14:54 2006年12月19日14:54
    3 4

    [...] Re: Help me retrieve my password Try this link… Change and Reset MySQL root Password [...]再:私のパスワードを取得しようと手伝ってこのリンクを… MySQLのrootのパスワードを変更し、リセット

  4. links for 2007-04-23 | Patrick Kempfのリンクを2007-04-23 |パトリックケンプ
    April 23rd, 2007 08:23 2007年4月23日08:23
    4

    [...] Change and Reset MySQL root Password » My Digital Life (tags: mysql administration) No Tags Gelesen: 2 / heute: 2 [...] MySQLのrootのパスワードを変更し、リセット[...] »私のデジタルライフ(タグ: MySQLの管理)のタグgelesen : 2 / heute : 2 [...]

  5. Mengubah password root pada MySQL 5.0 di Windows. MySQL 5.0のディmengubahパスワードルートのpadaします。 « Iwan Binanto: “hari-hari ku yang berlalu ..” «残しbinanto : "ハリハリ区-ヤンberlalu .. "
    May 5th, 2008 16:52 2008年5月5日16:52
    5

    [...] judulnya), setelah googling cuma dapat cara untuk mereset dan mengganti password MySQL di UNIX-like di sini. [...] judulnya ) 、 setelah cuma googlingの手段のようにするべきであるダンmenggantiパスワードmereset MySQLのディUNIXライクなディsini 。 Wah, perlu sedikit modifikasi ni … Berikut cara2 yang saya lakukan: 1.ワウ、 perlu sedikit modifikasiに… berikutのヤンcara2沙耶lakukan : 1 。 Kill proses MySQL [...]殺すproses MySQLの[...]

  6. Rajesh Cheethiralaラジェッシュcheethirala
    July 3rd, 2008 05:46 2008年7月3日05:46
    6

    On ubuntu, command is mysqld_safe –-skip-grant-tables &上ubuntu 、コマンドは、 mysqld_safeのに-s kip-助成金-テーブル&

    Extra dash is required so mysql can parse it correctly.余分なダッシュが必要なため、 MySQLが正しく解釈できるようです。

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> これらのタグを使用することができます: <aのhref=のtitle= <abbrのtitle= <blockquote cite=""> <cite> <acronymのtitle= <b>ダウンロードの<code> <デル日時= " " >の<em> <i>て<strike> <strong> <q cite="">

Subscribe without commenting登録なしのコメント


Custom Search

New Articles新しい記事

Incoming Search Terms for the Article検索用語を受信するには

change mysql root password MySQLのrootパスワードを変更する - - mysql change root password MySQLのrootパスワードを変更する - - mysql change password MySQLのパスワードを変更 - - reset mysql password MySQLのパスワードをリセット - - reset mysql root password MySQLのrootのパスワードをリセット - - mysql password change MySQLのパスワードを変更する - - mysql password reset MySQLのパスワードのリセット - - mysql password recovery MySQLのパスワードを回復 - - change root password mysql MySQLのrootパスワードを変更する - - change password mysql MySQLのパスワードを変更 - - retrieve mysql root password MySQLのrootのパスワードを取得 - - forgot mysql password MySQLのパスワードを忘れてしまった - - mysql root password change MySQLのrootパスワードを変更する - - mysql root password reset MySQLのrootのパスワードをリセット - - reset mysql password ubuntu MySQLのパスワードをリセットubuntu - - reset mysql root pass MySQLのルートパスをリセット - - mysql retrieve root password MySQLのrootのパスワードを取得 - - ubuntu stop mysql ubuntu MySQLの停止 - - change password in mysql MySQLのパスワードを変更 - - mysql reset root pass MySQLのリセットのルートパス - - How to change Mysql root password MySQLのrootのパスワードを変更する方法 - - change mysql password ubuntu MySQLのパスワードを変更するubuntu - - CHANGE MYSQL PASSWORD MySQLのパスワードを変更する - - how to reset mysql password MySQLのパスワードをリセットする方法 - - mysql reset privileges MySQLのリセット権限 - - ubuntu reset mysql root password ubuntu MySQLのrootのパスワードをリセット - - ubuntu reset mysql password ubuntu MySQLのパスワードをリセット - - how to change password in mysql MySQLのパスワードを変更する方法 - - mysql ubuntu default password MySQLのデフォルトのパスワードubuntu - - retrieve mysql password MySQLのパスワードを取得する - - mysql reset password MySQLのパスワードをリセット - - ubuntu mysql reset password ubuntu MySQLのパスワードをリセット - - reset mysql root password ubuntu MySQLのrootのパスワードをリセットubuntu - - crack mysql password MySQLのパスワードをクラック - - reset mysql password linux MySQLのパスワードをリセットするのLinux - - forgot mysql root password MySQLのrootパスワードを忘れてしまった - - reset mysql pass MySQLのパスをリセット - - all すべての - - reset password mysql MySQLのパスワードをリセット - - stop mysql ubuntu 停止のMySQL ubuntu - - ubuntu change mysql password ubuntu MySQLのパスワードを変更する - - ubuntu mysql change password ubuntu MySQLのパスワードを変更 - - mysql set password MySQLのパスワードの設定 - - mysql lost password MySQLのパスワードを忘れました - - mysql forgot password MySQLのパスワードを忘れた場合 - - mysql reset password linux LinuxのMySQLのパスワードをリセット - - mysql reset root MySQLのリセットルート - - changing mysql root password MySQLのrootのパスワードを変更 - - how to reset mysql root password MySQLのrootのパスワードをリセットする方法 - - ubuntu mysql default password ubuntu MySQLのデフォルトのパスワード。 - - mysql forgot root password MySQLのrootパスワードを忘れてしまった - - mysql change password root MySQLのルートパスワードの変更 - - ubuntu mysql set root password ubuntu MySQLのrootパスワードを設定する - - mysql "change password" MySQLの"パスワードの変更" - - lost mysql password 失われたMySQLのパスワード - - mysql change root pass MySQLのルートパスを変更 - - mysql root change password MySQLのルートパスワードの変更 - - ubuntu mysql reset root password ubuntu MySQLのrootのパスワードをリセット - - resetting mysql password MySQLのパスワードをリセット - - mysql reset root password MySQLのrootのパスワードをリセット - - change password mysql ubuntu MySQLのパスワードを変更ubuntu - - change mysql root pass MySQLのルートパスを変更 - - change mysql password linux LinuxのMySQLのパスワードを変更する - - mysql clear password MySQLのパスワードをクリア - - mysql password MySQLのパスワード - - mysql lost root password windows MySQLのrootパスワードを紛失のWindows - - mysql reset user MySQLのリセットユーザー - - set mysql password MySQLのパスワードを設定する - - set password mysql MySQLのパスワードの設定 - - ubuntu mysql password MySQLのパスワードをubuntu - - lost mysql password ubuntu 失われたMySQLのパスワードをubuntu - - linux mysql reset password LinuxのMySQLのパスワードをリセット - - reset mysql database password MySQLデータベースのパスワードをリセット - - retrieve lost mysql password 失われたMySQLのパスワードを取得する - - linux reset mysql password LinuxのMySQLのパスワードをリセット - -