probléme update avec mysql remote connection
Bonjour ,
je peut pas faire des update sur ma base mysq s qui se trouve sur un serveur distant c'est bizarre car c'est pas un problème de privilèges je peut le faire avec mysql gui depuis mon pc
Citation:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: UPDATE command denied to user 'ramitnco_rami'@'41.227.205.xx' for table 'connected'
avec mysql gui ca marche
Code :
Code:
1 2 3 4 5 6 7 8 9 10 11
| public static void update(String sql) throws SQLException{
if(!isConnected()){
connect();
}
try {
Statement st = (Statement) con.createStatement();
st.executeUpdate(sql);
} catch (SQLException ex) {
Logger.getLogger(Accesmysql.class.getName()).log(Level.SEVERE, null, ex);
}
} |
et ca marche aussi lorsque je connecte sur ma base en local
Voilà merci de m'avoir lu!