We'll go over each step in detail and explain what we're doing. $ docker-compose -v docker-compose version 1.25.4, build 8d51620aīasic experience using the Docker command line is useful, but not required. You should see a similar output: $ docker -v Docker version 19.03.8, build afacb8b Verify you have both installed by typing docker -v and docker-compose -v in your terminal. Linux users can follow this installation guide. It comes bundled with Docker Desktop for macOS and Windows. The official docs have an installation guide for macOS, Windows and Linux operating systems. You don't need a lot of knowledge or tools to be able to follow along with this tutorial. You'll accomplish this with minimal effort using a single command to start the entire application stack.
Or maybe you just want to quickly install MySQL, without bloating your machine, and continue working on your application.īy the end of this tutorial, you will have clean installs of MySQL and phpMyAdmin that are configured properly to just work. Why is it so difficult to simply connect to a MySQL database? You could fix it if you delve deep into networking, but who has time for that? 'mysqli::real_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known'
'MySQLInterfaceError: Can't connect to MySQL server on 'mysql''