CREATE USER 'appolo'@'%' IDENTIFIED BY '123.appolo';
grant all privileges on ApolloConfigDB.* TO 'appolo'@'%';
grant all privileges on ApolloPortalDB.* TO 'appolo'@'%';
flush privileges;
java.sql.SQLException: Access denied for user 'appolo'@'localhost' (using password: YES)
解决办法
grant all privileges on ApolloConfigDB.* to appolo@"localhost" identified by "123.appolo";
grant all privileges on ApolloPortalDB.* to appolo@"localhost" identified by "123.appolo";
flush privileges;
% 不包含 localhost