当前位置:网站首页>解决Thinkphp框架应用目录下数据库配置信息修改后依然按默认方式连接
解决Thinkphp框架应用目录下数据库配置信息修改后依然按默认方式连接
2022-07-05 19:56:00 【德宏大魔王】
背景:这一类问题,我碰到了两次,虽然是php开发者,但是很多东西要不是工作接触代码太多,可能都没发现。。。
在修改了application下的database.php后依然报错
而我的数据库配置database.php是这样的:
【黑人问号】
于是解决办法:
修改根目录下的.env文件即可

修改后测试运行是否正常:
正常运行,完结撒花!
既然大家都不愿意看那我就留在最后
️️️ 希望我的这篇文章能对你的有所帮助!
愿自己还有你在未来的日子,保持学习,保持进步,保持热爱,奔赴山海! ️️️
愿自己还有你在未来的日子,保持学习,保持进步,保持热爱,奔赴山海! ️️️
愿自己还有你在未来的日子,保持学习,保持进步,保持热爱,奔赴山海! ️️️
愿自己还有你在未来的日子,保持学习,保持进步,保持热爱,奔赴山海! ️️️
以上就是今天深夜做的一个小笔记希望对你有帮助!!!
边栏推荐
猜你喜欢

淺淺的談一下ThreadLocalInsecureRandom

Jvmrandom cannot set seeds | problem tracing | source code tracing

Zhongang Mining: analysis of the current market supply situation of the global fluorite industry in 2022

How to apply smart contracts more wisely in 2022?

leetcode刷题:二叉树16(路径总和)

通过POI追加数据到excel中小案例

【无标题】

Do you know several assertion methods commonly used by JMeter?

The city chain technology Digital Innovation Strategy Summit was successfully held

third-party dynamic library (libcudnn.so) that Paddle depends on is not configured correctl
随机推荐
Bitcoinwin (BCW) was invited to attend Hanoi traders fair 2022
gst-launch的-v参数
BZOJ 3747 POI2015 Kinoman 段树
ACM getting started Day1
Worthy of being a boss, byte Daniel spent eight months on another masterpiece
Where is the operation of new bonds? Is it safer and more reliable to open an account
股票开户哪里好?网上客户经理开户安全吗
S7-200SMART利用V90 MODBUS通信控制库控制V90伺服的具体方法和步骤
Successful entry into Baidu, 35K monthly salary, 2022 Android development interview answer
Go language | 01 wsl+vscode environment construction pit avoidance Guide
C - sequential structure
爬虫练习题(二)
打新债在哪里操作开户是更安全可靠的呢
Gstreamer中的task
Do you know several assertion methods commonly used by JMeter?
Force buckle 1200 Minimum absolute difference
深度學習 卷積神經網絡(CNN)基礎
c语言oj得pe,ACM入门之OJ~
函数的概念及语法
618 "low key" curtain call, how can baiqiushangmei join hands with the brand to cross the "uncertain era"?
