Questions tagged as 'mysqlconnector'

2
answers

DO NOT enter the method of an internal class c #

I am trying to understand why it does not execute a method from a non-static public class ( public class DatosHandler ), even a static method: public class DatosHandler { public static DataTable ConsultaFacturasAll() {...
asked by 09.10.2018 / 16:42
2
answers

Trying to get property of non-object in line 18

In the line that there is error is in this: if ($resultado->num_rows() > 0) ... This is my code: <?php $mysqli= new mysqli('localhost','id5840508_root','******','id5840508_hospital '); $salida=""; $query="SELECT*FRO...
asked by 20.05.2018 / 21:30
0
answers

Problem with singleton pattern Nodejs and MySql

I turn to you to see if you can help me, since I am trying to implement a singleton pattern with node, but I have a problem since I can not generate the corresponding connection with instance, if you can guide me in what I have to change or with...
asked by 08.10.2018 / 05:22
3
answers

Error accessing SQLAlchemy and mysql database

I have installed an Ubuntu server! 6.04.4 LTS, mysql 5.7.21 and python 3.5.2. I am developing a script in python that gives me the information of the existing databases. The problem is that executing the script always gives me this error:   ...
asked by 08.04.2018 / 23:09
2
answers

I have a problem with closing connections to MSYQL using JAVA.

After executing a prepareStatement my connection to the database is closed and it does not let me continue executing sentences. I throw the exception: java.sql.SQLNonTransientConnectionException: No operations allowed after connecti...
asked by 07.11.2018 / 17:56
2
answers

Error connecting mysql base with java

I use the following code to connect to mysql public static void main(String[] args) { MapeadorServicio aux = new MapeadorServicio(); Auto aux1 = new Auto(0); Persistencia p = Persistencia.getInstancia(); p.guardar(aux); } public...
asked by 28.12.2017 / 00:24
0
answers

Does not show data in the select query

good morning, I have this query for my front of users, with PDO connection but in SQL SERVER but it does NOT show me any result as if it had nothing in the user table, but when I make an insert it is possible to insert the new user . What could...
asked by 02.01.2019 / 11:04
1
answer

PyQt5 Error connection to Mysql "Driver not loaded"

I did not manage to solve this error that appears to me when trying to connect to a Mysql database with PyQt5 Instruction used: from PyQt5.QtSql import QSqlDatabase, QSqlQuery, QSqlTableModel from PyQt5.QtWidgets import QTableView, QApplica...
asked by 23.11.2018 / 15:27
0
answers

Error in new connection to MySQL

Currently I have an application in Visual Basic .NET 2.0 developed in VS 2005, this application attacks a MySQL using the MySQL.Data.dll 6.3.0.4 connector. I have created a new MSSQL Server 2012 virtual machine with MySQL 8.0.12.0. where data...
asked by 21.09.2018 / 11:54
2
answers

Render multiple queries in Node Express

I am working with Node.js (express) and MySQL and I have had problems trying to make several queries in the same route. The error it throws is:    Can not set headers after they are sent. And the code is this: router.post('/test', funct...
asked by 09.09.2018 / 08:27