Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
129 views

I'm trying to get MySQL connector working in VScode, have used pip install mysql-connector-python to install it which seems to have worked but whenever I try to use from mysql.connector I get ...
MatCat's user avatar
  • 19
0 votes
0 answers
84 views

The following is the code block that I tried to execute: import mysql.connector cnx = mysql.connector.connect( host="127.0.0.1", port=3306, user="root", password=&...
Dhanush G. R.'s user avatar
0 votes
0 answers
104 views

I am developing a ToDo application in Python 3.13.1 with GUI in PyQt5 and connection to MySQL database via mysql-connector-python. When I run main.py, the application instantly crashes (without even ...
панимаю's user avatar
0 votes
0 answers
103 views

My Python script hangs when trying to connect my Flask app to a MySQL database using mysql-connector-python. The MySQL server is running because it runs perfectly in VSCode, but I can't connect via ...
Inez Anne-Marie's user avatar
0 votes
1 answer
536 views

I tried to connect my MySQL database from a Python script using mysql.connector, but could not be able to connect. Then I tried to connect using pymysql and the db was connected successfully. Why am I ...
Siddikur's user avatar
1 vote
2 answers
587 views

I created a new Windows 11 VM with mySQL and PyCharm installed. To test connectivity from Python to mySQL, I created the following program. print('Start mySQL Query test') import mysql.connector print(...
ScottK's user avatar
  • 1,586
0 votes
0 answers
65 views

Here's an example that doesn't work: stmt = ''' SELECT `date_new`, `event` FROM `events` WHERE `date_new` > TIMESTAMP(DATE_SUB(NOW(), INTERVAL %(days)s day)) ''' args = {'days': 30} c....
Dennis Williamson's user avatar
0 votes
1 answer
62 views

I'm using python and I'm trying to make a connection to a MySQL db. The problem is that when I run this code: import mysql.connector print('Attempting connection to database...') con = mysql....
VictorM03's user avatar
0 votes
3 answers
388 views

While trying to connect Python with SQL, it just does not work, with no errors, the execution stops itself, here's the code: import mysql.connector def appen(): print('k') mysq = mysql....
krishi's user avatar
  • 27
-3 votes
1 answer
844 views

connection = mysql.connector.connect( host=ip, user=user, password=password) Hello. I use mysql-connector-python https://pypi.org/project/mysql-connector-python ...
Владимир Фёдоров's user avatar
0 votes
3 answers
918 views

The following code is expected to print, "A", "B", and "C": print ("A") import mysql.connector print("B") mydb = mysql.connector.connect( host="...
VCD_WL's user avatar
  • 38
0 votes
1 answer
90 views

I have a clean system and installed Python and mysql-connector-python via pip. But as soon as I add attributes to mysql.connector.connect I get a segfault. So just mysql.connector.connect() works ...
user2148956's user avatar
0 votes
1 answer
561 views

When compiling my application that includes mysql.connector with pyinstaller, attempting to make a database connection in the exe results in this error: Traceback (most recent call last): File "...
Gavin Jones's user avatar
1 vote
1 answer
400 views

Situation I am trying to troubleshoot my issue between Python and MYSQL. I have found myself in a situation where I am temporarily forced to develop on a Windows 11 machine. I am not sure if that is ...
user3146788's user avatar
-1 votes
1 answer
2k views

import mysql.connector mydb = mysql.connector.connect(host="localhost", user="root", password="123456") if mysql.connector.is_connected(): print("connected")...
Nilesh Pant's user avatar

15 30 50 per page
1
2 3 4 5
38