mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 04:26:45 +03:00 
			
		
		
		
	 87dcb3c6f5
			
		
	
	87dcb3c6f5
	
	
	
		
			
			problems which were introduced during work on WL#2787 "Add view definer/owner to the view definition (.frm) to check privileges on used tables and stored routines when using a VIEW." In some cases it is better to use value from Security_context::host_or_ip instead of value from Security_context::host since the latter can be NULL in certain situations (When we can't resolve hostname or we have not done this yet).
		
			
				
	
	
		
			15 lines
		
	
	
		
			584 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			584 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| GRANT ALL ON test.* TO mysqltest_1@'127.0.0.1/255.255.255.255';
 | |
| SHOW GRANTS FOR mysqltest_1@'127.0.0.1/255.255.255.255';
 | |
| Grants for mysqltest_1@127.0.0.1/255.255.255.255
 | |
| GRANT USAGE ON *.* TO 'mysqltest_1'@'127.0.0.1/255.255.255.255'
 | |
| GRANT ALL PRIVILEGES ON `test`.* TO 'mysqltest_1'@'127.0.0.1/255.255.255.255'
 | |
| REVOKE ALL ON test.* FROM mysqltest_1@'127.0.0.1/255.255.255.255';
 | |
| DROP USER mysqltest_1@'127.0.0.1/255.255.255.255';
 | |
| select user();
 | |
| user()
 | |
| #
 | |
| show processlist;
 | |
| Id	User	Host	db	Command	Time	State	Info
 | |
| #	root	#	test	Sleep	#		NULL
 | |
| #	root	#	test	Query	#	NULL	show processlist
 |