Questions tagged [mysql-connector]

MySQL provides standards-based drivers for JDBC, ODBC, and .NET enabling developers to build database applications in their language of choice. In addition, a native C library allows developers to embed MySQL directly into their applications.

Filter by
Sorted by
Tagged with
2 votes
1 answer
52 views

Understanding mysql_stmt_bind_named_param() - MySQL C API

I refer to mysql_stmt_bind_named_param() I don't understand the example in the documentation. It uses some traceparent which is never used. I come from PHP where bind variables are using the :bindName ...
Peter VARGA's user avatar
  • 4,950
0 votes
0 answers
28 views

Unable to load class [com.mysql.jdbc.GoogleDriver]

We have just migrated to java 11 from java 8 for our appengine application. While deploying the application to appengine we are getting the following exception. Initial SessionFactory creation failed....
Vijay Chaudhari's user avatar
0 votes
0 answers
24 views

MySQL ODBC Connector Sometimes Fails to connect to my AWS RDS Database

I have a mysql 8.0 server on AWS RDS, and I have an MS Access application that connects through MySQL ODBC driver to this server. Everything has been fine for nearly a year now, but suddenly in the ...
Trenton Moore's user avatar
-1 votes
0 answers
9 views

DateTimeException: Invalid value for MonthOfYear (valid values 1 - 12): 0

I have an error value data of datetime: 0164-00-02 23:30:00. When using jdbcTemplate to retrieve SqlRowSet I got this exception log Exception in thread "main" java.time.DateTimeException: ...
leetrinh's user avatar
0 votes
0 answers
46 views

Unable to Set Up MySQL Dependency in Xcode

I am trying to connect my Xcode project to a MySQL database using the Perfect MySQL package. I'm consistently getting "file not found errors" for each of these #include lines in my mysql.h ...
Jeremy Kievit's user avatar
-2 votes
2 answers
63 views

Title: TypeError: can only join an iterable - Face Recognition Application

I am developing a Face Recognition application using Python, Tkinter, OpenCV, and MySQL. In my code, I have a function draw_boundary which draws rectangles around detected faces and retrieves ...
Rahul Koli's user avatar
0 votes
0 answers
10 views

Are results stored at server if a sql-query statement executes a Stored Procedure returning multiple results/rows? [migrated]

Background: We are using mariadb server with a mariadb-connector-cpp for establishing connection between clinet&server. At max we have 8000 rows of data (total num chars is 250 per row). Exploring ...
Rakesh's user avatar
  • 1
1 vote
0 answers
57 views

How to ensure my dependency's dependency version (where they use `>=XY`)?

I have two crates (one for this example and second is the large prod version) with identical code, and identical following dependency's versions in my Cargo.toml Example script compiles, and the other ...
Anatoly Bugakov's user avatar
-2 votes
0 answers
20 views

How to connect c program of calculating total expense to the MySQL database in phpmyadmin? [closed]

I am doing work on expense tracker application so I want c program connectivity to MySQL wamp server in phpmyadmin how to do this I am trying to but in dev c++ with installing c connector then also ...
Vaishnavi Taware's user avatar
0 votes
1 answer
17 views

VBA connect to MySQL database, but select 2 different servers

I have had the drivers recently installed on my computer to the latest version, however the database strConnection is looking for the previous driver version. If I change this, no one else will be ...
ijauhe's user avatar
  • 41
-2 votes
0 answers
30 views

classic asp equivalent to SSL Mode=None; in C# [closed]

I have a website that recently stopped working. I didn't change any code. The server is ISS10/or11?. i'm using both asp.net (C#) and classic asp pages. The pages that stopped working had all a ...
Torbjörn Lundberg's user avatar
-1 votes
2 answers
75 views

Avoid exposing DB credentials when decompiling .exe

I was just testing a DB connection on a C# project I'm working on. I was wondering if there is any protection to my credentials being exposed to a possible decompiling. public int connect_DB() { ...
RuthIsRoot's user avatar
0 votes
0 answers
26 views

cursor in mysql.connector in python keep disconnected

I'm trying to log data to table in MySQL. First function is to connect the database, second is to create table, third one is to actually log data. But after connect to database from first function, ...
THEREISNEINWAY's user avatar
0 votes
0 answers
21 views

'The user specified as a definer ('mysqladmin'@'%') does not exist' [duplicate]

I have a MVC app connected to a MySQL database. It has been running smoothly for a long time making reading and writing through Entity Framework and also directly by executing SQL-queries. However, I ...
Nielsen's user avatar
  • 25
0 votes
0 answers
31 views

Module not found: Mysql.connector

I am working on connectivity for a project, but importing mysql.connector is showing a 'ModuleNotFoundError: No module named 'mysql'' error. This isn't an issue with the code, either, since I have ...
Queryist's user avatar
0 votes
0 answers
51 views

Connecting Python to MySQL without using a connector

I have a weird case on my hands. I have a machine that is completely locked. Its a Debian 9 machine and I need to run a Python script that needs to connect to MySQL. The problem is I cant install ...
cstX's user avatar
  • 53
0 votes
0 answers
10 views

I want to Install Laragon in my Bootcamp of Windows in my mac

I have Windows 10 in my MAC and i'm using the default bootcamp of it, I'm also using apache for my class and know we have to use Laragon and install Laragon, but I have this problem when I press start ...
Eric Martín Gómez's user avatar
0 votes
0 answers
45 views

MySql Data provider for Visual Studio 2022

I recently upgraded from Visual studio 2017 to VS 2022, and i'm facing this problem with an old C# Windows Forms (.Net framework 4.5): When trying to enstablish a new connection with MySql Db I can ...
Simone D.'s user avatar
0 votes
0 answers
31 views

ProgrammingError: Syntax issue with MySQL query using + INTERVAL 14 DAY

I am working on a library automation system using Python and MySQL. In my Python script, I have the following MySQL query to create a table for loans: cur.execute(""" CREATE TABLE IF ...
Jerusha's user avatar
0 votes
0 answers
26 views

Close DB connection in Remix

I am building my first remix app and wonder how to close a database connection? I use a pool connection (mysql2) so that the connections are reused if possible. I need the database connection in each ...
Meisenmann's user avatar
-1 votes
0 answers
31 views

How do you use MySQL Connector/C++ and xdevapi in a class? [duplicate]

Using a simple main() I can create a connection to MySQL DB. Now if I create a class to handle the database functions I have compile errors with xdevapi.h. I am using VS2022 with the latest MySQL and ...
Greg's user avatar
  • 1
-1 votes
0 answers
18 views

extend built in prisma mysql database adapter to work with SSH tunnel

Looking for someone to help me with creating a custom database adapter that can just do what the built-in MySQL adapter for Prisma does but update the connection logic to work with an SSH bastion host/...
Jordan's user avatar
  • 2,411
-1 votes
2 answers
33 views

The connection between MySQL and Java projects deployed with Docker failed

All my deployments are operated on virtual machines on linux.My MySQL container maps port 3306 to port 3307 of the host, and my Java project maps port 8080 to port 8080 of the host, and both work ...
Flora's user avatar
  • 1
-2 votes
0 answers
28 views

How to insert data into a mysql table having a variable table name, through python?

How to insert data in database mysql table through python if the table name is also a variable and values are also a variable I was trying to make a table with user name And then i 'll store the data ...
Anshika Thakur's user avatar
0 votes
0 answers
23 views

How to implement the mysql module on a React JS project with webpack 5

I am starting my first project in React JS and I would need to use a PhpMyAdmin database. From what I understand I need to use the "mysql" module to be able to connect to the database from ...
Myra's user avatar
  • 1
0 votes
0 answers
14 views

i have a problem:Connection failed in mysql in my apoache netbeans

I'm facing an issue with my application where I'm trying to establish a connection to a server or database, and I'm receiving the error message "Connection failed: Communications link failure. ...
Anderson's user avatar
0 votes
0 answers
47 views

Constructing a MySQL Connector/C++ class object after one is destroyed

Using MySQL Connector/C++ 8.0 I define a Database class and construct an object of that class to connect to the database. That works fine. If that object is destroyed and I try to construct another ...
astronomerdave's user avatar
0 votes
1 answer
101 views

No database found to handle jdbc:mysql://localhost:3306/

I'm having issues executing the mvn flyway:migrate command. I keep getting issues that seem to be related to locating my database. <build> <plugins> &...
Bruno's user avatar
  • 1
0 votes
0 answers
50 views

Python mysql connector on raspberrypi

Deal all Here is the situation: Im running python 3.12.0 on a raspberry pi. With th mysql.connector i want to connecto to a database and read a table. Here is the code im using (host, user, password ...
RuddThreeTrees's user avatar
0 votes
0 answers
53 views

Can't use mysql.connector

I started to watch this cool guy's flask lessons (https://www.youtube.com/watch?v=0Qxtt4veJIc&list=PLCC34OHNcOtolz2Vd9ZSeSXWc8Bq23yEz). I got stuck on 9th lesson, where I need to create a MySQL ...
SokolSan1's user avatar
0 votes
0 answers
80 views

C API mysql_real_connect throw Segmentation fault (core dumped) when it is build by node-gyp

Issue I could run the function dosomething() when it is compiled with g++ directly. But I could not run it when it is build with node-gyp. I was able to narrow my issue down to just a few files, I am ...
Jonah's user avatar
  • 71
0 votes
0 answers
32 views

ImportError: No module named mysql.connector

I am using windows, I recently installed mysql connector, now when I am trying to establish connection with MySql I am getting the following error: "ImportError: No module named mysql.connector&...
Pankaj's user avatar
  • 11
0 votes
0 answers
23 views

MySQL - Query failed from workbench /application with Error code: 2013 lost connection to MySQL server during query

We have query with large amount of data. We are running query from workbench or application (java application) but not showing result. error: Error code:2013 lost connection to MySQL server during ...
Anil's user avatar
  • 1
0 votes
0 answers
52 views

Handling reconnection of MySQL (MariaDB) database without MYSQL_OPT_RECONNECT

Currently I have this code: Orders::Orders(QObject *parent) : QObject{parent} { QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL", "orders"); db.setHostName("...
Mark's user avatar
  • 4,448
0 votes
0 answers
26 views

mysql-connector python, Can't connect to server without database name

I want to connect to mysql server, not just one database then I want to use the 'USE db ' command to switch between them but python wont accept no database name. This is my code: global connection ...
Evo's user avatar
  • 3
1 vote
0 answers
38 views

When exactly is a connection to MySQL server secure?

I'm trying to understand the exact meaning of SSL while trying to connect to a MySQL server (via mysql-connector-python). I have MySQL (v5.7) setup locally and I have 2 users. One (root) is the ...
Vaibhav's user avatar
  • 547
0 votes
1 answer
65 views

WFLYCTL0412: Required services that are not installed

I am trying to deploy my application after change my persistence.xml but I am receiving errors relative to my persistence. I do the test connection to my MySQL DB in HAL Management Console and the ...
Cezar Apulchro's user avatar
-3 votes
1 answer
35 views

BLAZOR WEBASSEMPLY and MYSQL WORKBRENCH - DbContext problem

I am using Mysql Workbench to connect in our server, how to use it in Blazor? What is this error? Win32Exception: The parameter is incorrect. SqlException: A network-related or instance-specific error ...
Asel Dev's user avatar
0 votes
1 answer
59 views

How to resolve Spring Boot database error

I received the following error when configuring Spring Boot to MySQL and running the application. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '...
JonD's user avatar
  • 149
-1 votes
3 answers
62 views

AttributeError in Python MySQL Connector code. "No Attribute to self" after initialization

I'm encountering an AttributeError in my Python code using the MySQL Connector. I initialize my "mysql.connector.connect" and assign it to the variable "self.db_connection". When I ...
Youssof. K.'s user avatar
0 votes
0 answers
35 views

Cannot install mysql connector/net. Showing error "failed to install performance counters. (-2147024894)"

I am unable to install the mysql connector as it shows the error message "failed to install performance counters. (-2147024894)". Please provide a step by step guide if registry tools are ...
Devesh Talegaonkar's user avatar
1 vote
1 answer
60 views

Compile PHP 5.2 with an older libmysqlclient

I have a server with a newer libmysqlclient under Rocky Linux 8. For legacy purposes it needs to have PHP 5.2 compiled. My PHP 5.2 is patched for openssl 1.1. It compiles just fine when using the OS ...
Krasimir Velkov's user avatar
0 votes
0 answers
14 views

Handling connection to MySQL database problems in Python

I am trying to write a programm that uses MySQL database and came upon a problem that programm got stuck. I found what the problem was - somone cut the power to computer where MySQL server was located....
Vilhelms Balodis's user avatar
0 votes
1 answer
66 views

MySqlConnector - Parameter in dynamic string query won't be set

@pName is the parameter set in C# code by: using (MySqlCommand dynamicQueryCommand = new MySqlCommand(dynamicQueryWithParameter, conn)) { dynamicQueryCommand.Parameters.Add("@pName", ...
mitdm's user avatar
  • 23
0 votes
0 answers
98 views

Cannot load MySql.Data.dll with PowerShell

I would like to create a MySQL database connection using a PowerShell script. I have a problem loading the MySQL.data.dll with my PowerShell script. The MySQL Connector .NET 8.1.0 is installed on the ...
niilic's user avatar
  • 21
0 votes
0 answers
31 views

having issues on connecting connecting mysql workbench to Jupyter notebook

My password of contains an @ %sql sql+pymysql://root:[email protected]/database_name Please how to resolve this error MetaData.init() got an unexpected keyword argument 'bind' Connection info ...
samuel attivi's user avatar
0 votes
0 answers
37 views

Do I have to use a second variable for a MySQL string query if I want to apply a parameter via MySqlConnector into that string query? [duplicate]

Currently the only working way I found, would be to use a second variable: string myProcedure = @" DROP PROCEDURE IF EXISTS MyPersonProcedure; CREATE PROCEDURE MyPersonProcedure ( ) BEGIN ...
mitdm's user avatar
  • 23
0 votes
1 answer
35 views

I have tried to write a function to deliver an SQL query but I keep receiving an error

I am trying to write a function to create a table from user inputs (written in python3.10). Here is the code I have: `def getDatabaseCursor(host, username, password, database): global mydb ...
Dan's user avatar
  • 3
0 votes
0 answers
30 views

Can't set up connector for MySQL (MariaDB) in Java using IntelliJ on Linux (Manjaro) [duplicate]

I am doing some minor project for my work using Java with IntelliJ IDEA as IDE and Gradle. I decided to use MySQL database inside of my project. I installed MySQL from Manjaro repository and choose ...
Max Pershin's user avatar
0 votes
0 answers
37 views

C# ReplicationManager Error - ConfigurationErrorsException

I'm trying to connect to a MYSQL Database Using the MysqlConnector plugin https://www.nuget.org/packages/MySqlConnector/ var builder = new MySqlConnectionStringBuilder { Server = "127.0.0.1&...
Graven's user avatar
  • 33

1
2 3 4 5
49