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: لإعادة تعيين الجذر وتغيير كلمة السر لقاعدة البيانات ماي. س. ك في القضية هو أن كلمة السر المفقودة أو المنسية ، التعليمات التالية في شرح تفاصيل عن طريقة بديلة في الجزء الأخير من الدليل ، لا يوجد فيها ملف إضافي لا بد من خلق :
- Login as root to the Windows or Unix-like (Unix, Linux or BSD) machine with the MySQL server. كما ادخل الجذر إلى ويندوز أو يونكس مثل (يونكس ، لينكس أو بي إس دي) جهاز الخادم مع ماي. س. ك.
- 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 وقف - Open the mysql server startup script (ie mysql-server.sh - the file executed to start or stop MySQL server. فتح ماي. س. ك خادم بدء البرنامج النصي (أي بين server.sh ماي. س. ك -- الملف المنفذة لبدء أو وقف خادم ماي. س. ك.
- Add –skip-grant-tables to the end of the line that contains the mysqld_safe command as its parameter. أضف بين القفز على منح الجداول الى نهاية الخط الذي يحتوي على mysqld_safe قيادة لها بارامتر.
- 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 - 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 هو بدلا من ذلك.
- Run the following commands to login as the mysql user and connect to mysql user/permission database: تشغيل الأوامر التالية لتسجيل الدخول كما ماي. س. ك مستخدم وربط المستخدم لماي. س. ك / إذن قاعدة البيانات :
# mysql -u root mysql # ماي. س. ك ش بين الجذر ماي. س. ك
- 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. فلوش امتيازات هناك حاجة لجعل تأثير تغيير كلمة السر على الفور.
- Exit mysql database client by typing exit. خروج ماي. س. ك قاعدة بيانات العميل بكتابة الخروج.
- Stop MySQL server with commands listed at step 2. وقف ماي. س. ك الخادم مع قيادة المدرجة في الخطوة 2.
- Open the mysql server startup script edit in step 3 again and remove the –skip-grant-tables parameter that has been added. فتح ماي. س. ك خادم بدء تحرير البرنامج النصي في الخطوة 3 مرة أخرى وإزالة - القفز على منح الجداول المعلمة التي أضيفت.
- 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 آلة :
- Stop MySQL process by using command: ماي. س. ك وقف العملية باستخدام القيادة :
# killall mysqld # killall mysqld
- Start the MySQL server with following options: بداية ماي. س. ك الخادم مع الخيارات التالية :
# /usr/libexec/mysqld -Sg –user=root & # / usr / libexec / mysqld سان جرمان مستخدم الجذر = &
- 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.xxType ‘help;’ or ‘h’ for help. نوع 'مساعدة ؛' أو 'ح' للمساعدة. Type ‘c’ to clear the buffer. نوع 'ج' واضحة إلى المنطقة العازلة.
mysql> ماي. س. ك>
- 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 يمكنك إيقاف تشغيل هذه الميزة للحصول على سرعة بدء التشغيل مع - ADatabase changed تغيير قاعدة البيانات
- 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 الانذارات : 0Rows affected may be different, but the Query OK should be there. الصفوف المتأثرة قد تكون مختلفة ، ولكن ينبغي أن يكون موافق الاستعلام هناك.
- 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 ثانية)
- Exit the MySQL client by typing exit. خروج ماي. س. ك العميل بكتابة الخروج.
- Kill the MySQL server process by typing killall mysqld. قتل ماي. س. ك خادم عملية بكتابة killall mysqld.
- 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 بلادي الرقمي الحياة المنتديات .
Related Articles المواد ذات الصلة
- Reset the Root Password of MySQL Server إعادة تعيين كلمة المرور من الجذر ماي. س. ك الخادم
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3 تركيب ملقم الويب في فري بي 6.0 مع اباتشي 2.2 ، 5.0 وماي. س. ك PHP 5 -- الجزء 3
- Apple iPhone Root Password and Mobile User Password آبل iPhone الجذر كلمة السر وكلمة السر مستخدم الهاتف المحمول
- Change or Set MySQL Long Query Time Value for log-slow-queries تغيير أو مجموعة ماي. س. ك الاستعلام القيمة الزمنية الطويلة لوغاريتمي بطيئة الاستفسارات
- Check and Optimize MySQL Database Automatically with Crontab/Cron فحص والأمثل ماي. س. ك قاعدة البيانات تلقائيا مع Crontab / كرون
- Change Oracle Database User Password تغيير قاعدة البيانات أوراكل المستخدم كلمة السر
- How to Reset WordPress Password to Recover Forgotten Secret كيفية إعادة تعيين كلمة المرور ووردبرس] لاسترداد نسي سرية
- Forgot Windows Administrator Password? نسيت ويندوز مدير كلمة السر؟ Ways to Recover and Reset Password in Vista/XP/2003/2K/NT طرق لاسترجاع واعادة ضبط كلمة السر في Vista/XP/2003/2K/NT
- How to Find and Replace Text in MySQL Database using SQL كيف تجد واستبدال نص في ماي. س. ك قاعدة البيانات باستخدام مزود
- How to Backup and Restore (Export and Import) MySQL Databases Tutorial كيفية النسخ الاحتياطي واستعادة (التصدير والاستيراد) وقواعد البيانات ماي. س. ك أمثلة توضيحية

































June 6th, 2006 18:18 يونيو 6th ، 2006 18:18
[...] 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): [...] [...]وكبديل لذلك ، على أية منصة ، ماي. س. ك الزبائن يمكن أن تستخدم لوضع كلمة سر جديدة ، على الرغم من انها اقل امنا طريقة إعادة ضبط كلمة المرور (تعليمات مفصلة هنا) : [...]
July 9th, 2006 12:05 يوليو 9th ، 2006 12:05
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)
December 19th, 2006 14:54 ديسمبر 19th ، 2006 14:54
[...] Re: Help me retrieve my password Try this link… Change and Reset MySQL root Password [...]إعادة : ساعدني استرجاع كلمة المرور جرب هذا الرابط... التغيير وإعادة ضبط كلمة السر ماي. س. ك الجذر
April 23rd, 2007 08:23 أبريل 23rd ، 2007 08:23
[...] Change and Reset MySQL root Password » My Digital Life (tags: mysql administration) No Tags Gelesen: 2 / heute: 2 [...] [...]التغيير وإعادة ضبط كلمة السر ماي. س. ك الجذر »بلدي الرقمي الحياة (العلامات : ماي. س. ك الادارة) لا العلامات Gelesen : 2 / هذا اليوم : 2 (...
May 5th, 2008 16:52 مايو 5th ، 2008 16:52
[...] 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 [...] قتل النثر ماي. س. ك...
July 3rd, 2008 05:46 يوليو 3rd ، 2008 05:46
On ubuntu, command is mysqld_safe –-skip-grant-tables & على أوبونتو ، هو قيادة mysqld_safe -- القفز على منح الجداول &
Extra dash is required so mysql can parse it correctly. عمليات الإعدام خارج نطاق اندفاعة هو المطلوب حتى يمكن تحليل ماي. س. ك بشكل صحيح.
September 23rd, 2008 17:22 سبتمبر 23rd ، 2008 17:22
worked for me on ubuntu, in just one line: بالنسبة لي عملت على أوبونتو ، في خط واحد فقط :
sudo dpkg-reconfigure mysql-server-5.0 sudo dpkg - إعادة ماي. س. ك خادم - 5.0 -