Results 1 to 3 of 3
  1. #1
    Join Date
    May 2012
    Posts
    13

    Question Unanswered: database kill process

    I have a database on windows. I want to end 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.

  2. #2
    Join Date
    Jun 2012
    Posts
    2
    type kill -9 $pid
    or pkill
    or killall
    check session active using ps aux | grep mysql

  3. #3
    Join Date
    Nov 2003
    Posts
    2,935
    Provided Answers: 12
    Code:
    pg_ctl -D C:\you\data\directory stop
    or
    Code:
    net stop postgresql-9.18
    The real service name or data directory name depends on your installation

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •