cytopia / devilbox

A modern Docker LAMP stack and MEAN stack for local development
http://devilbox.org
MIT License
4.39k stars 654 forks source link

I wonder how to connect to mysql #221

Closed ProjectKarol closed 6 years ago

ProjectKarol commented 6 years ago

I love devilbox a lot , I am looking for some solution with I don't know how to resolve, I have wordpress installation and would like use this script "wordmove" (https://github.com/welaika/wordmove) , to deploy do server. I don't know how to set up connection to mysql . Installed wordmove globally on my linux machine. I use ubuntu 16.04, Docker version 18.03.0-ce, docker-compose version 1.20.0-rc1 I wonder do it possible. Than you for you great product.

cytopia commented 6 years ago

To connect to mysql, just use 127.0.0.1 as its host address, user: root and the password you have specified in .env (which is empty by default)

ProjectKarol commented 6 years ago

Thank you for your, reply.

I manage for connect to mysql, but I meet another problem, ( probably i did something wrong ). Firstly i installed globally mysql and wp-cli globally on my machine, but when I connect to mysql on my machine show databases form machine, so after that I thought better to work inside devilbox container. But to install mentioned above script i need ruby in higer version ruby error I i even add image ruby 2.4 to docker-compose.yml but again I miss something.

My question is do is possible to update ruby version.

cytopia commented 6 years ago

You will have to connect to 127.0.0.1 when Devilbox MySQL is running.

For the Ruby version, please open up an issue here: https://github.com/devilbox/docker-php-fpm

cytopia commented 6 years ago

I added an issue there for you: https://github.com/devilbox/docker-php-fpm/issues/19