在使用 http://www.larryullman.com/2009/11/07/creating-models-views-and-controllers-in-yii-2/ 教程时,遇到如题目描述的问题,本来准备在文章下面评论做笔记的,发现“连接被重置”,开代理去评论,发现代理ip在blacklist上,于是只好写在这里 and now
在使用
http://www.larryullman.com/2009/11/07/creating-models-views-and-controllers-in-yii-2/
教程时,遇到如题目描述的问题,本来准备在文章下面评论做笔记的,发现“连接被重置”,开代理去评论,发现代理ip在blacklist上,于是只好写在这里
and now i want to record some problem i met when i learn, and also i will offer my solusion.
when i created the database my_manage_01, and then went to the http://localhost/yiitestapp/index.php/gii to click the model generator, it turn to be wrong, and it says like this:
cdbconnection failed to open the db connection: sqlstate[hy000] [1045] access denied for user 'root'@'localhost' (using password: no)
after suffering for one night, i finally find the answer. it's in the c:\xampp\htdocs\yiitestapp\protected\config\main.php, line 55. you need to add the database you created manually and so as the code.
then everthing is ok.
