This is a companion discussion topic for the original entry at https://www.raywenderlich.com/870225-server-side-swift-with-vapor/lessons/19
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/870225-server-side-swift-with-vapor/lessons/19
I am getting the following error
docker container is running
Akshays-MacBook-Air-2:TILApp akshaydevkate$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cd3e04ea6827 mysql/mysql-server:5.7 “/entrypoint.sh mysq…” 33 seconds ago Up 32 seconds (healthy) 3306/tcp, 33060/tcp mysql
Akshays-MacBook-Air-2:TILApp akshaydevkate$
no response in browser to localhost:8080
Please help @0xtim
Are you definitely running MySQL 5.7? That’s the error you get when you run MySQL 8
Yes i am using MySql version 5.7
Hmm odd, what command did you use to start the container?
I used following command
docker run --name mysql -e MYSQL_USER=til -e MYSQL_PASSWORD=password -e MYSQL_DATABASE=vapor -p 3306:3306 -d mysql/mysql-server:5.7
to execute
docker exec -it mysql mysql -u til -ppassword
to start the container i used
docker start mysql
Looks fine! How about your configure.swift? And have you run swift package update
to make sure you’re on the latest versions of things?