<name>Database Exception</name>
<message>SQLSTATE[HY000] [2002] No such file or directory</message>
还有 yii gii/model 报错
Code not generated. Please fix the following errors:
tableName: Table Name cannot be blank.
modelClass: Model Class cannot be blank if table name does not end with asterisk.
你表的名字写错了,先看看你数据库配置有问题吗main-local.php dbname和你用的是一个吗