一、ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
alter user 'root'@'localhost' identified by 'MYsql123/*' ;
首先设置一个密码
set global validate_password.policy=low ;
降低密码的安全性
set global validate_password.length=6 ;
设置密码的长度
alter user 'root'@'localhost' identified by '123456' ;
就可以设置一个简单的密码了。
二、ERROR 3948 (42000): Loading local data is disabled; this must be enabled on both the client and server sides
禁用加载本地数据;这必须在客户端和服务器端都启用
show global variables like 'local_infile' ;
set global local_infile=1 ;
三、ERROR 2068 (HY000): LOAD DATA LOCAL INFILE file request rejected due to restrictions on access.
由于访问限制,加载数据本地填充文件请求被拒绝
我们需要在登录的时候带上--local-infile=1这个参数