forked from External/ergo
Revert "Add support for Unix domain sockets"
This commit is contained in:
parent
de39384875
commit
66561771e6
1 changed files with 0 additions and 2 deletions
|
|
@ -90,8 +90,6 @@ func (m *MySQL) Open() (err error) {
|
|||
var address string
|
||||
if m.config.Port != 0 {
|
||||
address = fmt.Sprintf("tcp(%s:%d)", m.config.Host, m.config.Port)
|
||||
} else {
|
||||
address = fmt.Sprintf("unix(%s)", m.config.Host)
|
||||
}
|
||||
|
||||
m.db, err = sql.Open("mysql", fmt.Sprintf("%s:%s@%s/%s", m.config.User, m.config.Password, address, m.config.HistoryDatabase))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue