Remote access to mysql cannot create a database problem:
First log in to mysql
mysql -u root -p
Then enter your password to enter the execution command side of mysql
Execute the following statement:
GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "password";
The above root is the user name and password is the password, which can be modified accordingly.
Finally execute:
flush
privileges
;
At this point, the permissions have been released.