Unable to login to database

Hi all.
A few weeks ago I re-installed the PT4 sotfware with PostgreSQL 9.3 to Mac Yosemite, and It worked well for a while.. I received all my hands in txt files, in the past 3 years from pokerstars, and I started importing my hands from disk, about 24000-200000 hands / file, total of approximately 1 million hands. I made custom rebuild cache and housekeeping after each of the import, but after the last, PT4 did not start anymore, with this message:
" Unable to login to database (postgres). Reason: could not connect to server: No such file directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? "
I read a lot of forums and I tried many solutions, but it still does not work... I know, that I should reinstall again Postgres, but I cant backup my database, and I do not want to start it all over again... Could you possibly recommend some solutions?
A few weeks ago I re-installed the PT4 sotfware with PostgreSQL 9.3 to Mac Yosemite, and It worked well for a while.. I received all my hands in txt files, in the past 3 years from pokerstars, and I started importing my hands from disk, about 24000-200000 hands / file, total of approximately 1 million hands. I made custom rebuild cache and housekeeping after each of the import, but after the last, PT4 did not start anymore, with this message:
" Unable to login to database (postgres). Reason: could not connect to server: No such file directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? "
I read a lot of forums and I tried many solutions, but it still does not work... I know, that I should reinstall again Postgres, but I cant backup my database, and I do not want to start it all over again... Could you possibly recommend some solutions?