docker mysql

docker run -p 3306:3306 --name mymysql -v $PWD/mysql.conf.d:/etc/mysql/mysql.conf.d/ -v $PWD/logs:/var/log/mysql -v $PWD/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.6

 

Update-Database -context SocialClass.WebApi.SqlServerDesignTimeDefaultDbContext
Add-Migration school -context "SocialClass.WebApi.SqlServerDesignTimeDefaultDbContext"

 

posted @ 2018-03-15 22:44  shiningrise  阅读(362)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css