PDA

View Full Version : گفتگو: مشکل در import کردن فایل sql در phpmyadmin



djscsi
چهارشنبه 16 اردیبهشت 1388, 12:34 عصر
من یه فایل دارم 300 مگ در موقع import بعد از چند دقیقه این ارور رو میده
You probably tried to upload too large file. Please refer to documentation (http://127.0.0.1/home/mysql/Documentation.html#faq1_16) for ways to workaround this limit.
رو documentation (http://127.0.0.1/home/mysql/Documentation.html#faq1_16)
کلیک میکنم میره به این صفحه
http://127.0.0.1/home/mysql/Documentation.html#faq1_16
و راه حل رو میگه من تمام اون کارا رو کردم ولی بازم نشد
ممنون میشم راهنمایی کنید

امید امرایی
چهارشنبه 16 اردیبهشت 1388, 13:11 عصر
http://www.directadmin.com/forum/showthread.php?p=128433

I,Nobody
چهارشنبه 16 اردیبهشت 1388, 13:24 عصر
اين مساله برميگيرده به تنظيمات php.ini
معمولاً سايز پيشفرض مجاز براي ارسال فايل، 2 مگا بايت هست.
اگر شما با PhpMyAdmin خود CPanel داريد كار ميكنيد، دسترسي به تنظيمات نداريد.
ميتونيد خودتون PhPMyAdmin رو توي وب سايت نصب كنيد و اونجا حداكثر حجم سايت رو بيشتر تعيين كنيد

__ziXet__
چهارشنبه 16 اردیبهشت 1388, 14:25 عصر
من یه فایل دارم 300 مگ در موقع import بعد از چند دقیقه این ارور رو میده
You probably tried to upload too large file. Please refer to documentation (http://127.0.0.1/home/mysql/Documentation.html#faq1_16) for ways to workaround this limit.
رو documentation (http://127.0.0.1/home/mysql/Documentation.html#faq1_16)
کلیک میکنم میره به این صفحه
http://127.0.0.1/home/mysql/Documentation.html#faq1_16
و راه حل رو میگه من تمام اون کارا رو کردم ولی بازم نشد
ممنون میشم راهنمایی کنید
اگه رو سرور میخوای این کارو بکنی بهتره بدی به ادمین سرور برات ایمپورت کنه

djscsi
پنج شنبه 17 اردیبهشت 1388, 09:34 صبح
نه دوستان تو localhost میخام این کار رو بکنم
خودش میگه این کارا رو بکن من هم همین کارو کردم نشد


1.16 I cannot upload big dump files (memory, HTTP or timeout problems). (http://localhost/home/mysql/Documentation.html#faq1_16)

Starting with version 2.7.0, the import engine has been re–written and these problems should not occur. If possible, upgrade your phpMyAdmin to the latest version to take advantage of the new import features.
The first things to check (or ask your host provider to check) are the values of upload_max_filesize, memory_limit and post_max_size in the php.ini configuration file. All of these three settings limit the maximum size of data that can be submitted and handled by PHP. One user also said that post_max_size and memory_limit need to be larger than upload_max_filesize.

There exist several workarounds if your upload is too big or your hosting provider is unwilling to change the settings:


Look at the $cfg['UploadDir'] (http://localhost/home/mysql/Documentation.html#cfg_UploadDir) feature. This allows one to upload a file to the server via scp, ftp, or your favorite file transfer method. PhpMyAdmin is then able to import the files from the temporary directory. More information is available in the Configuration section (http://localhost/home/mysql/Documentation.html#config) of this document.
Using a utility (such as BigDump (http://www.ozerov.de/bigdump.php)) to split the files before uploading. We cannot support this or any third party applications, but are aware of users having success with it.
If you have shell (command line) access, use MySQL to import the files directly. You can do this by issuing the "source" command from within MySQL: source filename.sql.

__ziXet__
پنج شنبه 17 اردیبهشت 1388, 09:45 صبح
از bigdump استفاده کن!
تو گوگل سرچ کن دانلودش کن

emadkim
چهارشنبه 28 مهر 1395, 15:55 عصر
دوستان سلام
من یک مشکلی برام پیش آمده خواستم کمک کنید
می خواهم فایلی که از php myadmin به صورت export گرفتم یعنی همان دیتا بیس
داخل لوکال هاست import کنم اما با ارور زیر مواجهه می شوم لطفا مرا راهنمایی کنید .

وبسایت وردپرس است
پنل هاست CPANEL است .
خروجی که گرفتم بصورت معمول بود

ارور :
CREATE TABLE IF NOT EXISTS `wp_commentmeta` (
`meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`comment_id` bigint(20) unsigned NOT NULL DEFAULT '0',
`meta_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`meta_value` longtext COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`meta_id`),
KEY `comment_id` (`comment_id`),
KEY `meta_key` (`meta_key`(191))
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=350