Yes, it´s running on Johnny. I´ve used localhost how u told me but it doesn´t connect still. I attach my code that I currently use: public class Clase_Conexion{ private Connection cn; private String user="garoskul"; private String password="*****"; private String url="jdbc:mysql://localhost:3306/prueba"; public Clase_Conexion(){ cn=null; try{ Class.forName("com.mysql.jdbc.Driver"); cn=DriverManager.getConnection(url,user,password); if(cn!=null){ System.out.println("Conexion establecida"); } }catch ( SQLException e){ System.out.println("error al conectar"+e); } catch (ClassNotFoundException ex) { Logger.getLogger(Clase_Conexion.class.getName()).log(Level.SEVERE, null, ex); } } It could be the username or the password? How I said I used the username that I created and matched to the database, or what username do I have to use? I´m sorry for this and thank u very very much for your help