PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 18th, 2012, 05:54 PM
goinsurgency goinsurgency is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 15 goinsurgency User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 56 m 15 sec
Reputation Power: 0
Question Database kill process

I have a database on windows. I want to end postgresql/mysql program/database via task manager or via terminal in linux. The reason I want to end it is because I forgot the username and password. I want to kill the database so I can try to reconnect to it and guess the username and password.

Last edited by goinsurgency : June 19th, 2012 at 01:54 AM. Reason: sorry i meant mysql/postgres

Reply With Quote
  #2  
Old June 19th, 2012, 01:31 AM
shammat shammat is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Oct 2003
Location: Germany
Posts: 2,684 shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 3 Days 19 h 37 m 18 sec
Reputation Power: 284
Quote:
Originally Posted by goinsurgency
I want to end mysql program/database
If you are running MySQL why are you asking in the PostgreSQL forum?

Reply With Quote
  #3  
Old June 19th, 2012, 01:54 AM
goinsurgency goinsurgency is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 15 goinsurgency User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 56 m 15 sec
Reputation Power: 0
Quote:
Originally Posted by shammat
If you are running MySQL why are you asking in the PostgreSQL forum?


sorry meant posatgres/mysql

Reply With Quote
  #4  
Old June 19th, 2012, 02:20 AM
shammat shammat is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Oct 2003
Location: Germany
Posts: 2,684 shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 3 Days 19 h 37 m 18 sec
Reputation Power: 284
Quote:
Originally Posted by goinsurgency
sorry meant posatgres/mysql
There is no such thing as "postgres/mysql".

PostgreSQL and MySQL are two completely different things.

What exactly are you running?

Reply With Quote
  #5  
Old June 20th, 2012, 02:14 AM
goinsurgency goinsurgency is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 15 goinsurgency User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 56 m 15 sec
Reputation Power: 0
Quote:
Originally Posted by shammat
There is no such thing as "postgres/mysql".

PostgreSQL and MySQL are two completely different things.

What exactly are you running?


I am trying out both.

Reply With Quote
  #6  
Old June 20th, 2012, 02:23 AM
shammat shammat is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Oct 2003
Location: Germany
Posts: 2,684 shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 3 Days 19 h 37 m 18 sec
Reputation Power: 284
Quote:
Originally Posted by goinsurgency
I want to end postgresql/mysql program/database via task manager or via terminal in linux.
No you don't. Use a regular "shutdown" command to stop the server.

The standard command is:
Code:
pg_ctl -D /your/data/directory stop
This works in Windows and Linux.

In Windows you can also use the control panel to stop the service, or the command
Code:
net stop postgresql
The exact name of the service depends on your installation and you need to check that in the control panel.

For more information I suggest you read the manual:

http://www.postgresql.org/docs/current/static/app-pg-ctl.html
http://www.postgresql.org/docs/current/static/server-start.html
http://www.postgresql.org/docs/current/static/server-shutdown.html

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > Database kill process

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap