First, download the installation
1) Install the. NET Core SDK
Download the installation from Www.microsoft.com/net/core.
2) Installing Docker for Windows
Download the installation from Http://www.docker.com/products/docker#/windows.
3) Download run MySQL container
Run under command line:
Docker pull MySQL
Run the MySQL container for the first time
Docker run--name local-mysql-e mysql_root_password=root-p 3306:3306-d MySQL
Run the MySQL container after rebooting the system later
Docker Restart Local-mysql
The MySQL client can access the local database, username root, password root, Port 3306.
4) Install the Lightweight editor visual Studio Code
Easy to use, recommended for installation.
5) Start HelloWorld
Command-line operation:
MD startmysql
CD Startmysql
If you use the VS Code editor, enter the next command, press ctrl+~ to enter the command line to continue with the command
Code.
dotnet New
dotnet Restore
Dotnet Run
6) Running Results
. NET Core, Docker, MySQL simple Journey (i)