Allow to connect via socket with not default port
Seems like it is necessary to specify the port when you have 2 instances runing and you want to connect via socket.
This commit is contained in:
		
							parent
							
								
									791633c3ab
								
							
						
					
					
						commit
						be1f4b48c4
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -685,15 +685,15 @@ sub mysql_setup { | ||||||
| 
 | 
 | ||||||
|     debugprint "MySQL Client: $mysqlcmd"; |     debugprint "MySQL Client: $mysqlcmd"; | ||||||
| 
 | 
 | ||||||
|  |     $opt{port} = ( $opt{port} eq 0 ) ? 3306 : $opt{port}; | ||||||
|     # Are we being asked to connect via a socket? |     # Are we being asked to connect via a socket? | ||||||
|     if ( $opt{socket} ne 0 ) { |     if ( $opt{socket} ne 0 ) { | ||||||
|         $remotestring = " -S $opt{socket}"; |         $remotestring = " -S $opt{socket} -P $opt{port}"; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     # Are we being asked to connect to a remote server? |     # Are we being asked to connect to a remote server? | ||||||
|     if ( $opt{host} ne 0 ) { |     if ( $opt{host} ne 0 ) { | ||||||
|         chomp( $opt{host} ); |         chomp( $opt{host} ); | ||||||
|         $opt{port} = ( $opt{port} eq 0 ) ? 3306 : $opt{port}; |  | ||||||
| 
 | 
 | ||||||
| # If we're doing a remote connection, but forcemem wasn't specified, we need to exit | # If we're doing a remote connection, but forcemem wasn't specified, we need to exit | ||||||
|         if (   $opt{'forcemem'} eq 0 |         if (   $opt{'forcemem'} eq 0 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 i5513
						i5513