顶部导航开始 -->

laravel SQLSTATE[HY000] [2002] Connection refused

1) 将laravel配置文件中的host:写成localhost 就可以:(如果不是本地数据库,请根据对应的ip地址填写)
                'mysql' => array(
                            'driver'    => 'mysql',
                            'host'      => 'localhost',
                            'database'  => 'homestead',
                            'username'  => 'homestead',
                            'password'  => 'secret',
                            'charset'   => 'utf8',
                            'collation' => 'utf8_unicode_ci',
                            'prefix'    => ''

自学php博客
请先登陆后发表评论
  • 最新评论
  • 总共0条评论
  • © 2014-2016 zixuephp.cn 版权所有
  • ICP证:皖ICP备16012107号
  • 联系邮箱:510082587@qq.com
  • 交流请加微信:weibobf2899 或扫下方二维码