0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

phpMyAdmin で 2M 以上の sql ファイルをインポートする方法

Posted at

phpMyAdmin でインポートできるファイルサイズは、デフォールトで 2MB です。
それ以上のファイルをインポートすると次のメッセージが出ます。
phpmyadmin_import.png

インポートするデータを受信できませんでした。ファイル名が送信されていないか、フ>ァイルサイズが PHP の設定で許可された最大値を超えています。FAQ 1.16 をご覧くださ
い。

Ubuntu 21.04 の Nginx での対処方法です。

PHP の設定

/etc/php/7.4/fpm/php.ini
upload_max_filesize = 4M

Nginx の設定

/etc/nginx/sites-available/default
server {

        client_max_body_size 20M;
        fastcgi_read_timeout 120;

サーバー再起動

sudo systemctl restart php7.4-fpm
sudo systemctl restart nginx
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?