0

My Magento Cloud doesn't have any passwords. I checked it in my app/etc/env.php file, and when I ran this command below.

php -r 'print_r(json_decode(base64_decode($_ENV["MAGENTO_CLOUD_RELATIONSHIPS"])));'

Magento Cloud database password

How could I set up a password for my Magento Cloud installation?

1 Answer 1

0

To add a password you need to change this configuration below in the file .magento/services.yaml.

From

mysql:
    type: mysql:10.0
    disk: 9192

To

mysql:
    type: mysql:10.0
    disk: 9192
    configuration:
      schemas:
        - main
      endpoints:
        mysql:
          default_schema: main
          privileges:
            main: admin

After that, you will need to adjust the user and password in your app/etc/env.php, you will find the user and password running this command below inside your instance.

php -r 'print_r(json_decode(base64_decode($_ENV["MAGENTO_CLOUD_RELATIONSHIPS"])));'

Reference: https://devdocs.magento.com/cloud/project/services-mysql.html#connect-to-the-database

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.