thinkphp5中怎样配置数据库

2024-10-13 20:26:37

1、首先找到配置文件,在application->config.php.

thinkphp5中怎样配置数据库

3、设置命名空间和调试模式。

thinkphp5中怎样配置数据库

5、设置主机的地址,如果是在本地开发的话,就写127.0.0.1

thinkphp5中怎样配置数据库

7、接下来就是设置数据库的用户名和密码。

thinkphp5中怎样配置数据库
猜你喜欢