Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

MySQL Example

Example project using mysql with pyodbc docker image.

Running

Create a .env file using the example file.

$ cp .env.example .env

Run the example.

$ docker-compose up

Output

The output of the application should look like this.

app_1    | Establishing mysql database connection.
app_1    | Create a new table for users.
app_1    | Populate users data.
app_1    | List of data.
app_1    | ID    NAME            CITY
app_1    | --------------------------------
app_1    | 1     Laura Levy      Evanberg
app_1    | 2     Justin James    Caseyport
app_1    | 3     Peggy Joseph    Baker Haven
app_1    | Closing the connection.