forgot-password

I forgot the password I entered during postgres installation

半腔热情 提交于 2019-11-26 04:03:50
问题 I either forgot or mistyped (during the installation) the password to the default user of Postgres. I can\'t seem to be able to run it and I get the following error: psql: FATAL: password authentication failed for user \"hisham\" hisham-agil: hisham$ psql Is there anyway to reset the password or how do I create a new user with superuser privileges? I am new to Postgres and just installed it for the first time. I am trying to use it with Rails and I am running Mac OS X Lion. 回答1: find the file

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

孤街浪徒 提交于 2019-11-25 22:39:28
问题 I installed LAMP on Ubuntu 12.04 LTS (Precise Pangolin) and then set root password on phpMyAdmin. I forgot the password and now I am unable to login. When I try to change password through terminal I get: ERROR 2002 (HY000): Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (2) How can I fix this? I am unable to open LAMP, uninstall it or reinstall it. 回答1: I once had this problem and solved it by installing mysql-server , so make sure that you have installed