- 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.
- 計算機網(wǎng)絡(luò)與通信(第2版)
- Building Django 2.0 Web Applications
- Hands-On Chatbot Development with Alexa Skills and Amazon Lex
- 無人機通信
- 網(wǎng)絡(luò)的琴弦:玩轉(zhuǎn)IP看監(jiān)控
- Getting Started with WebRTC
- 2018網(wǎng)信發(fā)展報告
- 計算機網(wǎng)絡(luò)與通信(第2版)
- 物聯(lián)網(wǎng)長距離無線通信技術(shù)應(yīng)用與開發(fā)
- 基于性能的保障理論與方法
- 5G技術(shù)與標(biāo)準(zhǔn)
- 語音信號處理及Blackfin DSP實現(xiàn)
- 物聯(lián)網(wǎng)工程概論
- INSTANT LinkedIn Customization How-to
- 現(xiàn)場綜合化網(wǎng)絡(luò)運營與維護(hù):運營商數(shù)字化轉(zhuǎn)型技術(shù)與實踐