Quantcast
Channel: MySQL Forums - Connector/Python
Browsing all 384 articles
Browse latest View live

MySQL table not updated on exetcuting LOAD DATA LOCAL statement using Python...

I am attempting to execute a MySQL LOAD DATA LOCAL statement using Python. Below is the statement in MySQL which works as expected, i.e. data in file.csv is populated in MyTable. LOAD DATA LOCAL...

View Article


Transaction in MySQL Shell – Python mode with examples (no replies)

https://joshuaotwell.com/transaction-in-mysql-shell-python-mode-with-examples/

View Article


compress is not working for Windows 10 (no replies)

mysql.connector.connect(host='xxx.com', user='user_name', password='xxxx', database='test', charset='utf8mb4', collation='utf8mb4_unicode_520_ci', compress=True) When I use this code do sql = 'Select...

View Article

ConnectionRefusedError: WinError 10061 Python (3 replies)

Good Morning, Set MySQL up on my computer with seemingly no problem, Created a database "servers" and connected to it on 127.0.0.1:3306. According to the Server Status pane, the server is running....

View Article

Python dataframe (no replies)

Hello. Can you help me? How insert into dataframe column which contains sequence number order for each client: first order =1 second=2. I have table orders: columns orderid clientid orderinfo date....

View Article


Using Column Names as a Variable (1 reply)

First Post! Thank you in advance for helping me with this question that I promise am not trying to make difficult. I am writing a python script on my PI to connect to my SQL database on a subscription...

View Article

MySQL Connector/Python 8.0.21 has been released (no replies)

https://insidemysql.com/mysql-connector-python-8-0-21/

View Article

Load Data (no replies)

I have lot of csv file to load mysql But each csv file contains date in dd-mmm-yyyy format. is it possible to use Bulk load using Load Data the date field is loaded as 0000-00-00 is there a way out

View Article


unclosed files in mysql/connector/optionfiles.py (no replies)

Hi, I don't know if I am reporting a bug or my misunderstanding. I am running Python 3.8.x from a virtualenv on a Linux Mint 19.x system. I have the latest pip install of MySQL Connector for Python. I...

View Article


MySql Connector and Python (no replies)

Wondering if someone may be able to help me. I've got a Raspberry Pi4 running a Linux server (Ubuntu 20.04 LTS) and have MySql Server installed on it. I'm able to connect via MySql Workbench to the...

View Article

How to Tweak some variables in the mysql-server installation? (no replies)

- name: Override variables for MySQL (RedHat). set_fact: mysql_daemon: mysqld mysql_packages: ['mysql-server'] mysql_log_error: /var/log/mysqld.err mysql_syslog_tag: mysqld mysql_pid_file:...

View Article

flask and mysql (no replies)

Hi! I'm learning flask. I want to know what is the simple way to get data from MySQL to display is Flask's template as a tables? Thanks! Terence.

View Article

Bad magic number (no replies)

Hi there, I installed a mysql database with the python connector but when I'm trying to test if the connector works with "import mysql.connector" I'm getting the following error: ImportError: bad...

View Article


MySQL Connector/Python 8.0.22 has been released (no replies)

https://insidemysql.com/mysql-connector-python-8-0-22/

View Article

Propose improvements to the implementation of MySQLTCPSocket.open_connection...

In the current implementation, it raises an error immediately if a process fails at an ip address. Why don't all element in addrinfos try to connect at first and throw an exception? ( The current...

View Article


MySQL Python Connector - Cursor is not connected (6 replies)

import mysql.connector import datetime def connect_database(): global mydb global mycursor try: if mydb.is_connected(): pass except: try: print("\nCreating new db connection...") mydb =...

View Article

Sytax error (no replies)

## Hello, I got an error on line 11 when I run this: import mysql.connector try: conn = mysql.connector.connect\ (host='localhost', database='newbase', user='root', password='pwwwwwww#') #Creating a...

View Article


MySQL Connector/Python 8.0.23 has been released (no replies)

https://insidemysql.com/mysql-connector-python-8-0-23/

View Article

Data base connected by data not saving in mysql (1 reply)

# Note (Example is valid for Python v2 and v3) from __future__ import print_function import sys # sys.path.insert(0, 'python{0}/'.format(sys.version_info[0])) import mysql.connector from...

View Article

MySQL Connector/Python 8.0.24 has been released (no replies)

https://insidemysql.com/mysql-connector-python-8-0-24/

View Article
Browsing all 384 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>