2016-01-27 15:23:42 +01:00
|
|
|
INSTALL SONAME 'auth_named_pipe';
|
2016-02-01 17:51:57 +01:00
|
|
|
CREATE USER 'USERNAME' IDENTIFIED WITH named_pipe;
|
2016-03-25 17:51:22 +01:00
|
|
|
connect pipe_con,localhost,$USERNAME,,,,,PIPE;
|
2016-01-27 15:23:42 +01:00
|
|
|
SELECT USER(),CURRENT_USER();
|
|
|
|
USER() CURRENT_USER()
|
|
|
|
USERNAME@localhost USERNAME@%
|
2016-03-25 17:51:22 +01:00
|
|
|
disconnect pipe_con;
|
|
|
|
connection default;
|
2016-02-01 17:51:57 +01:00
|
|
|
DROP USER 'USERNAME';
|
2016-01-27 15:23:42 +01:00
|
|
|
CREATE USER nosuchuser IDENTIFIED WITH named_pipe;
|
|
|
|
ERROR 28000: Access denied for user 'nosuchuser'@'localhost'
|
|
|
|
DROP USER nosuchuser;
|
|
|
|
UNINSTALL SONAME 'auth_named_pipe';
|