fix(storage/mysql): add missing port to the address
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
		@@ -242,6 +242,10 @@ func (s *MySQL) open(logger log.Logger) (*conn, error) {
 | 
			
		||||
		if s.Host[0] != '/' {
 | 
			
		||||
			cfg.Net = "tcp"
 | 
			
		||||
			cfg.Addr = s.Host
 | 
			
		||||
 | 
			
		||||
			if s.Port != 0 {
 | 
			
		||||
				cfg.Addr = net.JoinHostPort(s.Host, strconv.Itoa(int(s.Port)))
 | 
			
		||||
			}
 | 
			
		||||
		} else {
 | 
			
		||||
			cfg.Net = "unix"
 | 
			
		||||
			cfg.Addr = s.Host
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user