use mysql;
CREATE USER vagrant IDENTIFIED BY 'vagrant';
GRANT ALL ON *.* TO vagrant@'%' IDENTIFIED BY 'vagrant' WITH GRANT OPTION;
After modifying the permissions, it is invalid or an error is reported
Modify as shown above and the problem is solved.
Self-question and answer for future reference, it is recommended to use administrator.php as a backup when the database cannot be connected remotely
When I saw Cant't connect to MySQL server on '192.168.33.10'(10060), my first reaction was account permissions
After seeing the questioner troubleshooting this reason, I thought that Linux might have a port that is not open
Then There will be no more after watching this