Change and Reset MySQL root Password التغيير وإعادة ضبط كلمة السر ماي. س. ك الجذر

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: لإعادة تعيين الجذر وتغيير كلمة السر لقاعدة البيانات ماي. س. ك في القضية هو أن كلمة السر المفقودة أو المنسية ، التعليمات التالية في شرح تفاصيل عن طريقة بديلة في الجزء الأخير من الدليل ، لا يوجد فيها ملف إضافي لا بد من خلق :

  1. Login as root to the Windows or Unix-like (Unix, Linux or BSD) machine with the MySQL server. كما ادخل الجذر إلى ويندوز أو يونكس مثل (يونكس ، لينكس أو بي إس دي) جهاز الخادم مع ماي. س. ك.
  2. Stop the MySQL server by using either of the following command: وقف ماي. س. ك الخادم عن طريق استخدام أي من التالي :

    Linux: /etc/rc.d/init.d/mysql stop لينكس : / الخ / rc.d / init.d / ماي. س. ك توقف
    FreeBSD: /usr/local/etc/rc.d/mysql-server.sh stop فري بي : / usr / المحلية / الخ / rc.d / ماي. س. ك - server.sh وقف

  3. Open the mysql server startup script (ie mysql-server.sh - the file executed to start or stop MySQL server. فتح ماي. س. ك خادم بدء البرنامج النصي (أي بين server.sh ماي. س. ك -- الملف المنفذة لبدء أو وقف خادم ماي. س. ك.
  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: بداية ماي. س. ك الخادم مع القيادة التالية :

    Linux: /etc/rc.d/init.d/mysql start لينكس : / الخ / rc.d / init.d / ماي. س. ك بداية
    FreeBSD: /usr/local/etc/rc.d/mysql-server.sh start فري بي : / usr / المحلية / الخ / rc.d / ماي. س. ك بداية - server.sh

  6. Alternatively, start the MySQL server directly and skip the editing with the following command: وكبديل لذلك ، تبدأ ماي. س. ك الخادم مباشرة والقفز على التحرير مع الأمر التالي :

    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 -u root mysql # ماي. س. ك ش بين الجذر ماي. س. ك

  8. Run the update queries to change the MySQL password: ادارة تحديث الاستفسارات لتغيير كلمة السر ماي. س. ك :

    mysql> UPDATE user SET Password=PASSWORD(’newrootpassword’) WHERE User=’root’; ماي. س. ك> تحديث مجموعة المستخدم كلمة المرور = كلمة السر ( 'newrootpassword') حيث المستخدم = 'الجذر' ؛
    mysql> FLUSH PRIVILEGES; ماي. س. ك> فلوش الامتيازات ؛

    Note: Replace newrootpassword with the new root password for MySQL server. ملاحظة : يستعاض عن newrootpassword مع الجذر كلمة السر الجديدة لخدمة ماي. س. ك. Flush Privileges is needed to making the password change effect immediately. فلوش امتيازات هناك حاجة لجعل تأثير تغيير كلمة السر على الفور.

  9. Exit mysql database client by typing exit. خروج ماي. س. ك قاعدة بيانات العميل بكتابة الخروج.
  10. Stop MySQL server with commands listed at step 2. وقف ماي. س. ك الخادم مع قيادة المدرجة في الخطوة 2.
  11. Open the mysql server startup script edit in step 3 again and remove the –skip-grant-tables parameter that has been added. فتح ماي. س. ك خادم بدء تحرير البرنامج النصي في الخطوة 3 مرة أخرى وإزالة - القفز على منح الجداول المعلمة التي أضيفت.
  12. Start MySQL server by using command from step 5 or 6. بداية ماي. س. ك الخادم باستخدام القيادة من خطوة 5 أو 6.

For Redhat Linux users, use the following instructions as the root user of Redhat Linux machine: لمستخدمي لينكس Redhat ، استخدام التعليمات التالية باعتبارها الجذر للمستخدم لينكس Redhat آلة :

  1. Stop MySQL process by using command: ماي. س. ك وقف العملية باستخدام القيادة :

    # killall mysqld # killall mysqld

  2. Start the MySQL server with following options: بداية ماي. س. ك الخادم مع الخيارات التالية :

    # /usr/libexec/mysqld -Sg –user=root & # / usr / libexec / mysqld سان جرمان مستخدم الجذر = &

  3. Start the MySQL client: بداية ماي. س. ك العملاء :

    # mysql # ماي. س. ك

    You should see the following message: يجب أن ترى الرسالة التالية :

    Welcome to the MySQL monitor. مرحبا بكم في رصد ماي. س. ك. Commands end with ; or g. مع نهاية الأوامر ؛ أو G.
    Your MySQL connection id is 1 to server version: 3.xx.xx ماي. س. ك الصدد الخاص بك هو معرف من 1 إلى خادم النسخة : 3.xx.xx

    Type ‘help;’ or ‘h’ for help. نوع 'مساعدة ؛' أو 'ح' للمساعدة. Type ‘c’ to clear the buffer. نوع 'ج' واضحة إلى المنطقة العازلة.

    mysql> ماي. س. ك>

  4. Use mysql database: استخدام قاعدة البيانات ماي. س. ك :

    mysql> USE 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 يمكنك إيقاف تشغيل هذه الميزة للحصول على سرعة بدء التشغيل مع - A

    Database changed تغيير قاعدة البيانات

  5. Then, update the password for the root user with the following command: بعد ذلك ، تحديث كلمة السر للمستخدم الجذر مع القيادة التالية :

    UPDATE user SET password=password(”newpassword”) WHERE user=”root”; تحديث مجموعة المستخدم كلمة المرور = كلمة السر ( "newpassword") حيث المستخدم = "الجذر" ؛

    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; ماي. س. ك> مطاردة الامتيازات ؛

    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. خروج ماي. س. ك العميل بكتابة الخروج.
  8. Kill the MySQL server process by typing killall mysqld. قتل ماي. س. ك خادم عملية بكتابة killall mysqld.
  9. Then start MySQL again: ثم تبدأ مرة أخرى ماي. س. ك :

    /etc/init.d/mysqld start / الخ / 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 بلادي الرقمي الحياة المنتديات .



7 Responses to “Change and Reset MySQL root Password” 7 ردود على "التغيير وإعادة ضبط كلمة السر ماي. س. ك الجذر"

  1. Reset the Root Password of MySQL Server » My Digital Life إعادة تعيين كلمة المرور من الجذر ماي. س. ك الخادم »بلدي الرقمي الحياة
    June 6th, 2006 18:18 يونيو 6th ، 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): [...] [...]وكبديل لذلك ، على أية منصة ، ماي. س. ك الزبائن يمكن أن تستخدم لوضع كلمة سر جديدة ، على الرغم من انها اقل امنا طريقة إعادة ضبط كلمة المرور (تعليمات مفصلة هنا) : [...]

  2. Vincitore
    July 9th, 2006 12:05 يوليو 9th ، 2006 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) dugger (vincitore)

  3. Help me retrieve my password - Geeks Talk ساعدوني استرجاع كلمة المرور -- المهوسون النقاش
    December 19th, 2006 14:54 ديسمبر 19th ، 2006 14:54
    3

    [...] Re: Help me retrieve my password Try this link… Change and Reset MySQL root Password [...]إعادة : ساعدني استرجاع كلمة المرور جرب هذا الرابط... التغيير وإعادة ضبط كلمة السر ماي. س. ك الجذر

  4. links for 2007-04-23 | Patrick Kempf وصلات ل2007-04-23 | باتريك كيمف
    April 23rd, 2007 08:23 أبريل 23rd ، 2007 08:23
    4

    [...] Change and Reset MySQL root Password » My Digital Life (tags: mysql administration) No Tags Gelesen: 2 / heute: 2 [...] [...]التغيير وإعادة ضبط كلمة السر ماي. س. ك الجذر »بلدي الرقمي الحياة (العلامات : ماي. س. ك الادارة) لا العلامات Gelesen : 2 / هذا اليوم : 2 (...

  5. Mengubah password root pada MySQL 5.0 di Windows. كلمة المرور Mengubah الجذر pada ماي. س. ك دي ويندوز 5.0. « Iwan Binanto: “hari-hari ku yang berlalu ..” «ايوان Binanto :" هارى هارى - كو يانغ berlalu.. "
    May 5th, 2008 16:52 مايو 5th ، 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 dapat كارا untuk mereset دان mengganti كلمة السر ماي. س. ك دي يونيكس مثل دي سيني. Wah, perlu sedikit modifikasi ni … Berikut cara2 yang saya lakukan: 1. واه ، perlu sedikit آخر تعديل ني... Berikut cara2 يانغ سايا lakukan : 1. Kill proses MySQL [...] قتل النثر ماي. س. ك...

  6. Rajesh Cheethirala راجيش Cheethirala
    July 3rd, 2008 05:46 يوليو 3rd ، 2008 05:46
    6

    On ubuntu, command is mysqld_safe –-skip-grant-tables & على أوبونتو ، هو قيادة mysqld_safe -- القفز على منح الجداول &

    Extra dash is required so mysql can parse it correctly. عمليات الإعدام خارج نطاق اندفاعة هو المطلوب حتى يمكن تحليل ماي. س. ك بشكل صحيح.

  7. trail ذيل
    September 23rd, 2008 17:22 سبتمبر 23rd ، 2008 17:22
    7

    worked for me on ubuntu, in just one line: بالنسبة لي عملت على أوبونتو ، في خط واحد فقط :

    sudo dpkg-reconfigure mysql-server-5.0 sudo dpkg - إعادة ماي. س. ك خادم - 5.0 -

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> يمكنك استخدام هذه العلامات : <ahref="" title=""> <abbrtitle=""> <acronymtitle=""> <b><blockquotecite=""> <cite><code><ديل datetime = ""> <em><i><qcite=""> <strike><strong>

Subscribe without commenting اكتتاب دون التعليق


Custom Search

New Articles المواد الجديدة

Incoming Search Terms for the Article ابحث الواردة للشروط المنصوص عليها في المادة

change mysql root password تغيير كلمة السر ماي. س. ك الجذر - -- mysql change root password ماي. س. ك الجذر تغيير كلمة المرور - -- mysql change password ماي. س. ك تغيير كلمة المرور - -- reset mysql password ماي. س. ك إعادة تعيين كلمة المرور - -- reset mysql root password ماي. س. ك الجذر إعادة تعيين كلمة المرور - -- mysql password change ماي. س. ك تغيير كلمة المرور - -- mysql password reset ماي. س. ك اعادة ضبط كلمة السر - -- mysql password recovery ماي. س. ك استعادة كلمة المرور - -- change root password mysql تغيير كلمة السر ماي. س. ك الجذر - -- change password mysql تغيير كلمة السر ماي. س. ك - -- retrieve mysql root password ماي. س. ك الجذر استرجاع كلمة المرور - -- forgot mysql password نسيت كلمة السر ماي. س. ك - -- mysql root password change ماي. س. ك الجذر تغيير كلمة المرور - -- mysql root password reset ماي. س. ك الجذر اعادة ضبط كلمة السر - -- reset mysql password ubuntu إعادة ضبط كلمة السر ماي. س. ك أوبونتو - -- reset mysql root pass إعادة ماي. س. ك الجذر المرور - -- mysql retrieve root password ماي. س. ك الجذر استرجاع كلمة المرور - -- ubuntu stop mysql أوبونتو وقف ماي. س. ك - -- change password in mysql تغيير كلمة السر في ماي. س. ك - -- mysql reset root pass ماي. س. ك الجذر إعادة تمرير - -- How to change Mysql root password كيفية تغيير كلمة السر ماي. س. ك الجذر - -- change mysql password ubuntu تغيير كلمة السر ماي. س. ك أوبونتو - -- CHANGE MYSQL PASSWORD تغيير كلمة السر ماي. س. ك - -- how to reset mysql password كيفية إعادة تعيين كلمة المرور ماي. س. ك - -- mysql reset privileges ماي. س. ك إعادة الامتيازات - -- ubuntu reset mysql root password أوبونتو إعادة ماي. س. ك الجذر كلمة المرور - -- ubuntu reset mysql password ماي. س. ك أوبونتو إعادة تعيين كلمة المرور - -- how to change password in mysql كيفية تغيير كلمة السر في ماي. س. ك - -- mysql ubuntu default password ماي. س. ك أوبونتو تقصير كلمة السر - -- retrieve mysql password ماي. س. ك استرجاع كلمة المرور - -- mysql reset password ماي. س. ك إعادة ضبط كلمة المرور - -- ubuntu mysql reset password أوبونتو ماي. س. ك إعادة ضبط كلمة المرور - -- reset mysql root password ubuntu إعادة ضبط كلمة السر ماي. س. ك الجذر أوبونتو - -- crack mysql password الكراك ماي. س. ك كلمة المرور - -- reset mysql password linux ماي. س. ك إعادة تعيين كلمة المرور لينكس - -- forgot mysql root password نسيت كلمة السر ماي. س. ك الجذر - -- reset mysql pass إعادة تمرير ماي. س. ك - -- all الكل - -- reset password mysql اعادة ضبط كلمة السر ماي. س. ك - -- stop mysql ubuntu وقف ماي. س. ك أوبونتو - -- ubuntu change mysql password أوبونتو ماي. س. ك تغيير كلمة المرور - -- ubuntu mysql change password أوبونتو ماي. س. ك تغيير كلمة المرور - -- mysql set password ماي. س. ك مجموعة كلمة المرور - -- mysql lost password ماي. س. ك فقدت كلمة السر - -- mysql forgot password ماي. س. ك نسيت كلمة السر - -- mysql reset password linux ماي. س. ك إعادة ضبط كلمة المرور لينكس - -- mysql reset root ماي. س. ك إعادة الجذر - -- changing mysql root password تغيير كلمة السر ماي. س. ك الجذر - -- how to reset mysql root password كيفية إعادة تعيين كلمة المرور ماي. س. ك الجذر - -- ubuntu mysql default password أوبونتو ماي. س. ك تقصير كلمة السر - -- mysql forgot root password ماي. س. ك الجذر نسيت كلمة المرور - -- mysql change password root ماي. س. ك تغيير كلمة سر الجذر - -- ubuntu mysql set root password حدد الجذر ماي. س. ك أوبونتو كلمة المرور - -- mysql "change password" ماي. س. ك "تغيير كلمة السر" - -- lost mysql password فقدت كلمة السر ماي. س. ك - -- mysql change root pass ماي. س. ك تغيير الجذر المرور - -- mysql root change password ماي. س. ك الجذر تغيير كلمة المرور - -- ubuntu mysql reset root password أوبونتو ماي. س. ك الجذر إعادة كلمة السر - -- resetting mysql password ماي. س. ك إعادة تعيين كلمة المرور - -- mysql reset root password ماي. س. ك الجذر إعادة تعيين كلمة المرور - -- change password mysql ubuntu تغيير كلمة السر ماي. س. ك أوبونتو - -- change mysql root pass تغيير ماي. س. ك الجذر المرور - -- change mysql password linux تغيير كلمة السر ماي. س. ك لينكس - -- mysql clear password ماي. س. ك واضحة كلمة المرور - -- mysql password ماي. س. ك كلمة المرور - -- mysql lost root password windows ماي. س. ك الجذر فقدت كلمة السر النوافذ - -- mysql reset user ماي. س. ك إعادة المستخدم - -- set mysql password مجموعة ماي. س. ك كلمة المرور - -- set password mysql مجموعة ماي. س. ك كلمة المرور - -- ubuntu mysql password ماي. س. ك أوبونتو كلمة المرور - -- lost mysql password ubuntu فقدت كلمة السر ماي. س. ك أوبونتو - -- linux mysql reset password لينكس ماي. س. ك إعادة ضبط كلمة المرور - -- reset mysql database password إعادة ماي. س. ك قاعدة بيانات كلمة المرور - -- retrieve lost mysql password استرجاع كلمة المرور فقدت ماي. س. ك - -- linux reset mysql password إعادة تعيين كلمة المرور لينكس ماي. س. ك - --