There will be an error when starting the flask server, and mongodb’s server has already started.
It has been solved and I forgot to fill in the answer. …
MONGOALCHEMY_CONNECTION_STRING
= ‘mngodb://localhost:27017’
There is no need to configure the library name here