Remove postgres user account on windows 7 [closed] - postgresql

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 9 years ago.
Improve this question
I want install postgresql (9.2 version) on my local computer (OS: windows 7)
So, in first time at install, I had some error and now, I need just uninstall old postgres, but when I am trying uninstall, I got warning message: The data directory (bla bla....) and service user account (NT AUTHORITY\NetworkService) have not been removed
Question: how to remove this old user account ?

You do not need to remove the service account if you're going to reinstall. The new install will use the existing user account. That, and the fact that multiple versions might be using it, are why any user account the installer creates isn't removed.
In any case, 9.2 doesn't use the postgres user account anymore. By default it installs as NETWORKSERVICE. This is a windows system account. You can't remove it even if you want to, and if you did it'd render your system completely nonfunctional. That uninstall message is just a leftover from when the installer used to use the postgres account, though it's still useful if you install with a non-default user account. I've reported it to EnterpriseDB as a bug.
Now, if you have an existing data directory you want to get rid of and you know it has no information of any value you should remove it or rename it so the new install doesn't try to just use the existing data directory. The data directory location is shown in the message emitted by the uninstaller.

Related

How to start fresh with PostgreSQL on Mac? [closed]

Closed. This question is not about programming or software development. 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 yesterday.
Improve this question
So, I did some work on my Mac with PostgreSQL about 6-7 years ago. I am trying to get back into it and am following along with a tutorial. There are two issues that I have ran into regarding my pre existing configurations.
I do not know the password I used when I originally set up PostgreSQL and the postgres user on my machine.
I installed the latest version of PostgreSQL (15) from postgresapp.com but am getting the following error message:
PostgreSQL version error
I tried steps I found on another stackoverflow question for uninstalling as well as running the following commands commands I used but this has not fixed the issue as when I install the latest version I get the same error mentioned in #2 above and the psql command still prompts me to enter a password that I do not remember.
Could someone help with providing the necessary steps to start "fresh" with PostgreSQL on mac or point me to an online resource that explains it? Everything I have found so far has not worked.
If you don't need any of the previous settings or data and you're happy to delete them, you can try deleting the entire directory that was established the first time you installed Postgres.app.
Can you open Postgres.app and look at your server settings, as in the screenshot below?
If so, that will tell you where your settings and data are being stored, For me, it's in my home directory's Application Support folder.
As long as you're 100% certain that you don't need any of your previous data and settings, you should be able to delete the entire Postgres folder. Note: this will also delete any data/settings from the current version of postgres, but it doesn't sound like that will be a problem for you.
PS: I can see two weird red squares at the bottom of my screenshot which seems like something somewhere is not correctly handling the transparent parts of the PNG.
Regarding your postgres user password, you can follow advice from this Stack Overflow question to change it. It's pretty much the same steps, but with changing the postgreSQL configuration directory path on your machine. The key to solve your problem is to login on your system as a super user or root or whatever it is. and make sure it's allowed {in your postgreSQL server configuration } to connect and login via unix socket without requiring the password.
Regarding your version issue: install both version of PostgreSQL on your machine (the old one and the v15) then follow along with the official docs to migrate your database to work on latest versions. Another approach is to use pg_dump commands which you can search for its usage and manual online on the internet.

the procedure entry point sprintf_s could not be located in DLL [closed]

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 3 years ago.
Improve this question
We are using windows XP SP3 version "PosReady" which is still supported by MS.
We have several old computers running on this OS.
Recently we have problem with any software using msvcrt.dll.
Constantly this message popup shows:
"the procedure entry point sprintf_s could not be located in DLL msvcrt.dll".
Tried removing and reinstalling all MS visual C++ run times but it did not help.
Any help is appreciated.
Thanks,
There was an express update pushed through Windows Update yesterday (FEB-16), that solves the issue and is listed in my installed updates as:
Security Update for Windows XP (KB4487085-v2)
So it seems the issue was in the first version of that update.
Microsoft in 4487085 states:
This update was rereleased February 15, 2019 to address a known issue that occurred when you installed the original February 12, 2019 version of the update.
and
After you install the originally released version of this security update (from February 12, 2019), applications that use the msvcrt.dll dynamic link library (DLL) do not load properly.
Uninstall the Windows XP updates that were pushed out February 12.
Windows update, via the "shield" in task bar, notified me that there were updates. I installed them and after reboot had the issue described here. So, pretty obvious what the problem was. I used "Add/Remove Programs" to uninstall the nine or so updates that were showing for that date.
Most of the updates affected .NET libraries and I think that's where the problem is. The newest MSVCRT.DLL on my system is from 2012, even when the updates were still installed, so messing with them won't help.
Ideally, MS will fix this, but if not, we're almost out of support anyway. Don't forget to disable automatic updates or the problem will come back.

Install reddit on amazon webserver? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
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.
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.
Improve this question
I have followed every step as given here. I installed all the servers and libraries but when I set the PostgreSQL server it hangs stating the follows on the terminal
LOG: database system was shut down at 2014-01-22 01:53:52 UTC
LOG: database system is ready to accept connections
LOG: autovacuum launcher started
What to do?
I assume you're referring to these lines:
Finally, start up the server.
$ sudo -u postgres postgres -D /usr/local/pgsql/data
If so, that starts the PostgreSQL server in blocking mode. It is running. It won't exit until told to, and that terminal won't return. It sounds like you'd prefer it to exit and keep running in the background, in which case you should use pg_ctl to start the server instead.
The bigger problem is that those instructions are pretty stupid. You shouldn't be initdb'ing a new cluster and starting a new server; you almost certainly have one installed and running. It's hard to say, since you didn't say how you installed PostgreSQL, what OS you're on, what PostgreSQL version you have, etc.
In general, though, you should be connecting to your existing PostgreSQL install. Use that, don't initdb a new one. That's why the guide you were reading says:
This section may be unnecessary on your system. Check if your installation of postgres created a default database and start scripts for you.
Since you're using a stock Ubuntu install, please start by reading the Ubuntu introduction to PostgreSQL.
Then follow the setup guide starting at "create the database".

Vagrant and Red Hat Enterprise Licensing [closed]

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
Our team is starting to use Vagrant for development on Mac OS X machines so we can better simulate our Red Hat Enterprise Linux production environment. Our operations group says our Red Hat License only covers instances being run on our VMWare cluster. How do other people deal with RHEL licensing using Vagrant?
We were in the same situation and decided to use CentOS on our developer boxes. https://www.centos.org/
I downloaded basic rhel server I found online and built a vagrant box with Packer for use in Vagrant/Test Kitchen. I'm forced to use various other repositories (CentOS/EPEL/RPMFusion etc) instead of the RHN repos which I don't have access to without licensing. I actually wrote a small chef cookbook to write all the custom /etc/yum.repos.d/*.repo files after initial install. It definitely works for a dev environment. If you have access to different ISOs then you can built whatever versions of rhel that you need with Packer.
http://dtucker.co.uk/hack/creating-a-vagrant-base-box-for-rhel-with-bento.html
https://github.com/xacaxulu/packer-boxes/blob/master/README.md <----a box to use if you want.
Have you tried this?
https://access.redhat.com/downloads/content/293/ver=1/rhel---7/1.0.0/x86_64/product-downloads
Have you also checked the developer subscriptions?
https://access.redhat.com/support/offerings/developer/
There is a blog specifying how to use vagrant with RHEL... but I can't post 3 links :(
Here is a proposal (I am using this approach since I am also working with rhel vagrant boxes for running ansible scripts)
Create a red hat developers account here (click on register).
Download an rhel vagrant box from here (you will have to log in with your previously created account.
Fire up your box and ssh into it.
Follow these instructions to register your vm

Installing PostgreSQL on Windows Server 2008 [closed]

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
Trying to install PGSQL on Windows Server 2008 SP2 (not R2) x86_32.
Got errors like "Problem running post-install step. Installation may not complete correctly. Failed to start the database server" and something like that.
And also installation doesn't fill data directory - it empty.
I tried start PGSQL manually via pg_ctl(register and start) and initdb, but nothing works.
Reinstalled many times with removing postgres user via Computer Management and his folder. Again, no result.
Guys, maybe you have good manuals or experience about deploying PGSQL on Server 2008?
Anyone else running issues should read Common installation errors, Troubleshooting Installation and the Guide to reporting problems.
This known issue with some Windows systems is documented there, and advice on how to report issues with enough info to get an answer (including installer logs, etc) is also provided.
I've got solution.
http://forums.enterprisedb.com/posts/list/2448.page
Just register vbscript.dll and associate VBS files with scripting engine.