Showing posts with the label mysql-python

[FIXED] Print the actual query MySQLdb runs?

Issue I'm looking for a way to debug queries as they are executed and I was wondering if there …

[FIXED] Python's MySQLdb can’t find libmysqlclient.dylib with Homebrewed MySQL

Issue MySQL and Python installed with Homebrew I installed MySQL and Python with Homebrew on OS X …

[FIXED] Failing to install MySQL-python

Issue I am tying to install MySQL-python in a python 2.7 virtual environment but I am getting the f…

[FIXED] How can I compare a value from database to python input

Issue So I am trying to create a login system kinda, normal python terminal. I made a register func…

[FIXED] pip3.6 install mysqlclient==1.3.12 fails with error: unknown type name ‘my_bool’; did you mean ‘bool

Issue I have a project that worked on ubuntu 16.04 with python 3.6 but now we are trying to make it…

[FIXED] Handling data pulled from MySQL database in Python

Issue I am trying to figure out a good way to handle blacklists for words via a MySQL database. I h…

[FIXED] Python 32-bit can't find MySQLdb module on OS X Lion

Issue I've been tearing my hair out and trying the solutions to getting Python and MySQL to pla…

[FIXED] get raw decimal value from mysqldb query

Issue I am executing a mysql query in python using the MySQLdb package. The code looks something l…

[FIXED] Slow performance while connecting to remote mariadb database from exe built using pyinstaller on windows 10 as compared to directly from pycharm IDE

Issue I am facing slow performance while connecting to a remote mariadb database from .exe built us…

[FIXED] What's the difference between MySQLdb, mysqlclient and MySQL connector/Python?

Issue So I've been trying to do some database update with python and while setting up the whole…

[FIXED] Pythonanywhere giving MySQL connection error even without time delay

Issue I am trying to connect to my pythonanywhere DB from a local python file, using the following …

[FIXED] How to fetch integer values using parameters into a MySQL database with Python connector

Issue I am trying to fetch data from a MySQL database using python connector. I want to fetch recor…

[FIXED] Finding values in the database

Issue How can I find a value in a database by two parameters: info = db.execute ( f "SELE…

[FIXED] how to select all date exclude 30 days before today

Issue SELECT * FROM table WHERE INVOICE_DATE .....(30 days have passed since today)..... example: …

[FIXED] Preserve ordering when consolidating two lists into a dict

Issue I am using mysqldb to connect to mysql database and I get the metadata/columns in a variable …

[FIXED] Python MySQLdb issues (TypeError: %d format: a number is required, not str)

Issue I am trying to do the following insert operation: cursor.execute(""" …

[FIXED] Specifying dtypes for read_sql in pandas

Issue I would like to specify the dtypes returned when doing pandas.read_sql. In particular I am i…

[FIXED] How to write an SQL query to get all the unique IDs in this table corresponding to a name?

Issue Sl No ID right;">Name 1 145928 Jake 2 458921 Abel 3 987468 Jak…

[FIXED] How do I handle non-latin characters (i.e. С крыш наших домов) in MySQL?

Issue I'm using the mysql-connector-python library to connect and write to a MySQL 5.7 db. I&#…

[FIXED] PyQt5 Python: How to go through Individual Row of Data from MySQL Query Result

Issue I am trying to add item in a QComboBox in PyQt5 using Python. I am having problems in adding …