开启MySQL8远端登录You are not allowed to create a user with GRANT
Choose here
javascript typescript html css shell python golang java c c++ c# php ruby swift kotlin scala rust dart elixir haskell lua perl r sql
create user 'root' @'%' identified by '密码' ;
Choose here
javascript typescript html css shell python golang java c c++ c# php ruby swift kotlin scala rust dart elixir haskell lua perl r sql
GRANT ALL PRIVILEGES ON * . * TO 'root' @'%' ;
Choose here
javascript typescript html css shell python golang java c c++ c# php ruby swift kotlin scala rust dart elixir haskell lua perl r sql
FLUSH PRIVILEGES ;
Choose here
javascript typescript html css shell python golang java c c++ c# php ruby swift kotlin scala rust dart elixir haskell lua perl r sql
# 因加密方式不同,本地连接可能会出现:
# Authentication plugin 'caching_sha2_password' cannot be loaded.
# 修改plugin = 'mysql_native_password'
alter user 'root' @'%' identified with mysql_native_password by '密码' ;
flush privileges;