
php,数据库
hello_noob
这个作者很懒,什么都没留下…
展开
-
PHP将数据库中的表导成.sql文件
header("Content-type:text/html;charset=utf-8"); //配置信息 $cfg_dbhost = 'localhost'; $cfg_dbname = 'test'; //数据库名 $cfg_dbuser = 'root'; //数据库用户名 $cfg_dbpwd = ''; //数据库密码 $cfg_db_language =转载 2017-08-04 20:55:29 · 835 阅读 · 0 评论 -
php向数据库中导入.sql文件
function insert($file,$database,$name,$root,$pwd)// { //将表导入数据库 header("Content-type: text/html; charset=utf-8"); $_sql = file_get_contents($file);//写自己的.sql文件转载 2017-08-04 21:00:18 · 5949 阅读 · 3 评论