SQLSTATE HY000 2002 while running bake command

前端 未结 6 1926
不思量自难忘°
不思量自难忘° 2021-02-02 02:48

I have problem running the bake commands. i think it is related to mysql but i didn\'t find any solution to this error on Stackoverflow. This is my app.php:

6条回答
  •  不要未来只要你来
    2021-02-02 03:01

    can test that

     'default' => [
            'className' => 'Cake\Database\Connection',
    
            'driver' => 'Cake\Database\Driver\Mysql',
    
            'persistent' => false,
    
            'host' => 'localhost',
    
            'username' => 'root',
    
            'password' => '',
    
            'database' => 'laboiterose',
    
            'encoding' => 'utf8',
    
            'timezone' => 'UTC',
    
            'cacheMetadata' => true,
    
            'quoteIdentifiers' => false,
    
       ],
    

提交回复
热议问题