1CREATE DATABASE db1; 2CREATE USER u@localhost IDENTIFIED BY 'pw'; 3set global log_warnings=2; 4connect(localhost,u,pw,db1,MASTER_PORT,MASTER_SOCKET); 5connect con1,localhost,u,pw,db1; 6ERROR 42000: Access denied for user 'u'@'localhost' to database 'db1' 7connection default; 8FOUND 1 /Access denied for user 'u'@'localhost' to database 'db1'/ in mysqld.1.err 9set global log_warnings=@@log_warnings; 10DROP DATABASE db1; 11DROP USER u@localhost; 12