xxxxxxxxxx
Powersell Adminintrator:
Get-AppXPackage Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
xxxxxxxxxx
sudo apt-get install libmysqlclient-dev
sudo apt-get install libssl-dev
pip install mysqlclient
xxxxxxxxxx
1: Install PyMySQL:
pip install pymysql
2: Update your main.py to use PyMySQL by adding the following lines before creating the engine:
import pymysql
pymysql.install_as_MySQLdb()
3: Ensure that your database URL is correctly configured to use mysql+pymysql:
DB_URL = "mysql+pymysql://user:password@host/dbname"