- Hands-On Full-Stack Web Development with GraphQL and React
- Sebastian Grebe
- 206字
- 2021-07-02 13:20:48
Creating a database in MySQL
Before we begin with the implementation of our back end, we need to add a new database that we can use.
You are free to do this via the command line or phpMyAdmin. As we have just installed phpMyAdmin, we are going to use it, of course.
You can run raw SQL commands in the SQL tab of phpMyAdmin. The corresponding command to create a new database looks as follows:
CREATE DATABASE graphbook_dev CHARACTER SET utf8 COLLATE utf8_general_ci;
Otherwise, you can follow the next steps to use the graphical method. In the left-hand panel, click on the New button.
You will be presented with a screen like the following. It shows all databases including their collation of your MySQL server:

Enter a database name, such as graphbook_dev, and then choose the uft8_general_ci collation. After doing so, click on Create.
You will see a page that says, No tables found in database, which is correct (for now). This will change later, when we have implemented our database models, such as posts and users.
In the next chapter, we will start to set up Sequelize in Node.js, and will connect it to our SQL server.
- 智慧城市:大數(shù)據(jù)、互聯(lián)網(wǎng)時(shí)代的城市治理(第4版)
- 微商之道
- 數(shù)字烏托邦
- 重新定義Spring Cloud實(shí)戰(zhàn)
- 農(nóng)產(chǎn)品物聯(lián)網(wǎng)研究與應(yīng)用
- 計(jì)算機(jī)網(wǎng)絡(luò)與數(shù)據(jù)通信
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見(jiàn):2015年中國(guó)互聯(lián)網(wǎng)安全大會(huì)文集
- CCNP TSHOOT(642-832)認(rèn)證考試指南
- 網(wǎng)絡(luò)工程實(shí)施技術(shù)與方案大全
- 組網(wǎng)技術(shù)與網(wǎng)絡(luò)管理
- 一本書(shū)讀懂TCP/IP
- 小型局域網(wǎng)組建
- Cisco無(wú)線局域網(wǎng)配置基礎(chǔ)
- 物聯(lián)網(wǎng)傳感器技術(shù)與應(yīng)用
- 網(wǎng)絡(luò)是怎樣連接的