mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			387 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			387 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
create database d1;
 | 
						|
grant all on d1.* to 'sample'@'localhost' identified by 'password';
 | 
						|
flush privileges;
 | 
						|
select database();
 | 
						|
database()
 | 
						|
d1
 | 
						|
create database d2;
 | 
						|
ERROR 42000: Access denied for user 'sample'@'localhost' to database 'd2'
 | 
						|
create database D1;
 | 
						|
ERROR 42000: Access denied for user 'sample'@'localhost' to database 'D1'
 | 
						|
drop user 'sample'@'localhost';
 | 
						|
drop database if exists d1;
 |