dongpai1942 2017-03-22 08:22
浏览 25
已采纳

Artisan Migrate被机器拒绝了

I try to run the following command:

php artisan migrate:install

But I got the following error: [PDOException] SQLSTATE[HY000] [220] no connection could be made because the target machine actively refused it.

I am using laravel 5.4.16, phpadmin path is http://localhost:88/phpmyadmin and .env files contents below

APP_ENV=local
APP_KEY=base64:bFUq5MLO9KoptHFMGczqxdluMDt1dQIMn54qUjzX2OU=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=127.0.0.1:88
DB_PORT=80
DB_DATABASE=angulara
DB_USERNAME=root
DB_PASSWORD=melody

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
  • 写回答

1条回答 默认 最新

  • dongyu6276 2017-03-22 08:30
    关注

    You have wrong configuration:

    DB_HOST = 127.0.0.1
    DB_PORT = 3306
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 需要跳转番茄畅听app的adb命令
  • ¥50 寻找一位有逆向游戏盾sdk 应用程序经验的技术
  • ¥15 请问有用MZmine处理 “Waters SYNAPT G2-Si QTOF质谱仪在MSE模式下采集的非靶向数据” 的分析教程吗
  • ¥50 opencv4nodejs 如何安装
  • ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
  • ¥15 nginx反向代理获取ip,java获取真实ip
  • ¥15 eda:门禁系统设计
  • ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页
  • ¥15 376.1电表主站通信协议下发指令全被否认问题
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证