parent
81ae9c56cb
commit
b2f770e890
|
@ -1,7 +1,7 @@
|
||||||
import socket
|
import socket
|
||||||
from flask import Flask, render_template, request, jsonify
|
from flask import Flask, render_template, request, jsonify
|
||||||
import json
|
import json
|
||||||
import mysql.connector
|
import MySQLdb
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ except FileNotFoundError:
|
||||||
|
|
||||||
database = config['mysql']['database']
|
database = config['mysql']['database']
|
||||||
|
|
||||||
db = mysql.connector.connect(
|
db = MySQLdb.connect(
|
||||||
host=config['mysql']['host'],
|
host=config['mysql']['host'],
|
||||||
user=config['mysql']['user'],
|
user=config['mysql']['user'],
|
||||||
password=config['mysql']['password'],
|
password=config['mysql']['password'],
|
||||||
|
|
Loading…
Reference in New Issue