title: CakePHP 4.0 database configuration
body: <pre><code>    'default' =&gt; [
          'className' =&gt; Connection::class,
          'driver' =&gt; Mysql::class,
          'persistent' =&gt; false,
  
          'username' =&gt; 'root',
          'password' =&gt; 'root',
          'port' =&gt; '8889',
  
          'database' =&gt; 'rajasthan_skill_development',
          'timezone' =&gt; 'UTC',
  
          /**
           * For MariaDB/MySQL the internal default changed from utf8 to utf8mb4, aka full utf-8 support, in CakePHP 3.6
           */
          //'encoding' =&gt; 'utf8mb4',
  
          /**
           * If your MySQL server is configured with `skip-character-set-client-handshake`
           * then you MUST use the `flags` config to set your charset encoding.
           * For e.g. `'flags' =&gt; [\PDO::MYSQL_ATTR_INIT_COMMAND =&gt; 'SET NAMES utf8mb4']`
           */
          'flags' =&gt; [],
          'cacheMetadata' =&gt; true,
          'log' =&gt; false,
  
          /*
           * Set identifier quoting to true if you are using reserved words or
           * special characters in your table or column names. Enabling this
           * setting will result in queries built using the Query Builder having
           * identifiers quoted when creating SQL. It should be noted that this
           * decreases performance because each query needs to be traversed and
           * manipulated before being executed.
           */
          'quoteIdentifiers' =&gt; false,
  
          /*
           * During development, if using MySQL &lt; 5.6, uncommenting the
           * following line could boost the speed at which schema metadata is
           * fetched from the database. It can also be set directly with the
           * mysql configuration directive 'innodb_stats_on_metadata = 0'
           * which is the recommended value in production environments
           */
          //'init' =&gt; ['SET GLOBAL innodb_stats_on_metadata = 0'],
      ],
  </code></pre>
  
  <p>That above code where config/app.php file located so to enable database using MySQL i am unable to load database and connect with MySQL Database with that configuration where do i find error you ask :</p>
  
  <pre><code>error file 
  /Applications/MAMP/htdocs/sd/sd/vendor/cakephp/cakephp/src/Database/Driver.php
  
  SQLSTATE[HY000] [1045] Access denied for user 'my_app'@'localhost' (using password: YES)
  </code></pre>
  
  <p>I want to resort that error find a solution figure out to resolve error. 
  All help is appreciated. BAKE!</p>