猿问

SQLSTATE[HY000] [1044] Accès refusé pour l'utilisateur: ''@'@localhost'. Base 'testdb'

在usercontroller里面实例化了user表,然后查了下里面得数据,都是最基本最简单得操作,数据库名叫“testdb”,一直不知道问题是什么,求大神路过赐教,万分感谢

宝慕林6172458
浏览 2502回答 1
1回答

慕勒0069038

试试吧localhost改成127.0.0.1试试?
随时随地看视频慕课网APP
我要回答