一 $User = M('test','tp_','mysql://root:123456@localhost/new_lezhu#utf8');

  1.test        -->表名

  2.tp_         -->表前缀

  3.mysql       -->数据库类型

  4.root        -->用户

  5.123456     -->密码

  6.localhost   -->服务器ip

  7new_lezhu -->数据库名字

二 $User = M('test','tp_','MY_SQL'); 

   1.test     -->表名

      2.tp_      -->表前缀

      3.MY_SQL    -->数据库配置

tp3.2  模块单独配置数据库

tp3.2  模块单独配置数据库

相关文章:

  • 2022-12-23
  • 2021-08-14
  • 2022-01-03
  • 2021-10-04
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2022-03-07
猜你喜欢
  • 2021-10-05
  • 2021-11-29
  • 2021-09-13
  • 2021-09-09
  • 2021-09-14
  • 2021-06-15
  • 2021-08-22
相关资源
相似解决方案