Error in ballerina Sql connector configurations - wso2

I have an issue with the mysql connector when i'm trying to make a connection with a staging database. There is no issue with the connection when I try locally. The error is attached below
The staging Db configs are as follows.
[mysqld] max_allowed_packet=1G
Thanks!

Related

403 Forbidden Error Superset Test Connection

I have a Superset, while deployed on PROD, I get Auth error whenever I try to Add any database.
As I test I tried Test Connection with Example database that also give the same error.
Surprisingly there is no error in any backend logs
Check if you have the right driver installed in the running superset environment

Error occured during project deployement in pythonanywhere

I have done it many times in windows operating system but now i am using Ubantu as my primery system. So when i tried makemigrations command inside my project directory(server) pythonanywhere bash throw below error.
(myproject) 07:29 ~/Product-Management-System (master)$ python manage.py makemigrations
django.db.utils.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
Please someone help me!!
It sounds like you haven't configured your database correctly in your settings.py. It's trying to connect to a MySQL database running on the computer where the Django code is running, and there is no database server there.
On PythonAnywhere, you should go to the "Databases" page and set up a MySQL server for your project there. Then, in your settings.py, set up the connection settings -- HOST should be the one that is displayed on the "Database" page when the MySQL server has been created, as should USER, and the PASSWORD should be the one you specified when you created the server. PORT should just be an empty string.

Identity Server chpasswd.sh script not working with PostgreSQL database

I'm receiving the following response while running the below command in my Identity Server /bin folder:
./chpasswd.sh --db-url "jdbc:postgresql://localhost:5432/wso2registry_db" --db-driver "org.postgresql.Driver"
Database driver [org.postgresql.Driver] not found in classpath.
Can someone point me in the right direction?
References:
WSO2 API Manager: chpasswd.sh does not work when using external database
Copy the database driver jar to the [CARBON_HOME]/lib directory and try your command.

Can't host localhost create Django application in Openshift

I have Django-1.6 connected to Mysql and running in my local-host. I push that asowac project to github to host in open-shift. Then I created a application called asowac-attsoc.rhcloud in open-shift and connect it to the github asowac repository. But now it show me 404 error when go the URL. What is the reason for this and how can I fix this error?
This is the error

PostgreSQL psql: could not connect to server: Connection refused

I am making my first Django app and am trying to deploy to Heroku. I am using a postgres database. My app works fine when I run it on localhost. I pushed my project to Heroku and when I attempt to go to the site I get the following error:
"psql: could not connect to server: Connection refused Is the server running on host
host.domain.com and accepting TCP/IP connections on port 5432?"
So I have been searching endlessly to the solution for this problem, and of the few I have found, NONE can explain clearly the steps involved in changing the postgres settings from localhost. Apparently I am supposed to change a setting in a postgres config file that I cannot find any trace of on my computer, and I can't find command line instructions either. Even the postgres docs don't help.
Can anyone help me to solve this?
Since you pushed your project to Heroku, changing files for your local Postgres installation is irrelevant to the problem.
The question is: Does the remote Postgres installation on Heroku allow remote access? And if yes, what are the exact credentials? For starters, I doubt you can use the standard port 5432. And you may need sslmode=require.
Consult Heroku for the actual credentials. This site may help:
https://devcenter.heroku.com/articles/heroku-postgresql#external-connections-ingress