Problem Description
The JAVA environment
reports an error when connecting to the database, and the message is as follows The specified database user/password combination is rejected: com.mysql.cj.exceptions.CJException: Access denied for user'root'@'192.168.235.1' (using password: YES)
problem solved
1. Add remote access permissions to the database
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;