Home > Database > Mysql Tutorial > mysql的导入导出_MySQL

mysql的导入导出_MySQL

WBOY
Release: 2016-06-01 13:45:48
Original
902 people have browsed it

bitsCN.com

1.导入到数据库
创建一个空数据库后
进入mysql安装目录 bin下
(1)导入命令 mysql -u root –p密码 数据库名 mysql -u root –yb  ajswlw  (2)可使用source命令
 Mysql> Use ajswlwl;
  Mysql>Source d:/ajswlw.sql
 
2.数据库导出数据文件
(1)导出mysql数据库ajswlw
进入mysql安装目录C:/Program Files/MySQL/MySQL Server 5.5/bin>
mysqldump –h localhost –u root –p ajswlw>d:/ajwlw.sql
(2)导出mysql数据库ajswlw的tb_user表及数据
进入mysql安装目录C:/Program Files/MySQL/MySQL Server 5.5/bin>
mysqldump –h localhost –u root –p ajswlw tb_user>d:/user.sql
(3)导出mysql数据库ajswlw的结构 未实现
进入mysql安装目录C:/Program Files/MySQL/MySQL Server 5.5/bin>
mysqldump –h localhost –u root –p ajswlw -add-drop-table>d:/stru.sql
3.mysql基本操作
Create database ajswlw
Create table tb_user;
Show tables;
Desc tb_user;
4.mysql对导入文件大小有限制,最大为2M,可修改配置
 在php.ini中修改参数:memory_limit=128M,upload_max_filesize=2M,post_max_size=8M
修改upload_max_filesize=200M;memory_limit=250M ,post_max_size=2000M
 
本文出自 “ITeamsky” 博客

bitsCN.com
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template