node.js knex mysql terminal warning error - mysql

In my node.js app I use the knex to connect to to mysql db
now I got many of warning messages:
Error: Connection lost: The server closed the connection. Ignoring invalid configuration option passed to Connection: reconnect. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection
I want to know what can I do to fix it and remove this message
While looking for result there is a link to the problem here
https://github.com/sidorares/node-mysql2/blob/master/lib/connection_config.js#L64-L74
Then I found the problem
In heroku the api add "?reconnect=true" to the connection
https://devcenter.heroku.com/articles/cleardb#provisioning-the-shared-mysql-add-on
this query string create the error.
So now I don't know what needed to be done.
Add the ?"reconnect=true" to the connection like heroku recommend
Or remove this parameter like the warning

Related

Unable to connect to 127.0.0.1:3306 in Mysql

I was creating a very large table using a python data set in the Mysql server, which I today realized was beyond the server's capacity.
Post which I am unable to connect to the server
I get the following error when I try to establish a connection on the MySQL workbench, I also get something similar when I try the same on python using MySQL connector
Following is a screenshot of the error
I tried setting up a new connection as follows, but I receive the same error:
I tried this solution, which is similar but I keep getting the following error
'mysql' is not recognized as an internal or external command,
operable program or batch file.
Is there any other way I can connect, or if there is anything I have to do before I can connect?
127.0.0.1 this server not get . Try to reconnect in another address..

Cannot connect to MySql database from Eclipse : java/sql/SQLException

I have set up a database with MySql.
I want to connect to it from Eclipse.
I followed the same steps as mentioned in this link:
https://www.zkoss.org/wiki/Setup_MySQL_DB_in_Eclipse
So I am using this library for the driver:
mysql-connector-java-5.1.45
whhich I think is correct
The name of my database is "test" and the port used by MySql is 3306.
This is my configuration:
But when I test the connection it's giving me an error message :
"An internal error occurred during: "Ping server job". java/sql/SQLException"
I have looked more in details in the error log and I see error like this:
java.lang.NoClassDefFoundError: java/sql/Connection
I have turned off my firewall just to check, but it does not solve the issue.
Can someone tell me what I should check?
Thanks
I use Java version 1.7.0_80 and Eclipse Mars.2 Release (4.5.2).
I gave up and used MysQL Workbench which meets my needs.

Is it possible to conclude if MySQL is running from PhPMyAdmin connection error page?

After reading multiple questions of users with problems like:
forgot password
installed multiple instances of MySQL
forgot to start MySQL
etc. etc
I started to consider if it is actually possible to conclude from the error page if MySQL is running at all?
Questions with the same type of answers:
mysql said: Cannot connect: invalid settings. xampp
phpMyAdmin - can't connect - invalid setings - ever since I added a root password - locked out
MySQL Says: Cannot connect: invalid settings
But does the error page actually say this is a mysql server response or it couldn't connect (server isn't running for instance)
Take the following code:
<?php
//Step1
$db = mysqli_connect('localhost','username','password','database_name')
or die('Error connecting to MySQL server.');
?>
If one of the inputs is incorrect you will get the error:
Error connecting to MySQL server.
This could be modified into a nice looking error message (as the image above).
So does the error actually prove that MySQL is running or not?
I found a video of a walkthrough on how to fix this error. In the video you can see the servers are running. I was pretty curious about this whole issue.
Link to Youtube:
https://www.youtube.com/watch?v=8fK_DYvosA8
I'm assuming if that's how it worked for the video, that's how it works in general. I'm working off the idea that something can't give you an error message unless it's running.
Sort of. phpMyAdmin generally returns the error message that it gets from MySQL, so for instance if the isn't a MySQL daemon listening on on the TCP/IP protocol, phpMyAdmin shows:
#2003 - Can't connect to MySQL server on '127.0.0.1' (111) — The server is not responding.
For an incorrect username or password, the error message is:
#1045 - Access denied for user 'root'#'localhost' (using password: YES)
"Invalid settings" usually means you have conflicting directives or incorrect information in one of your configuration statements. Without seeing your config.inc.php it's difficult to guess what's wrong here, but this also can mean something went wrong between the PHP library itself and MySQL.
The rejected connection message you posted can also have several causes.
Basically, to directly answer your question, you often can tell based on the error message returned by MySQL or the PHP library (which is the message phpMyAdmin shows). "Can't connect" means phpMyAdmin couldn't get any response from the MySQL daemon, which could have several causes but most often means MySQL isn't running. Most of the other error messages mean it's running but there was a problem connecting. Generally the error message contains some information about why.

How to solve MySQLDAC HTTP Tunnel connection

I want to connect to MySQL database using HTTP Tunnel (because port for remoting database is closed). I used mysqlDAC vcl for Delphi, when I was in design mode, i used GridView to display its data successfully.
But the problem when i compile the project, I always get this error :
Project WP.exe raised exception class HttpException with message 'Error on data reading from the connection:
A blocking operation was interrupted by a call to WSACancelBlockingCall.
Socket Error Code: 10004($2714)'. Process stopped. Use Step or Run to continue.
Can somebody help me to solve this problem? I think my connection setup is correct, because I can display the data on DBGrid when I set connection is true.

MySql cannot connect error -- it only happens sometimes

I get the following exception in my project (.NET socket server):
ERROR HY000: [ODBC Driver 3.51] Can't connect to MySQL server 'someHost' (10060)
The error does not occur every single time, though. So that rules out configuration errors or incorrect login details. Also when I show all my %max% variables, I'm not getting close on any of them. Unfortunately the verbosity of the logging cannot be changed, and the logs have not been written to recently.
What can cause these sporadic connect failures?