Skip to content

Commit 9ffb7de

Browse files
committed
Plugin: modify mysql default port to 3306
1 parent 436963d commit 9ffb7de

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Src/Database/ParameterDatabaseUI.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ void CParameterDatabaseUI::slotTypeCurrentTextChanged(const QString &text)
8888
bNet = false;
8989
} else if("QMYSQL" == text) {
9090
bNet = true;
91+
if(m_pPara) {
92+
auto &net = m_pPara->m_Net;
93+
if(0 == net.GetPort()) {
94+
net.SetPort(3306);
95+
ui->wNet->SetParameter(&net);
96+
}
97+
}
9198
}
9299

93100
if(szHelp.isEmpty())

0 commit comments

Comments
 (0)