I am attempting to deploy my project to DigitalOcean, My app was built with React node.js and a MySQL database. My attempts to deploy are met with a nonzero error indicating an
" UnhandledPromiseRejectionWarning: SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.0:3306 at ConnectionManager.connect ..."
I'm not sure how to correct this error.
They (DigitalOcean) have stated I need to add the correct variables for Build and Run_time in their UI, but I am not sure again how this is exactly done.
Any help from someone with a similar issue or familiar with the deployment process?
Related
I have a need to run mysql queries within gulp to check certain fields in a table. I currently connect to a development server via ssh tunnel, which is opened via terminal so that my host is set to 'localhost'.
When I execute a connection attempt, the tunnel crashes with:
channel 4: open failed: connect failed: Connection refused
Then the server process crashes with an out of memory error.
We use node-mysql2 and a ssh tunnel to run GraphQL locally for testing, so I can't think of anything in particular in gulp that would cause what is essentially a race condition almost instantaneously from the time that the gulp command is sent.
Gulp Code:
If anyone has any insights I'd be much obliged.
Fix can be found here, thanks to the mysql2 developer for pointing me in the right direction!
More info on fix here:
https://stackoverflow.com/a/30669454/705115
I am stuck with this error for close 2 days yet could not find a solution to solve this.
I am currently using Sequelize version "^4.37.10" and mysql2 version "^1.5.3". Previously it was working fine until 2 days ago I got hit with this error.
I am not connecting it to a local database but a database from heroku, so I believe the following method which I found online does not really solve my issue:
update user set authentication_string=password(''), plugin='mysql_native_password' where user='root';
Error log:
Unhandled rejection SequelizeConnectionError: Client does not support authentication protocol requested by server; consider upgrading MySQL client
debuggability.js:868
at Utils.Promise.tap.then.catch.err (c:\Users\User\Desktop\nodejstest\testmysql\webapp\node_modules\sequelize\lib\dialects\mysql\connection-manager.js:149:19)
at tryCatcher (c:\Users\User\Desktop\nodejstest\testmysql\webapp\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (c:\Users\User\Desktop\nodejstest\testmysql\webapp\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (c:\Users\User\Desktop\nodejstest\testmysql\webapp\node_modules\bluebird\js\release\promise.js:569:18)
Did I accidentally deleted some files or what ? How can I solve this ? I have also tried removing mysql2 and sequelize modules and reinstall but still did not work. Even after deployment to Heroku, this error still exists. Appreciate your help.
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.
For deploying blockchain in an IBM Cloud Container Service, I am following the steps outlined on https://github.ibm.com/IBM-Blockchain/ibm-container-service/blob/v1.0.0/cs-offerings/free/README.md
while running the script "create_all.sh" I am getting the following error repeatedly:
Unable to connect to the server: dial tcp 127.0.0.1:8080: connectex: No connection could be made because the target machine actively refused it.
Waiting for createchannel container to be Completed
I have already tried starting the procedure from the first step all over again. But no luck so far. Not sure why I keep getting this error.
Any help or hint in this regard will be of great value to me. Thanks!
The environment variable KUBECONFIG should be pointing to the correct "kube config yml" file.
I am new to both php and Heroku and I have run into a bit of a problem. Currently my application is running fine on my xxamp testing server with mysql however when I try to host it on Heroku, there is no connection to the MySql server.
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111)' in /app/www/pdo_testdb_connect.php:6 Stack trace: #0 /app/www/pdo_testdb_connect.php(6): PDO->__construct('mysql:host=127....', 'd2398h23d9d82j3', '8dj1292d3') #1 /app/www/all.php(6): testdb_connect() #2 {main} thrown in /app/www/pdo_testdb_connect.php on line 6
Does ClearDB not work with PHP? Any suggestions would be much appreciated as I've sort of hit a brick wall.
Here is the php integration of Cleardb with Heroku:
define ('DB_USER','xxxxxxxxxxxxxxxx');
define ('DB_PASSWORD','yyyyyyyyyyyyyy');
define ('DB_HOST','us-cdbr-east.cleardb.com');
define ('DB_NAME','heroku_zzzzzzzzzzzzzzzzzz');
Take the params by going in Git and typing heroku config.
You will see a CLEARDB_DATABASE_URL
Here is how to decode it:
mysql://xxxxxxxxxxxxxx:yyyyyyyy#us-mm-auto-dca-01.cleardb.com/heroku_zzzzzzzzzzzzzzz
Interestingly enough, in the official documentation they provide only a Ruby example but nothing about php..
http://devcenter.heroku.com/articles/cleardb
heroku config | grep CLEARDB_DATABASE_URL