求大神赐教,sql的权限问题怎么解决啊?
我写的程序执行到这里时出错了,控制台显示Can't find file: '.\hello\@0024table.frm' (errno: 2 - No such file or directory),上网查说是权限问题,请问怎么解决?
newName:hll
oldName:hello
conn=DBUtil.getConnection(newName);
for (int i = 0; i < tableList.size(); i++) {
sql = "rename table "+oldName+".$table to "+newName+".$table";
ptmt = conn.prepareStatement(sql);
; ptmt.execute();
}
if(ptmt!=null){ptmt.close();}
if(conn!=null){conn.close();}