想要在thinkphp中使用pdo操作数据库,配置如下:

'DB_TYPE'   => 'mysql', // 数据库类型
'DB_USER' => 'root', // 用户名
'DB_PWD' => 'liuts2018', // 密码
'DB_PREFIX' => 'db_', // 数据库表前缀
'DB_CHARSET'=> 'utf8', // 字符集
'DB_DSN' => 'mysql:dbname=test;host=127.0.0.1;port=3306'

相关文章:

  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2021-12-10
  • 2022-01-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-12
  • 2021-10-20
  • 2022-02-01
  • 2021-08-09
  • 2021-09-27
  • 2021-11-23
相关资源
相似解决方案