在数据库配置中这么配就可以了

<?php

return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=127.0.0.1; dbname=ohmycto; charset=utf8',
    'username' => 'website',
    'password' => 'mengde1B',
];

 

相关文章:

  • 2021-06-19
  • 2021-06-12
  • 2022-12-23
  • 2021-08-13
  • 2021-11-17
  • 2021-12-23
  • 2021-06-23
  • 2021-08-11
猜你喜欢
  • 2021-07-08
  • 2021-09-17
  • 2021-12-18
  • 2021-07-08
  • 2021-12-09
  • 2021-12-12
  • 2021-11-28
相关资源
相似解决方案