Python_Mysql_Connector (Web Version)
Connect to mysql database using python (web version)
Requirements:
NodeJs 16.13.2
Python 3.10
Mysql 8.0.28
Initialize the project
⚜ NodeJs
🟣Making package.json
npm init -y
🟣Install all required dependencies
npm install typescript express
🟣To make index.js
tsc index.ts
⚜ Python
🟣Install mysql
pip install mysql
⚜ Mysql
🌐 Make a Mysql database
Running the project
🟣 Start the code
node .
Note:
🔰 Change mysql connectivity details according to your credentials.
🔰 Make a password.txt
file to put mysql password.
🔴 Can only be use on localhost if you dont change the host.
To see this code running go to port 3000