نمایش نتایج: از شماره 1 تا 1 , از مجموع 1

موضوع: چگونگی تعمیر کردن MySQL Databases در سرور های CPANEL / WHM

Threaded View

پست قبلی پست قبلی   پست بعدی پست بعدی
  1. #1
    مدیر کل Vahid آواتار ها
    تاریخ عضویت
    Aug 2008
    نوشته ها
    2,724
    تشکر تشکر کرده 
    435
    تشکر تشکر شده 
    6,976
    تشکر شده در
    2,085 پست

    پیش فرض چگونگی تعمیر کردن MySQL Databases در سرور های CPANEL / WHM

    How to repair all MySQL Databases on a cPanel/WHM Server
    There can be different reasons why one wants to repair a MySQL database. Database corruption maybe due to a lack of disk space or an unexpected server shutdown that caused the database to go bad. Queries that worked before suddenly stopped working and overall the database is not behaving anymore as expected. This guide shall not be a full database troubleshooting guide, but rather give you a hand on doing a MySQL repair on all databases on a cPanel/WHM server (or any other server running MySQL).
    The situation: Your server crashed hard and when it is back up the MySQL side of the house is not working anymore. You do your normal troubleshooting. If all other troubleshooting and verifications are done, you come to the conclusion that you will need to run a repair as the next step. A full database restore from a (hopefully existing) good database backup would be your last choice.
    Repairing one MySQL database is fairly easy, but how do you do this for an entire server holding20, 30, 50 or over 100 databases? You will need SSH access as the root user to the server running MySQL. So, log in as the root user and then do the following to repair your MySQL databases:
    Option #1

    Check if you any need DB repair:
    myisamchk --check /var/lib/mysql/*/*.MYI
    Then try a 'safe-recover' as the first step:
    myisamchk --safe-recover /var/lib/mysql/*/*.MYI
    If the ‘safe-recover’ does not work, run a full recover:
    myisamchk --recover /var/lib/mysql/*/*.MYI
    Then use the 'force' flag to get things back to normal:
    myisamchk --safe-recover --extend-check --force /var/lib/mysql/*/*.MYI
    or:
    myisamchk --recover --extend-check --force /var/lib/mysql/*/*.MYI

    Option #2

    Use the mysqlcheck tool to repair your databases.
    mysqlcheck --all-databases -r #repair
    mysqlcheck --all-databases -a #analyze
    mysqlcheck --all-databases -o #optimize


    There you have it. By using one of these two options you should be able to repair and recover your databases. Please be advised that you should backup critical databases before running any of the commands above. If something goes wrong you can revert back and try again.
    برای پیش رفت در علم آسانسوری وجود ندارد پله ها را باید پیاده رفت /./ همیشه این یادتان باشد که دست بالای دست بسیار است.
    يادمان باشد براي يك بار ايستادن صد ها بار افتاده ايم /./ بک آپ مهمترین رمز موفقیت هاستینگ /./ امنیت مطلق نیست.
    ارتباط مستقیم با من :
    Admin -{(@)}- WebHostingTalk . ir

  2. تعداد تشکر ها ازVahid به دلیل پست مفید


اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. مشکل با Mysql در Cpanel
    توسط Amy در انجمن سی پنل CPanel
    پاسخ ها: 1
    آخرين نوشته: December 16th, 2016, 15:40
  2. مشکل Mysql در cpanel
    توسط sojodyan در انجمن سی پنل CPanel
    پاسخ ها: 8
    آخرين نوشته: December 21st, 2014, 17:59
  3. مشکل بسیار حاد mysql سرور cpanel
    توسط downloaddl در انجمن سی پنل CPanel
    پاسخ ها: 12
    آخرين نوشته: January 3rd, 2014, 17:21
  4. حجم mysql در cpanel
    توسط amirizadi در انجمن سی پنل CPanel
    پاسخ ها: 1
    آخرين نوشته: October 31st, 2010, 11:54
  5. چگونگی آپگرید cpanel به اخرین ورژن mysql
    توسط Vahid در انجمن سی پنل CPanel
    پاسخ ها: 0
    آخرين نوشته: August 6th, 2008, 01:22

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •