只更改了數(shù)據(jù)庫配置中的host 127.0.0.1,改成了服務器地址
// 默認數(shù)據(jù)庫
'default' => 'mysql',
// 各種數(shù)據(jù)庫配置
'connections' => [
'mysql' => [
'driver' => 'mysql',
'host' => '127.0.0.1',
'port' => 3306,
'database' => 'webman',
'username' => 'webman',
'password' => '',
'unix_socket' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
請問下,是什么原因,這個遠程數(shù)據(jù)庫在其他地方可以鏈接使用,沒問題,webman鏈接報這樣的錯