. NET Core, Docker, MySQL simple Journey (i)

Source: Internet
Author: User
Tags dotnet docker run

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.