Skip to content

Windows 的WSL 执行 ./cmd install 一直提示connection refused #294

Description

@DY-d

报错如下:
已经重新安装过很多次了。

Illuminate\Database\QueryException

SQLSTATE[HY000] [2002] Connection refused (SQL: alter table pre_web_socket_dialogs add link_id bigint null default '0' comment '关联id' after owner_id)

at vendor/laravel/framework/src/Illuminate/Database/Connection.php:712
708▕ // If an exception occurs when attempting to run a query, we'll format the error
709▕ // message to include the bindings with SQL, which will make this exception a
710▕ // lot more helpful to the developer instead of just the database's errors.
711▕ catch (Exception $e) {
➜ 712▕ throw new QueryException(
713▕ $query, $this->prepareBindings($bindings), $e
714▕ );
715▕ }
716▕ }

  +18 vendor frames

19 database/migrations/2023_07_24_093619_add_web_socket_dialogs_link_id.php:21
Illuminate\Support\Facades\Facade::__callStatic()

  +22 vendor frames

42 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
[错误] 数据库迁移失败

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions