بازگشت   پی سی سیتی > کامپیوتر اینترنت و شبکه Computer internet > سیستم عامل > ویندوز windows > مقالات آموزش ترفندها... Traning

مقالات آموزش ترفندها... Traning در این قسمت مقالات آموزشی ترفندها نکته ها و .... قرار دارند

پاسخ
 
ابزارهای موضوع نحوه نمایش
  #1  
قدیمی 04-22-2011
دانه کولانه آواتار ها
دانه کولانه دانه کولانه آنلاین نیست.
    مدیر کل سایت
        
کوروش نعلینی
 
تاریخ عضویت: Jun 2007
محل سکونت: کرمانشاه
نوشته ها: 12,700
سپاسها: : 1,382

7,486 سپاس در 1,899 نوشته ایشان در یکماه اخیر
دانه کولانه به Yahoo ارسال پیام
پیش فرض بک آپ گرفتن از دیتابیس سایت های بزرگ و بازگردانی آنها به طور تدریجی BigDump ابزاری برای وبمسترها

بک آپ گرفتن از دیتابیس سایت های بزرگ و بازگردانی آنها به طور تدریجی BigDump ابزاری برای وبمسترها


BigDump: Staggered MySQL Dump Importer




گاهی پیش میاد که شما یک بک آپ بزرگ دارید و توانایی ریستور آن رو به طور دفعتی و کامل ندارید
این یه اسکریپت 10 کیلوبایته که فایل مورد نظر رو به تدریج و قسمت به قسمت به دیتابیستون ایمپورت میکنه


Staggered import of large and very large MySQL Dumps (like phpMyAdmin 2.x Dumps) even through the web servers with hard runtime limit and those in safe mode. The script executes only a small part of the huge dump and restarts itself. The next session starts where the last was stopped
====================


DOWNLOAD

BigDump ver. 0.32b (beta) (10 KB ZIP archive)
Note: Version 0.32b includes some very important bugfixes and other improvements. Please don't hesitate to report any bugs in this release (but read the FAQs on this site first)!



==================================

YOU NEED
  1. Bigdump script bigdump.php from the download above
  2. Dump file(s) of your database created by phpMyAdmin I'll call it dump.sql from now on. You can also use GZip compressed dump files, lets call it dump.gz.
    Note: GZip support is only with PHP 4.3.0 and later. Using a huge GZip compressed dump file can cause the script to exceed the PHP memory/runtime limit since the dump file has to be unpacked from the beginning everytime the session starts. If this happens use the uncompressed dump. It's your only chance.
  3. Access account for your mySQL database
  4. Access account for some web server with PHP 4.1.0 or later installed. This web server must be able to connect to the mySQL database. This ability is probably present if your web server and the mySQL server are from the same ISP.
  5. Some text editor like Notepad to edit the configuration file
  6. Some FTP client to upload the files to the web server
  7. Common knowledge about files, PHP, mySQL databases, phpMyAdmin, FTP and HTTP
===================================
.
USAGE
  1. Open bigdump.php in a text editor and adjust the database configuration
  2. Drop the old tables on the target database if your dump doesn't contain "DROP TABLE" (use phpMyAdmin)
  3. Create the working directory (e.g. dump) on your web server
  4. (If you want to upload the dump files via web browser give the scripts writing permissions on the working directory (e.g. make chmod 777 on a Linux based system). You can upload the dump files from the browser up to the size limit set by the current PHP configuration of the web server. Alternatively you can upload any files via FTP.)
  5. Upload bigdump.php and the dump files (*.sql or *.gz) via FTP to the working directory (take care of TEXT mode upload for bigdump.php and dump.sql but BINARY mode for dump.gz if uploading from MS Windows).
  6. Run the bigdump.php from your browser via URL like http://www.yourdomain.com/dump/bigdump.php. Now you can select the file to be imported from the listing of your working directory.
  7. BigDump will start every next import session automatically if you enable the JavaScript in your browser.
  8. Relax and wait for the script to finish. Do NOT close the browser window!
  9. IMPORTANT: Remove bigdump.php and your dump files from your server
Note 1: BigDump will fail processing large tables containing extended inserts. An extended insert contains all table entries within one SQL query. BigDump isn't able to split such SQL queries. In most cases BigDump will stop if some query includes to many lines. But if PHP complains that allowed memory size exhausted or MySQL server has gone away your dump probably also contains extended inserts. Please turn off extended inserts when exporting database from phpMyAdmin. If you only have a dump file with extended inserts please ask for our support service in order to convert it into a file usable by BigDump.
Note 2: Some web servers disallow script execution in the directory with writing permissions for security reasons. If you changed the permissions on the working directory and you are getting a server error when running the script restore the permissions to their normal state for directories.
Note 3: If Timeout errors still occure you may need to adjust the $linespersession setting in bigdump.php.
Note 4: If mySQL server overrun occures you can use $delaypersession setting to let the script sleep some milliseconds or more before starting next session. This setting will only work if the JavaScript is activated.
Note 5: BigDump is currently not able to restore a single dump file with multiple databases inside (switched by the USE statement).
Note 6: If you experience problems with non-latin characters while using BigDump you have to adjust the $db_connection_char_set configuration variable in bigdump.php to match the encoding of your dump file.
FAQ
Q: I get an error: "MySQL: Bad syntax near DEFAULT CHARACTER SET...". Why?
A: You are probably trying to restore a dump file from a newer mySQL database version into an older mySQL database. Sorry, this is obviously not a very good idea and this can't work. You have to recreate the dump file in compatibility mode or remove all incompatible stuff by hand.
Q: I get an error: "MySQL: Table 'some_tbl_name' already exists". Why?
A: Your dump file doesn't contain DROP queries. Use phpMyAdmin to drop all the tables on the target database which must be restored before you start the import.
Q: I get an error: "MySQL: Variable 'xyz' can't be set to the value of 'NULL'". Why?
A: Your dump file probably contains a statement like this: SET character_set_client = @saved_cs_client; Bigdump is not able to restore settings saved at the beginning of the import process. However you can skip this error message by adding a comment setting $comment[]='SET character_set_client = @saved_cs_client;'; to the BigDump configuration.
Q: I get an error: "MySQL: Duplicate entry 'X' for key Y". Why?
A: There is something broken in your dump file as it tries to create duplicated entries where a unique key is defined by CREATE TABLE statement. In some cases it can still work if you ignore all these errors. In order to do so you have to replace all INSERT INTO by INSERT IGNORE INTO in your dumpfile using a text editor.
Q: I get PHP errors "Value to large" when trying to import a file larger than 2 GB. Why?
A: Some PHP versions are broken and can't handle files largen than 2 GB. Ask your hoster to apply this PHP patch for solution.
Q: I get an error: "Fatal error: Allowed memory size of xxx bytes exhausted" or "MySQL server has gone away". Why?
A: Your dump file probably contains extended inserts. An extended insert contains all table entries within one SQL query. BigDump isn't able to split such SQL queries. Please turn off extended inserts when exporting database from phpMyAdmin. If you only have a dump file with extended inserts please ask for our support service in order to convert it into a file usable by BigDump.
Q: Why does BigDump fail putting strange SQL errors if I run it on MS Windows based server?
A: This is IMHO a bug in the PHP4 and PHP5 that is crashing BigDump on Win32 if using a dump file with DOS encoded line breaks (contact me for details). As workaround create your dump with only the UNIX line breaks or convert it into UNIX format using some text editor. Then you will be able to run BigDump also on Win32.
Q: I get an error: "PHP version 4.1.0 is required for BigDump to proceed. You have PHP 4.3.x installed. Sorry!". Why?
A: This is strange but it happens. Something is wrong with you PHP installation. As workaround you can remove from bigdump.php five code lines following on the comment // Check PHP version. This will skip the version check.
Q: Can I use dump files created by other software than phpMyAdmin?
A: You can use any text dump file at your own risk. Although it's very important for BigDump to find a semicolon followed by a line break at the end of each query. It won't work else since it has no time to parse the queries to find their proper ends. Further BigDump behaviour can be unpredictable if your dump file is using double quotes to surround strings. BigDump won't work too if your dump file contains any proprietary comment lines (like in some dumps created by other tools). Although you can use the $comment setting in bigdump.php to drop non-standard comment lines by their first characters. Apart from that BigDump doesn't filter the dump file in any way.
Q: Why don't you provide any facility to input the database configuration from the browser form?
A: Input the database configuration from the form would be very insecure since the settings must be saved in the cookies or returned to your browser everytime the session ends.





فایلهای پیوست شده : متاسفانه تمامی فایلهای ضمیمه شده تا مرداد 91 یعنی July, 2012 به خاطر بی دقتی شرکت سرویس دهنده خدمات سرور ما از بین رفته است بنابراین به تاریخ ضمیمه شدن فایلهایی که میخواهید دانلود کنید دقت بفرمایید که ما شرمسار بازدید کنندگان گرامی خود نشویم . فایلهای ضمیمه شده بعد از این تاریخ هیچ گونه مشکلی ندارند .

در فرصت مقتضی سعی خواهد شد فایلهای پرطرفردار تر که توسط خود بازدید کنندگان گرامی درخواست داده میشود به مرور اپلود و جایگزین شود. با تشکر
نوع فایل: zip bigdump.zip‏ (10.4 کیلو بایت, 2 نمایش)
__________________
مرا سر نهان گر شود زير سنگ -- از آن به كه نامم بر آيد به ننگ
به نام نكو گر بميــرم رواست -- مرا نام بايد كه تن مرگ راست



پاسخ با نقل قول
جای تبلیغات شما اینجا خالیست با ما تماس بگیرید




  #2  
قدیمی 04-22-2011
دانه کولانه آواتار ها
دانه کولانه دانه کولانه آنلاین نیست.
    مدیر کل سایت
        
کوروش نعلینی
 
تاریخ عضویت: Jun 2007
محل سکونت: کرمانشاه
نوشته ها: 12,700
سپاسها: : 1,382

7,486 سپاس در 1,899 نوشته ایشان در یکماه اخیر
دانه کولانه به Yahoo ارسال پیام
پیش فرض ریستور کردن بک آپ های بزرگ

http://www.ozerov.de/bigdump.php
__________________
مرا سر نهان گر شود زير سنگ -- از آن به كه نامم بر آيد به ننگ
به نام نكو گر بميــرم رواست -- مرا نام بايد كه تن مرگ راست



پاسخ با نقل قول
پاسخ

برچسب ها
اختصاصی, بک آپ


کاربران در حال دیدن موضوع: 1 نفر (0 عضو و 1 مهمان)
 

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

BB code is فعال
شکلک ها فعال است
کد [IMG] فعال است
اچ تی ام ال غیر فعال می باشد



اکنون ساعت 02:20 AM برپایه ساعت جهانی (GMT - گرینویچ) +3.5 می باشد.



Powered by vBulletin® Version 3.8.4 Copyright , Jelsoft Enterprices مدیریت توسط کورش نعلینی
استفاده از مطالب پی سی سیتی بدون ذکر منبع هم پیگرد قانونی ندارد!! (این دیگه به انصاف خودتونه !!)
(اگر مطلبی از شما در سایت ما بدون ذکر نامتان استفاده شده مارا خبر کنید تا آنرا اصلاح کنیم)


سایت دبیرستان وابسته به دانشگاه رازی کرمانشاه: کلیک کنید




  پیدا کردن مطالب قبلی سایت توسط گوگل برای جلوگیری از ارسال تکراری آنها