博客
关于我
Linux phpMyAdmin 导入大文件
阅读量:124 次
发布时间:2019-02-26

本文共 673 字,大约阅读时间需要 2 分钟。

我们用phpMyAdmin导入SQL文件的时候,一般最大不会超过64M,但是有时很多情况下导入SQL文件都超过了64M,所以需要我们重新配置下phpmyadmin

一、修改 phpMyAdmin 配置文件

修改 config.inc.php,有的版本可能只有config.sample.inc.php,可以复制一份重命名为 config.inc.php。

将其中的:    $cfg['UploadDir'] = ' ';修改为:    $cfg['UploadDir'] = 'ImportFile';

这里写图片描述

二、在phpMyAdmin 下新建立一个目录名称为 ImportFile,并将 SQL文件放到这个目录

[root@iZbp1bhgh25pacaj2ffmp2Z phpmyadmin]# mkdir ImportFile[root@iZbp1bhgh25pacaj2ffmp2Z phpmyadmin]# cd ImportFile/[root@iZbp1bhgh25pacaj2ffmp2Z ImportFile]# lsbajie20.sql[root@iZbp1bhgh25pacaj2ffmp2Z ImportFile]# du -sh bajie20.sql 104M    bajie20.sql

这里写图片描述

三、重新登录phpMyAdmin,导入SQL

这里写图片描述

备注:只有我们将 SQL文件放到服务器的目录里面,才会显示后面的选择框


扩展

MySQL 设置数据库表名不区分大小写

[mysqld]lower_case_table_names=1
你可能感兴趣的文章
NN&DL4.8 What does this have to do with the brain?
查看>>
nnU-Net 终极指南
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>