I am using a private key authentication to connect to Snowflake and cannot connect using Sqitch. This is working successfully when connecting directly using snowsql.
My connect string looks like this:
sqitch status -vvv db:snowflake://username#myaccount.snowflakecomputing.com/POC_DB?Driver=Snowflake;authenticator=SNOWFLAKE_JWT;priv_key_file=/Users/username/rsa_key.p8;priv_key_file_pwd=xxxxxx;warehouse=DEFAULT_WH;uid=username
Have masked real values where needed, but these are correct as same as work direct with snowsql.
Using the -vvv option I see
[Snowflake][DSI] (20032) Required setting 'PWD' is not present in the connection settings. (SQL-28000)
and
trace: DBI::connect('DBI', 'dbi:ODBC:Server=myaccount.snowflakecomputing.com;Port=443;Database=POC_DB;Driver=Snowflake', 'username', undef, 'HASH(0x7fed7a719230)')
indicating password is "undef".
The sqitch.conf in ~/.sqitch is setup as shown here https://sqitch.org/docs/manual/sqitch-authentication/ under the don't use passwords section.
I cannot solve why it is giving me the missing PWD error, when working with snowsql?
thanks.
I did find a reference for a set up that might also achieve the connection:
https://medium.com/hashmapinc/ci-cd-on-snowflake-using-sqitch-and-jenkins-245c6dc4c205
Using ODBC and sqitch https://sqitch.org/docs/manual/sqitchtutorial-snowflake/
It also looks like this error was corrected in this gitrepo issue: #439 https://github.com/sqitchers/sqitch/issues/439
Related
I am using Duo Mobile for authentication in snowflake . I have entered username and password and warehouse details in Dbeaver. But I keep getting error
"DUO PUSH IS NOT ENABLED FOR YOUR MFA. PROVIDE A PASSCODE AS PART OF THE CONNECTION STRING" .
I have tried to see
https://community.snowflake.com/s/article/error-duo-push-is-not-enabled-for-your-mfa-provide-a-passcode-as-part-of-the-connection-string
here it says to add "passcodeInPassword=on".
Where do I need to add this?
I don't think we need to enable this parameter specifically for DUO to send the push notification. I tested this on DBeaver Community Version 21.2.2.202110030714 with a Snowflake user that is enabled for DUO and the connection (Test and Connect) works fine with the notification being received on the configured device.
You can right-click the Snowflake connection and hit 'Edit Connection' and then go to the 'Driver Properties' tab. Then, add the 'passcode' as a 'User Property' and put the actual passcode in the 'Value' field. Worked for me.
DBeaver might be using the JDBC driver to create a connection to Snowflake.
You may need to pass it in the JDBC connection string at client (DBeaver) end.
See- https://docs.snowflake.com/en/user-guide/security-mfa.html#using-mfa-with-jdbc
I'm trying to create scaledobject in keda and I'm referring the official keda documentation for this with MSSQL scaler.
While configuring connectionstring in this format "Server=example.database.windows.net;Port=1433;Database=AdventureWorks;Persist Security Info=False;User ID=user1;Password=Password#1;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;" , Is the server to be configured is same as hostname?
Basically, whether the host parameter that we specify in connection parameters explicitly is the same as the Server parameter in ADO format: ?
Can someone please help me here? After deploying my scaled object in keda with MSSQL trigger(I'm considering server name is same as host instance and configured like that) , I'm getting ready and active status as unknown.. In logs I'm only seeing that it's trying to create a HPA and then nothing happens. I guess the operator is getting stuck here. Please guide me on how to proceed to establish connection with MSSQL
As per the docs you either have to specify the connection string OR host: keda.sh/docs/latest/scalers/mssql
I'm still learning how to work with a databases using python libraries
An operational error has occurred while executing the following code
screenshot
Code snippet:
import pymysql
db1=pymysql.connect(host="127.0.0.1",user="root",password='root',port=3306,db='world')
a=db1.cursor()
sql='SELECT * from CITY'
print(a.execute(sql))
Error:
(1045, "Access denied for user 'root'#'localhost' (using password: NO)")
what could be the reason for this?
An operational error has occurred while executing the following code screenshot. what could be the reason for this?
Error in question is:
(1045, "Access denied for user 'root'#'localhost' (using password: NO)")
It reveals that you are attempting to connect without password while you actually supplied one in connection arguments. This was at one point known bug with pymysql so answer can be version dependent. If you can normally connect to mysql with mysql -u root -proot world (database, password and user from your connect arguments) that means that your database is indeed with proper credentials and expects password while connect method is not sending one, most probably due to old version. On the other hand if you can't connect then most probably your root password is blank and you need to set it properly. Also there is option that you have issues with access to database 'world' for root user.
I want to access tandem database, and for that i set
Driver : com.tandem.t4jdbc.SQLMXDriver
and test connection gives following error
com.eviware.soapui.support.SoapUIException: Failed to init connection for drvr [com.tandem.t4jdbc.SQLMXDriver], connectionString [jdbc:t4sqlmx://10.100.200.153:18650/catalog=QA_APPL;schema=APPLICATION;user=easyqa.appl;password=#QaAppl!]
IS Soupui supports this drives?
Thank you
Did you put the SQLMXDriver JDBC driver in the {your SoapUI installation}\bin\ext directory?
You should see it being loaded when SoapUI starts up.
You may also need to register it with a Groovy script:
com.eviware.soapui.support.GroovyUtils.registerJdbcDriver( "com.???.jdbc.Driver" )
I'm building the blog project example shown in the "definitive guide of symfony" (chapter 8: the model) on official webpage.
When i do operations that affects the database (like save();) in symfony, this message appears:
Unable to open PDO connection [wrapped: SQLSTATE[28000] [1045] Access denied for user 'root'#'localhost' (using password: NO)]
I tried to find errors in propel configuration files and nothing found. I just did what the guide says, nothing else. Maybe i need to create by command line the database or something like.
You need to properly configure databases.yml with a valid user and password for your MySQL server. Right now it's trying to connect as the root user with no password, and it appears that's not valid for your local MySQL configuration.