Exception ‘yii\db\Exception’ with message ‘SQLSTATE[HY000] [2002] No such file or directory’in

老虎说测试 脚本开发字数 143阅读0分28秒阅读模式
摘要YII控制台操作数据库报错

YII控制台操作数据库报错

Exception 'yii\db\Exception' with message 'SQLSTATE[HY000] [2002] No such file or directory'in ..

 文章源自陈学虎-https://chenxuehu.com/article/2019/02/7394.html

解决方案文章源自陈学虎-https://chenxuehu.com/article/2019/02/7394.html

ln -s /tmp/mysql-5.5.sock /tmp/mysql.sock

 文章源自陈学虎-https://chenxuehu.com/article/2019/02/7394.html 文章源自陈学虎-https://chenxuehu.com/article/2019/02/7394.html

 
  • 版权声明:本文为原创文章,转载请附上原文出处链接及本声明。
  • 转载请注明:Exception ‘yii\db\Exception’ with message ‘SQLSTATE[HY000] [2002] No such file or directory’in | https://chenxuehu.com/article/2019/02/7394.html