Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
While connecting to the pgadmin database postgres with correct password, I'm getting the following error:
'Error connecting to the server:FATAL password authentication failed with user 'postgres'.
After changing the method to 'trust' instead of 'md5' in hba config file, and then typed:
ALTER USER POSTGRES WITH PASSWORD 'newpassword'
after again changing the methods as md5 then tried connecting to database
Howerver the password changed successfully (I checked in encrypt mode and it was fine) but getting the same issue:
'Error connecting to the server:FATAL password authentication failed with user 'postgres'.
Kindly suggest me if there are any other solution for this issue.
This suggests to me that either you are authenticating against an outside source (not common) or somehow you have been bitten by a bug in pgAdmin that set validto to an invalid date (more common).
Try this:
ALTER USER postgres VALID UNTIL 'infinity';
Or you can set the valid until value to something more limited if you want to lock the account after a certain time period.
Related
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a production database off site on another box which I reference by IP. Lets say its IP:
123.45.67.89
Now I want to do a query that references both my server here locally called MYSERVER1 with my production server.
When I try to do:
select count(*) from [MYSERVER1].MyDBName.dbo.mytable;
everything is fine. But I can't do this:
select count(*) from [123.45.67.89].MyDBName.dbo.mytable;
Is there a way to link the servers? Like using sp_addLinkedServer?
I get this error:
Msg 7202, Level 11, State 2, Line 3
Could not find server '123.45.67.89' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.
Any ideas? (I want to copy X number of rows to my production server, that's why)
In SQL Management Studio add your remote server: first connect to your local server, go to Server Objects\Linked Server in the Object Explorer and right click and add a new one.
BTW: you can also do it with system storedprocs, but it is something that you do only occasionally I would stay with the GUI.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am trying to connect to a SQL Server 2008, but I'm getting this error:
Login failed for user "xyz" because the account is currently locked
out.The system administrator can unlock it. (Microsoft SQL Server,
Error 18486)
Please check the image.
SQL server has local password policies. If policy is enabled which
locks down the account after X number of failed attempts then the
account is automatically locked down.This error with 'sa' account is
very common. sa is default administartor login available with SQL
server. So there are chances that an ousider has tried to bruteforce
your system. (This can cause even if a legitimate tries to access the
account with wrong password.Sometimes a user would have changed the
password without informing others.)
If you know another admin account, you can unlock it using this query,
ALTER LOGIN sa WITH PASSWORD='password' UNLOCK
Read more on this link.
There is another way of unlocking. connect to the sql server using windows authentication, but make sure the window user is an admin in sql. then one can go to security folder, select the locked user, go the properties and then to Status. there one need to uncheck the "Login is locked out" and account is unlocked.
From http://blog.sqlauthority.com/2009/04/23/sql-server-fix-error-18486-login-failed-for-user-sa-because-the-account-is-currently-locked-out-the-system-administrator-can-unlock-it-unlock-sa-login/
ALTER LOGIN sa WITH CHECK_POLICY = OFF;
ALTER LOGIN sa WITH CHECK_POLICY = ON; GO
Worked fine for me.
I have given many failed attempts to DB remotely and sa account was locked.
"ALTER LOGIN sa WITH PASSWORD='password' UNLOCK" this
If sa is your only Adminstrator account, you can aslo follow the advice given in the Connect to SQL Server When System Administrators Are Locked Out page on MSDN.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I created a login and a user in sql azure but i'm not able to login...
I can connect only with the administrator account...
How do I login with the user I created?
I've been struggling with this too, and after some research it appears that only LOGINS can login. A User (created in a specific database, from a login) is only a "persona" that a login assumes when accessing that particular database.
So, again, you can't login as a User, only with a Login. If your intention is to somehow create restricted access to a specific database then you need to do some work: I'm currently looking at the following article:
http://blogs.msdn.com/b/benjguin/archive/2012/01/21/sql-azure-create-a-login-that-has-only-access-to-one-database-sql-azure-cr-233-er-un-login-qui-n-a-acc-232-s-qu-224-une-base-de-donn-233-es.aspx
HTH.
If you're trying to use SQL Server Management Studio you need to specify the database that you want to connect to (Login screen -> Options -> Connection Properties) as by default new logins do not have access to the master database which SSMS will try to open if a database is not specified.
Windows Azure SQL Database security works mostly like standard SQL Server, in that you have to ensure that you have a server login created for that user, as well as a user created in the database linked to the login. Look at the Docs for more information to make sure you aren't missing a step: http://msdn.microsoft.com/en-us/library/windowsazure/ee336235.aspx
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm a newbie to Microsoft SharePoint Server 2010. Can you please help me with this assignment:
Users wish to enter through the Microsoft Outlook planned absence so
that they will enter them in the calendar, which they will access
directly from Outlook. After entering the predicted absence of the
absence of such a view is their superior, who must approve or reject
the absence. Different employees have different superiors, so pairs
should be "employees" -> "superior" entered into a separate table in
SharePoint, which can be edited by the administrator, workflow validation must
find the appropriate supervisor for confirmation/certification in this table. The
result (absence of confirmed / denied) must be sended an email to the employee,
while the superior must get get e-mail in CC.
It sounds like you have a calendar which is connected to outlook. When user adds new entry in outlook, that entry is added to the SharePoint calendar. In SharePoint you can start a workflow on Item Added on a calendar list. This workflow will do logic to kick of emails , approve/reject.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Alright, so here is the scenario
I performed a full backup on my mysql server today. Now when I try to import that .sql dump file, I get the error mentioned in the title and it does not load all the other databases.
How can I get around this so phymyadmin will allow me to import the whole file, or is there a way I could "remove" information_schema from the sql dump
Thanks
As Dan Grossman said:
To "remove" information_schema from the dump, open the file in notepad
and delete those lines. It's just a text file of sequential queries to
run.
Open information_schema and run
FLUSH TABLES
This should clear the information_schema CACHE and will stop the error as it "resyncs" the tables to the latest schema
I use a program called Notepad++.
You open your sql file and the program will put it in a way where you can clearly see what the information_schema database is trying to do and why it is failing every time. You can safely remove that part of the database.
Then I install a WAMP on my pc, run a mysql program (mysql front) and import the database. After importing I have full access to the tables and databases.
Just export what you want and then just import then to your new database.
CREATE a new database and then then try to connect using that new db then run the schema and then try to execute the databases.