1.安装本地的MySql.记住用户名和密码,这里以root,root为例. 2.打开Navicat,新建连接(连接),输入连接名,用户名,密码.确定,连接测试.这里连接名为luzhanshi.这样本地的数据库已经搭建好了. 3.新建数据库,只填一个“数据库名”,其它两项可以不用管.数据库名可以和要远端的一致.这里都是“yxp”. 4.右击要导入数据库,选择数据传输. 异常:如果你是刚刚安装的数据库,并且你在导入数据库的时候包括函数,那么可能在遇到函数到时候会报错: This function h
使用MySQL的SELECT INTO OUTFILE .Load data file LOAD DATA INFILE语句从一个文本文件中以很高的速度读入一个表中.当用户一前一后地使用SELECT ... INTO OUTFILE 和LOAD DATA INFILE 将数据从一个数据库写到一个文件中,然后再从文件中将它读入数据库中时,两个命令的字段和行处理选项必须匹配.否则,LOAD DATA INFILE 将不能正确地解释文件内容. 假设用户使用SELECT ... INTO OUTFILE