mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 19:06:14 +01:00 
			
		
		
		
	 f97c8f7ece
			
		
	
	
	f97c8f7ece
	
	
	
		
			
			It looks like C/C reconnect retains the database. It is correct behavior However there is a problem that mysql_install_db.exe does not create 'test' database, thus using mysql_install_db to create datadir, then restarting server and reconnecting does not succeed, if 'test' was current db before reconnect. The problem became apparent with MDEV-26715. Why it worked before, with a simpler 'root' definition is a mystery. Fix is to switch current connection to 'mysql' database, prior to reconnect to the instance created via mysql_install_db.exe
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			296 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			296 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| use mysql;
 | |
| # run mysql_install_db with --service parameter
 | |
| # Start service
 | |
| # Connect with root user password=パスワード
 | |
| connect  con1,localhost,root,$password,mysql;
 | |
| select @@datadir;
 | |
| @@datadir
 | |
| DATADIR/
 | |
| # Stop service and wait until it is down
 | |
| # Delete service
 | |
| connection default;
 | |
| # restart
 |