pensiero / dockerfile-apache-php-mysql

Docker image with Apache, PHP7 and Mysql
3 stars 5 forks source link

MySQL not installed in container #2

Open eduardoplnascimento opened 3 years ago

eduardoplnascimento commented 3 years ago

I think MySQL isn't installed in this container. When I call 'mysql' in bash, the follow answer appears:

mysql: command not found

pensiero commented 3 years ago

If you'd like to run mysql inside the container, you'd need to install themysql-server. This image contains only the php extension to connect on a Mysql DB through PHP commands.

I would suggest to use a separate container to run a mysql server. This is a good base image: https://hub.docker.com/_/mysql

Mysql - Official Image | Docker Hub
MySQL is a widely used, open-source relational database management system (RDBMS).