mirror of
https://github.com/MariaDB/server.git
synced 2025-08-29 00:08:14 +03:00
if log_warnings > 1. This makes ER_DBACCESS_DENIED_ERROR handling the same as we do for other "access denied"
10 lines
380 B
Plaintext
10 lines
380 B
Plaintext
CREATE DATABASE db1;
|
|
CREATE USER u@localhost IDENTIFIED BY 'pw';
|
|
set global log_warnings=2;
|
|
connect(localhost,u,pw,db1,MASTER_PORT,MASTER_SOCKET);
|
|
ERROR 42000: Access denied for user 'u'@'localhost' to database 'db1'
|
|
FOUND /Access denied for user 'u'@'localhost' to database 'db1'/ in mysqld.1.err
|
|
set global log_warnings=@@log_warnings;
|
|
DROP DATABASE db1;
|
|
DROP USER u@localhost;
|