Server Side Swift with Vapor · Getting Started With Leaf | raywenderlich.com


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 Screenshot 2020-01-08 at 11.46.43 PM

Screenshot 2020-01-08 at 11.48.35 PM

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?