报错如下:
已经重新安装过很多次了。
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▕ }
19 database/migrations/2023_07_24_093619_add_web_socket_dialogs_link_id.php:21
Illuminate\Support\Facades\Facade::__callStatic()
42 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
[错误] 数据库迁移失败
报错如下:
已经重新安装过很多次了。
Illuminate\Database\QueryException
SQLSTATE[HY000] [2002] Connection refused (SQL: alter table
pre_web_socket_dialogsaddlink_idbigint null default '0' comment '关联id' afterowner_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▕ }
19 database/migrations/2023_07_24_093619_add_web_socket_dialogs_link_id.php:21
Illuminate\Support\Facades\Facade::__callStatic()
42 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
[错误] 数据库迁移失败