title: Magento 2 Installation Fails - SQLSTATE[HY000] [1045] Access denied for user
body: <p>I am trying to install Magento 2 on Centos 7 using php 7.4 and MariaDB 10.5.8 . Everything works smooth just the part where I run the Magento 2 install script it throws the error</p>
  <pre><code>SQLSTATE[HY000] [1045] Access denied for user '*****'@'****my ip***' (using password: YES)
  
  In InstallCommand.php line 274:
  
    Parameter validation failed
  </code></pre>
  <p>I am able to connect to the remote DB using the mysql client from this web node where I am trying to install magento 2. Also am able to connect through any other machine or MySQL GUI tool. I just can't figure out what I am missing here. Also the password contains ! symbol so I am using black slash for escape character. Below is the script that I am running which fails:</p>
  <pre><code>bin/magento setup:install --backend-frontname=&quot;adminlogin&quot; \
  --key=&quot;***************************&quot; \
  --db-host=&quot;********&quot; \
  --db-name=&quot;******&quot; \
  --db-user=&quot;******&quot; \
  --db-password=&quot;*****\!***&quot; \
  --language=&quot;en_US&quot; \
  --currency=&quot;USD&quot; \
  --timezone=&quot;America/New_York&quot; \
  --use-rewrites=1 \
  --use-secure=0 \
  --base-url=&quot;*******&quot; \
  --base-url-secure=&quot;*******&quot; \
  --admin-user=sabbas \
  --admin-password=****\!**** \
  --admin-email=****** \
  --admin-firstname=fname\
  --admin-lastname=lname\
  --cleanup-database
  </code></pre>
  <p>I removed the sensitive data and replaced it with * symbols. Please help. Thanks in advance !</p>