课程: Databases for Node.js Developers (2021)
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Set up MySQL
- [Presenter] As for MongoDB and Redis, we will now also create a container for MySQL for that first run Docker, "pull mysql". Also, make sure again, that your docker daemon is running, and this will pull down the latest version of the MySQL image. Next, as we did before, I do a "docker run --name". The name is "mysql", and I'm also do the port mapping, so, mapping my local port 3406 to the container port 3306, which is the default port of MySQL, and here also add one environment variable with "-e". This environment variable is all uppercase, "MYSQL_ROOT_PASSWORD" So, this will be set as the password for the root user, and I simply use my password here, needless to say that in production you want to have a way more safe password. And then in the end I also use "-d" to create daemon, and I also have to tell which image to use. It's the "mysql" image that we just pulled, and then I can hit Return. Now we have a…
内容
-
-
-
-
-
-
-
(已锁定)
When to use relational databases59 秒
-
(已锁定)
Set up MySQL3 分钟 20 秒
-
(已锁定)
Create a database schema4 分钟 17 秒
-
(已锁定)
Use Node.js with MySQL9 分钟 58 秒
-
(已锁定)
Introduction to Sequelize2 分钟 4 秒
-
(已锁定)
Add MySQL and Sequelize to your project6 分钟 28 秒
-
(已锁定)
Review the database design2 分钟
-
(已锁定)
Create sequelize models8 分钟 51 秒
-
(已锁定)
Review the auto-generated database structure2 分钟 20 秒
-
(已锁定)
Implement an order service8 分钟 29 秒
-
(已锁定)
Add order management7 分钟 13 秒
-
(已锁定)
-