aws-samples / eb-demo-php-simple-app

Apache License 2.0
148 stars 171 forks source link

Yum in unable to install mysql #7

Open jieliau opened 3 years ago

jieliau commented 3 years ago

In .ebextensions/database.conf, Yum does not have mysql available for installation. Please replace mysql to mariadb. It's working from my end to deploy EB service on AWS.

   packages: 
     yum:
       mariadb: []

Thanks.

ghost commented 2 years ago

Have to change the table creation command also? I get this error after using mariadb Unhandled exception during build: Command create-table failed

chknabeel commented 2 years ago

database.config should be updated to this to make it work:

packages: 
  yum:
    mariadb-devel: []
container_commands:
  01-create-tables:
    command: "sh db/deployschema.sh"
    ignoreErrors: true

db/deployschema.sh should be in root directory of your app.

fkromer commented 1 year ago

Replacing mysql-devel: [] with mariadb-devel: [] does the job.