课程: Databases for Node.js Developers (2021)
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Create a database schema
- [Instructor] Let's now use MySQL to implement our maxcoin sample. Other than Redis and MongoDB, relational databases like MySQL rely on static table structures so-called 'schemas' to have to be defined directly inside the database. For larger systems, creating the database design is actually a science of its own. The maxcoin application though is very simple. So let's create the schema for it now. So I'm in MySQL workbench and I have the Schemas tab open and there I now right click and click on 'create schema'. And for the schema name, I will now just insert 'maxcoin'. We can leave the default for the character set and the collation which is used for sorting of strings. Next, I will click on 'apply'. And there my SQL workbench shows me the.... Actually comments that it will execute on the database and it creates schema command for the database, 'maxcoin'. Next I click apply and then I can close this. Now I have a database…
内容
-
-
-
-
-
-
-
(已锁定)
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 秒
-
(已锁定)
-