1 vài vấn đề khi upload file quá lớn trong phpmyadmin , 24 html

Thứ Sáu, 2 tháng 3, 2012
1 vài cách giải quyết khi gặp vấn đề với việc upload file quá lớn
A
1.Thay đổi giá trị của 1 vài cài đặt mặc định
upload_max_filesize,
memory_limit
post_max_size
trong file php.ini (wamp server ) và reset lại server .

2. Ngoài ra thay đổi thông số cài đặt trong file C:\xampp\phpmyadmin\config.inc.php file.
mở file config.inc.php tìm đến
$cfg['UploadDir']
sửa thành $cfg['UploadDir'] = "upload". khi không thấy dòng đó ta có thể tìm trong file config.sample.inc.php
sau đó copy và dán vào file config.inc.php , kết quả sẽ là :

$cfg['UploadDir'] = "upload"


Save file lại và tạo 1 and create upload folder trong phpmyadmin folder.

C:\xampp\apps\phpmyadmin\upload\

sau đó copy tất cả file data *.sql của bạn vào folder upload này .

Now when you go to phpmyadmin import page you will see a drop down with list of .sql files below the browse button.

You can now select this and begin the import.

If your having problem in Windows 7 and 32 bit system you need verify that your values should be under 2048M, then only it will work.

Reason:

"The largest signed integer for a 32bit operating system is -2,147,483,647 - 2,147,483,647 since 2048M = 2147483648 bytes, it was going higher than it could calculate, so it was defaulting to a negative integer. Hence the reason why the log file states -2147483648 bytes."


Fix lỗi Script timeout passed, if you want to finish import, please resubmit same file and import will resume.


add dòng$cfg['ExecTimeLimit'] = 0;vào file config.inc.php .
bởi mặc định truy vấn ExecTimeLimit là 300 seconds.
B-
1 dùng bigdump

http://www.ozerov.de/bigdump/files/2011/10/bigdump.zip

2- dùng SQLDumpSplitter
chia nhỏ rồi import
Xem thêm bài viết cùng chuyên mục: ,

Ý kiến bạn đọc [ 0 ]


Ý kiến của bạn