Debian 11 install postgresql10/14/2023 ![]() ![]() Failed to connect to the database: could not connect to server: Connection refused When I run the comand msfconsole in a terminal, although metasploit connects to the msf database on port 5432, the following error message msfconsole Postgresql 10 listening on port 5433 instead of 5432. So I had two versions of postgresql (10 & 9.6) installed in my debian machine. ![]() When I updated postgresql from the Synaptic application, it is the postgresql 10 version that was installed. Thanks to Code Friendly, & I want to share how I solved my problem. Remove the postgres user: sudo deluser postgres Remove the following folders sudo rm -rf /var/lib/postgresql/ Remove all above listed sudo apt-get -purge remove postgresql postgresql-8.3 postgresql-client postgresql-client-8.3 postgresql-client-common postgresql-common postgresql-contrib postgresql-contrib-8.3 Ii postgresql-contrib-8.3 8.3.9-0ubuntu8.04 additional facilities for PostgreSQL Ii postgresql-contrib 8.3.9-0ubuntu8.04 additional facilities for PostgreSQL (latest ![]() Ii postgresql-common 87ubuntu2 PostgreSQL database-cluster manager Ii postgresql-client-common 87ubuntu2 manager for multiple PostgreSQL client versi Ii postgresql-client-8.3 8.3.9-0ubuntu8.04 front-end programs for PostgreSQL 8.3 Ii postgresql-client 8.3.9-0ubuntu8.04 front-end programs for PostgreSQL (latest ve Ii postgresql-8.3 8.3.9-0ubuntu8.04 object-relational SQL database, version 8.3 Ii postgresql 8.3.17-0ubuntu0.8.04.1 object-relational SQL database (latest versi List All Postgres related packages dpkg -l | grep postgres Steps that worked for me on Ubuntu 8.04.2 to remove postgres 8.3 ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |