phpMyAdmin管理mysql的有用小技巧
来源:互联网 发布:mysql mha 编辑:程序博客网 时间:2024/05/04 11:18
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'] 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 of this document.
- Using a utility (such as BigDump) 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.
数据备份和恢复
默认的数据导出、和导入最大文件有2M的最大限制。如果要操作大于2M的数据库备份文件就需要预先将文件上传到phpmyadmin的某个目录。
1.首先在phpmyadmin个跟目录建立一个目录,比如叫ports
2.在config.default.php中搜$cfg['UploadDir'],这个变量定义保存导入文件存放的目录,它下面的$cfg['SaveDir']定义的是数据导出文件的存放目录,我们都定义为ports
$cfg['UploadDir'] = 'ports';
$cfg['SaveDir'] = 'ports';
要注意的是ports目录的权限,saveDir只要能让php脚本往里边写东西。最后的就是操作完了,务必清空改目录,防止数据被别有用心的人下载。
2.导入Excel数据到Mysql中
- phpMyAdmin管理mysql的有用小技巧
- mysql数据库的管理-------phpMyAdmin
- iOS 有用的小技巧
- 收集的有用的Javscript小技巧
- 有用的Ipad APP 开发小技巧
- 一些有用的电脑小技巧
- Matlab有用的小工具小技巧
- 生活中有用的小技巧
- 12个有用的js小技巧
- FreeBSD的管理小技巧
- 时间管理的小技巧
- 内存管理的小技巧
- 代码管理的小技巧
- 使用phpMyAdmin管理MySQL数据库
- 配置phpMyAdmin管理MySQL/MariaDB
- 使用phpmyadmin管理多台MySQL服务器的方法
- 非常有用的个小技巧 JS的.
- 分享:office2010的一些有用的小技巧
- PHP字符串函数和正则表达式
- 解决自定义字段问题
- 精通COBOL--16.7.1 读取文件
- 精通COBOL--16.7.2 写入文件
- 精通COBOL--16.8 CICS中的队列
- phpMyAdmin管理mysql的有用小技巧
- 我的日志记录组件
- 滚动对联
- McCain trots on
- 精通COBOL--16.9 小结
- Flash里简单Loading制作
- vim 快捷键 - 小兵的工具箱 - CSDNBlog
- MII 接口
- VC环境下利用ATL开发COM组件