Changed PostgreSQL default port

* Changed admin port from 6034 to 6132
* Changed pgsql backend port from 6035 to 6133
v2.x_pg_PrepStmtBase_240714
Rahim Kanji 2 years ago
parent bac179f51e
commit c5c9b4c8d7

@ -2339,8 +2339,7 @@ void PgSQL_Threads_Handler::start_listeners() {
char* _tmp = NULL;
_tmp = GloPTH->get_variable((char*)"interfaces");
if (strlen(_tmp) == 0) {
//GloPTH->set_variable((char *)"interfaces", (char *)"0.0.0.0:6033;/tmp/proxysql.sock"); // set default
GloPTH->set_variable((char*)"interfaces", (char*)"0.0.0.0:6035"); // changed. See isseu #1104
GloPTH->set_variable((char*)"interfaces", (char*)"0.0.0.0:6133");
}
free(_tmp);
tokenizer_t tok;

@ -5954,7 +5954,7 @@ ProxySQL_Admin::ProxySQL_Admin() :
} else {
variables.mysql_ifaces=strdup("0.0.0.0:6032"); // changed. See isseu #1103
}
variables.pgsql_ifaces= strdup("0.0.0.0:6034");
variables.pgsql_ifaces= strdup("0.0.0.0:6132");
variables.telnet_admin_ifaces=NULL;
variables.telnet_stats_ifaces=NULL;
variables.refresh_interval=2000;

@ -40,7 +40,7 @@ class CommandLine {
// proxysql postgresql admin connection
char* pgsql_admin_host = strdup("127.0.0.1");
int pgsql_admin_port = 6034;
int pgsql_admin_port = 6132;
// pgsql server connection
char* pgsql_server_host = strdup("127.0.0.1");
@ -50,13 +50,13 @@ class CommandLine {
// unpriviliged test connection
char* pgsql_host = strdup("127.0.0.1");
int pgsql_port = 6035;
int pgsql_port = 6133;
char* pgsql_username = strdup("testuser");
char* pgsql_password = strdup("testuser");
// priviliged test connection
char* pgsql_root_host = strdup("127.0.0.1");
int pgsql_root_port = 6035;
int pgsql_root_port = 6133;
char* pgsql_root_username = strdup("postgres");
char* pgsql_root_password = strdup("postgres");

Loading…
Cancel
Save