mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 02:46:29 +01:00 
			
		
		
		
	 8e2b20bfb0
			
		
	
	
	8e2b20bfb0
	
	
	
		
			
			During the upgrade procedure on Windows mysqld.exe is started with the named pipe connection protocol. mysqladmin.exe then pings the server to check if is up and running. Command line looks like: mysqladmin.exe --protocol=pipe --socket=mysql_upgrade_service_xxx ping But the "socket" parameter resets the "protocol" which was previously initialized with the "pipe" value, setting it to "socket". As a result, connection cannot be established and the upgrade procedure fails. "socket" in Windows is used to pass the name of the pipe so resetting the protocol is not valid in this case. This commit fixes resetting of the "protocol" parameter with "socket" parameter in the case when protocol has been previously initialized to "pipe" value
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| #
 | |
| # MDEV-14974: --port ignored for --host=localhost
 | |
| #
 | |
| # exec MYSQL --host=localhost -e "status" 2>&1 | findstr /c:"Connection:"
 | |
| Connection:		localhost via TCP/IP
 | |
| # exec MYSQL --host=localhost --port=MASTER_MYPORT -e "status" 2>&1 | findstr /c:"Connection:"
 | |
| Connection:		localhost via TCP/IP
 | |
| # exec MYSQL --host=localhost --port=MASTER_MYPORT --socket=MASTER_MYSOCK -e "status" 2>&1 | findstr /c:"Connection:"
 | |
| Connection:		localhost via TCP/IP
 | |
| # exec MYSQL --host=localhost --protocol=pipe -e "status" 2>&1 | findstr /c:"Connection:"
 | |
| Connection:		localhost via named pipe
 | |
| # exec MYSQL --host=localhost -W -e "status" 2>&1 | findstr /c:"Connection:"
 | |
| Connection:		localhost via named pipe
 | |
| # exec MYSQL --host=localhost -W --socket=MASTER_MYSOCK -e "status" 2>&1 | findstr /c:"Connection:"
 | |
| Connection:		localhost via named pipe
 | |
| # exec MYSQL --host=localhost --socket=MASTER_MYSOCK -e "status" 2>&1 | findstr /c:"Connection:"
 | |
| Connection:		localhost via TCP/IP
 | |
| #
 | |
| # MDEV-30639: Upgrade to 10.8 and later does not work on Windows
 | |
| #             due to connection protocol overwrite
 | |
| #
 | |
| # exec MYSQL --host=localhost --protocol=pipe --socket=MASTER_MYSOCK -e "status" 2>&1 | findstr /c:"Connection:"
 | |
| Connection:		localhost via named pipe
 |