I have just started using Pimcore and deployed its a mysql database on another server. During its installation, it couldn't connect to the database. I created the database yml file using this link https://pimcore.com/docs/5.x/Development_Documentation/Getting_Started/Advanced_Installation_Topics.html for the configuration and still does not work. It only works when the database is on the same server as pimcore. The error it gave when I do a remote connection is this:An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'SSL_USER'#'x.x.x.x' (using password: YES).
The yml file I created looks like this:
parameters:
database_credentials:
user: SSL_USER
password: password
dbname: project_database
# env variables can be directly read with the %env() syntax
# see https://symfony.com/blog/new-in-symfony-3-2-runtime-environment-variables
host: x.x.x.x (Ip address of db server)
port: 3306
Please take a look, you are using 'SSL' reserved word in your username.
Just use another username.
Please see the list of reserved words here: https://dev.mysql.com/doc/refman/8.0/en/keywords.html
Related
I can't connect to an mssql server using Windows Authentication on data-atom. I've successfully connected to servers using SQL server authentication, so I know data-atom is working. However, I can't figure out the proper parameters for windows authentication.
I normally log in using runas.exe /netonly /user:REALDOMAIN\YOURDOMAINUSERNAME Ssms.exe and then do windows authentication from there.
I've launched atom both using the netonly runas commands and normally. However, I am not able to find the proper parameters to connect to the server.
I've tried doing
{
name: WindowsAuth
protocol: "mssql"
user: = Username
password: ""
server: <ServerName>
database: "Master"
options: "domain=remoteDomain"
}
and
{
name: WindowsAuth
protocol: "mssql"
user: = remoteDomain\Username
password: ""
server: <ServerName>
database: "Master"
options: "domain=remoteDomain"
}
The first thing to know is that many data-atom connection questions can be resolved by looking at the documentation for tedious.js
In this specific case, even though you are using windows authentication, you need to give your username and password. Furthermore, the domain information is case sensitive, and needs to be stripped of anything like .local or .com.
Finally, you should not include any options related to trustedConnection. The domain option is sufficient.
My final configuration looks like
{
name: WindowsAuth
protocol: "mssql"
user: = remote_domain_username
password: password
server: server_name
database: root_db
options: "domain=remote_domain_match_case"
}
Though, it is best practice not to store your password in your config file. Instead, type it in whenever you open a new connection.
I'd like to know if the Plotly Database Connector (when doing a SQL Server connection) supports a SQL Server Express edition database.
I tried to connect using the sa username and its password but nothing happened. I get the error:
Failed to connect to [hostname]:[PortNumber] - connect ECONNREFUSED [my IP address]:[PortNumber]
These are my inputs:
Username: sa
Password: mypassword
Host: myHost (SQL Server Express as my instance)
Port: (I left this port blank)
Database: myDB
So, it is compatible? Or does it only work with (full) SQL Server?
Well I achieved to connect SQL SERVER Express with the Plotly Database Connector, so I hope this answer helps someone in the future!
First of all I asked in its GitHub page and the developer answered with a reference of the same problem and its solution.
Basically you have to search and modify the file named: connection-manager.js
Which was located in this directory: C:\Users\Arturo\AppData\Local\Programs\plotly-database-connector\resources\app\node_modules\sequelize\lib\dialects\mssql\connection-manager.js after I installed the Connector in my PC (your path may vary).
Then, you open it, and, in the line 42 you'll see this code (if it isn't in that line just look up for the code) :
var connectionConfig = {
userName: config.username,
password: config.password,
server: config.host,
options: {
port: config.port,
database: config.database
}
The problem here is that you have to give it the instance name, so, we will add one line more of code:
var connectionConfig = {
userName: config.username,
password: config.password,
server: config.host,
options: {
port: config.port,
database: config.database,
instanceName: 'SQLEXPRESS'//this line.
}
And that's it! We save the file and restart our Plotly Database Connector, after doing it we introduce our credentials as usual (without the \sqlexpress in the host field) and it will work!
Note: If you have a text editor like SublimeText, it's easier to find the code that I'm showing, just press Ctrl+Shift+F and search by folder, inserting the full path of the Plotly Database Connector.
I have a database created in SQL Server with the following configuration:
Also, I am trying to connect to the database named EDS.
For that I created the following details:
Should i have domain in the string or should it be in the username?
When i go to the database properties i see the owner has.
Also, is the url correct on the instance part according to the image? it looks like it is not able to go to that particular instance.
Also, this is the configuration for the connection (using Windows Authenticaton)
When I put in the username I am getting the following error log:
com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user '. ClientConnectionId:e812971f-b03c-4210-9dbd-de0791bcc304
When specifying the location of the SQL Server instance, one normally provides serverName\instanceName or serverName:portNumber, not both. That is, either
jdbc:sqlserver://INNOWAVE-99\SQLEXPRESS01;databaseName=EDS
or
jdbc:sqlserver://localhost:1433;databaseName=EDS
(assuming that the SQLEXPRESS01 instance has been explicitly configured to listen on port 1433, which is not usually the case for a SQL Express instance).
As mentioned in the documentation for Building the Connection URL
If both a portNumber and instanceName are used, the portNumber will take precedence and the instanceName will be ignored.
There is no domain= property defined for the connection URL for Microsoft's JDBC driver for SQL Server. Logging in to the SQL Server instance with Windows domain credentials is done implicitly using the integratedSecurity=true connection property (and not explicitly providing a username and password); details here.
I'm also having the same problem. Working for me too without port number.
Don't forget to give semicolon at the end of the connection.
Connect to the default database on the local computer by using integrated authentication:
jdbc:sqlserver://localhost;integratedSecurity=true;
Connect to a named database on a remote server:
jdbc:sqlserver://localhost;databaseName=AdventureWorks;integratedSecurity=true;
Connect on the default port to the remote server:
jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks;integratedSecurity=true;
Connect by specifying a customized application name:
jdbc:sqlserver://localhost;databaseName=AdventureWorks;integratedSecurity=true;applicationName=MyApp;
Reference Link : mssql document
I am trying to connecting to a remote database with pgadmin4 using putty to portforward so I can connect to a local database on a remote server. This works normally like a charme.
I switched computer and set up the database setting and putty the same. (db: pgpass.conf on old maching with copy&paste to new db connection setting in pgadmin4 and a configuration file export/import for putty - that is 1:1 transfair).
When trying to connect to the remote local database, on the old computer it still works and on the new one i get this error message:
FATAL: password authentication failed for user "postgres" FATAL:
password authentication failed for user "postgres"
On Windows 10 I don't find the password file? Is there any? What is wrong with the setting in pgadmin4?
Found the solution, I don't have SSL so I have to disable it, and the connection is established.
Go to the servers properties, select the tab Connection go to SSL mode and choose Disable - finally Save it
I tried to search somewhere, but haven't found any answers.
Here is my problem :
I'm developing a website, using Symfony 3 and Propel 2. i've got some bundle connected to my own database, it works perfectly.
I've one bundle which should be connected to an other db (on a Microsoft SQL Server). The problem is, i can't connect to the db.
Here is my config.yml
propel:
database:
connections:
myconnection:
adapter: "pdo_mssql"
classname: Propel\Runtime\Adapter\MSSQL\MssqlDebugPDO
dsn: "host=MyHOST;dbname=DBname"
user: "user"
password: "password"
attributes:
All of my options are correct, i was able to connect to this db with DBeaver (a database manager).
When i try
bin/console propel:database:reverse myconnection
i've got this error
[Propel\Generator\Exception\InvalidArgumentException]
Invalid database name: no configured connection named
`host=MyHOST;dbname=DBname;user=user;password=password`.
So, could someone please help me ?
If you need more informations, just ask for it, and sorry for my english
ag.