- Start the mysql service in phpStuday (if you do not download phpStuday from Baidu)
-
Open Navicat Premium to import the database you need for your project
-
Click connect => mysql (default user name root, password root)
- Show that the connection is successful, otherwise your username or password is entered incorrectly
- Select a new database (database name is myDB)
- Right-click to run the SQL file
- Path where the SQL file is stored
vue_api_server\vue_api_server\db
- Import success
- Start the project service Node app.js in CMD. The following figure shows that the project service node app.js is successfully started
- If your mysql username and password are not root then open the project file
config/default.json
Modify mysql