问题描述
如果我的主机不允许我将文件直接上传到我的 mysql 文件夹我只能通过 phpmyadmin 这样做吗?除了其本机导入功能外,还有其他选择吗,以便我的连接在上传大约 8mb 的查询时不会超时?
if my host does not allow me to upload a file directly to my mysql folder and i can only do so throught phpmyadmin? are there any alternatives aside from its native import feature so that my connection would not time out while uploading a query that's around 8mb?
推荐答案
您可以 gzip 或 bzip 文件,phpMyAdmin 将解压并运行脚本.
you can gzip or bzip the file and phpMyAdmin will decompress and run the script.
否则我过去必须做的是将我的 SQL 拆分为多个文件并单独加载每个文件.您只需在文本编辑器中打开 SQL 文件,向下滚动大约一半,找到语句的开头,然后将其后的所有内容移动到另一个文件中,即可完成此操作.
otherwise what I've had to do in the past is split my SQL into a number of files and load each one individually. You can do this simply by opening the SQL file in a text editor, scroll to about half way down, find the start of a statement and move everything after that into another file.
这篇关于如何通过 phpmyadmin 导入一个非常大的查询?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)