Data Governance Administrator Guide > Monitoring Axon > Access Databases on External Nodes
  

Access Databases on External Nodes

If you have deployed the PostgreSQL database on an external node, you must run a specific command to access the database console.
In the external node, run the following command to access the database console:
export LD_LIBRARY_PATH=<external_directory_PostgreSQL_path>/postgresql/lib:$LD_LIBRARY_PATH
Run the following command to log in to the PostgreSQL database:
<external_directory_PostgreSQL_path>/postgresql/bin/psql -U <Axon_Administrator> -d postgres -h <external_directory_PostgreSQL_path>/postgresql/run/postgres
If you want to log in as a database user on the external PostgreSQL database, run the following command:
<external_directory_PostgreSQL_path>/postgresql/bin/psql -U <DB_User> -d <Database> -h 127.0.0.1