Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Connect with database #10

Closed
JunmingZhang opened this issue Oct 20, 2021 · 3 comments
Closed

Connect with database #10

JunmingZhang opened this issue Oct 20, 2021 · 3 comments

Comments

@JunmingZhang
Copy link
Contributor

Now we are trying to connect our data entry to database, so we can actually store something in the database.

@JunmingZhang
Copy link
Contributor Author

Now I have make the basic connection (i.e., our app connects to the MySQL database), please use MySQL workbench or Navicat to check it.

To connect the database, you need to first install mysqlclient, and run

cp -r /usr/local/mysql/lib/* /usr/local/lib/

in terminal.

After that, we can begin. First, create schema and user by

mysql -u root -p < createDataBase.sql
You can find it in the sql folder. Then run python manage.py migration, now you can start the server.

@JunmingZhang
Copy link
Contributor Author

Next step, enable table file (e.x., csv, xlsx) parsing to sql table format and upload it to database.

@WindBlowDickCool
Copy link
Contributor

The authorization problem is solved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants