mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 02:46:29 +01:00 
			
		
		
		
	 ce7ab467db
			
		
	
	
	ce7ab467db
	
	
	
		
			
			DROP USER looks for sessions by the do-be-dropped user and if found: * fails with ER_CANNOT_USER in Oracle mode * continues with ER_ACTIVE_CONNECTIONS_FOR_USER_TO_DROP warning otherwise Every user being dropped is marked with flag that disallow establishing a new connections on behalf this user.
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			808 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			808 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| source include/federated.inc;
 | |
| source have_federatedx.inc;
 | |
| 
 | |
| --echo #
 | |
| --echo # MDEV-32984 Update federated table and column privileges
 | |
| --echo #
 | |
| connection slave;
 | |
| create database db1;
 | |
| create user my@localhost identified by '1qaz2wsx';
 | |
| create table db1.t1 (
 | |
|   f1 int auto_increment primary key,
 | |
|   f2 varchar(50),
 | |
|   f3 varchar(50),
 | |
|   unique (f2)
 | |
| );
 | |
| grant insert, select (f1, f2, f3), update (f3) on db1.t1 to my@localhost;
 | |
| 
 | |
| connection master;
 | |
| evalp create table tt1 engine=federated connection='mysql://my:1qaz2wsx@localhost:$SLAVE_MYPORT/db1/t1';
 | |
| insert into tt1 (f2,f3) values ('test','123');
 | |
| select * from tt1;
 | |
| update tt1 set f3='123456' where f2='test';
 | |
| 
 | |
| drop table tt1;
 | |
| 
 | |
| connection slave;
 | |
| drop database db1;
 | |
| disable_warnings;
 | |
| drop user my@localhost;
 | |
| enable_warnings;
 | |
| 
 | |
| source include/federated_cleanup.inc;
 | |
| 
 | |
| 
 |