React - antd-mobile mobile terminal project (Hokey Rent a house)

React - antd-mobile mobile terminal project (Hokey Rent a house)

Step 1: Create a Startup Project

1. Create project npx create-react-app hkzf-mobile
2. npm start (yarn start)

react
You can see this picture to show that the project has started successfully.

Step 2: Start the background database

Clean up MySQL first (you can see it if you need it, skip it if you don’t need it)

  • Enter services.msc in the local cmd and press Enter to enter the service management window and stop the MySQL service.
  • Enter regedit to open the registry

insert image description here
Delete the following files:

  • HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Applications/MySQL
  • HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Applications/MySQL
  • HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Applications/MySQL
  • HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL folder

Start MySQL

insert image description here
Open the MySQL client
insert image description here

  • Note: Double-click the root to expand several pieces of data
  • Right click on root to create a new database

insert image description here

  • Then right-click on hkzf
    insert image description here
    Note: npm start connection data end! ! !

  • On the page localhost: 8080 open

insert image description here

When you see this interface document, you have successfully connected to the database!

Guess you like

Origin blog.csdn.net/weixin_53532986/article/details/121223747
Recommended