[英]codeigniter failed to access MySQL on user, but logs in just fine with root
I actually fixed my problem, I just wanted to post my solution. 我实际上解决了问题,我只想发布我的解决方案。
If someone wants to offer further thoughts for those after us that find this post, that's fine too. 如果有人想为找到我们这篇文章的我们之后的人们提供进一步的想法,那也很好。
All of my codeigniter files were copied over. 我所有的codeigniter文件都被复制了。 So I knew my php code should have been fine.
所以我知道我的PHP代码应该没问题。 My DB was exported as a .SQL file, so I didn't think that could be the problem either.
我的数据库被导出为.SQL文件,因此我也不认为这可能是问题。
And I deleted / recreated the user several times, trying to figure out what I did wrong. 然后我多次删除/重新创建了用户,试图找出我做错了什么。
Eventually I changed the host type to "localhost", as that was the only difference I could find. 最终,我将主机类型更改为“ localhost”,因为这是我可以找到的唯一区别。 In my mind this should not have fixed the problem, but the code runs fine now with no problems.
在我看来,这不应该解决问题,但是代码现在可以正常运行了,没有任何问题。
Phrases I searched on Google for: 我在Google上搜索的短语:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.