pbootcms程序MySQL怎么实现本地搬家到服务器?对于在本地做完测试的同学这篇文章还是可以帮助到你的。
1、修改数据库配置文件,在根目录依次打开,config/database.php

pbootcms MySQL版本本地搬家到服务器
上图是 默认的本地pbootcms mysql数据库配置,修改数据库配置文件

pbootcms MySQL版本本地搬家到服务器
数据库服务器 修改成localhost或127.0.0.1,如果数据库不是本机的,输入相应的数据库服务器IP
数据库连接用户名 修改成新的数据库用户名,密码也是
端口默认即可
数据库名:默认的 ‘dbname’ => ‘pbootcms’,修改成’dbname’ => ‘新的数据库名称’
2、将所有文件打包压缩,上传到服务器,然后解压缩

pbootcms MySQL版本本地搬家到服务器

pbootcms MySQL版本本地搬家到服务器
3、导出本地的数据库文件

pbootcms MySQL版本本地搬家到服务器
将原来的数据库导出

pbootcms MySQL版本本地搬家到服务器

pbootcms MySQL版本本地搬家到服务器
4、导入数据库脚本:在服务器上使用phpmyadmin 打开新的数据库,将本地导出的sql文件导入

pbootcms MySQL版本本地搬家到服务器
以上就是PBCMS教程的pbootcms MySQL版本本地搬家到服务器的详细教程,如果此方法还不能解决可以在下方留言探讨一下pbootcms MySQL版本本地搬家到服务器到底该如何解决,更多PbootCMS教程文章可以浏览pbcms教程栏目,同时关注我们万条网发布的最新pbcms模板有可能是您正好需要的网站模板。
文章原文链接:https://www.wantiao.net/154.html,转载请注明出处。免责声明:本站资源均来自互联网,仅供研究学习使用,禁止违法违规使用,产生法律纠纷本站概不负责!本站信息来源于网络,版权争议与本站无关。如有侵权请邮件与我们联系处理,敬请谅解!
请先
!