title: Connecting to netbeans's database
body: <p>I have already created a database using EasyPHP, but then I found out that I can create my database directly on NetBeans 8.2. The database that I created is a bit too big: it will take a time to recreate it. I didn't managed to import it in into NetBeans' database and I am having difficulty to connect to any database on NetBeans. I was wondering how can I import it into NetBeans' database and is it the same code that I used with EasyPHP (the one below) or should I change something?</p>
  
  <pre><code>try {
      Class.forName("com.mysql.jdbc.Driver");
  
  } catch (ClassNotFoundException e) {
      new NotificationBuilder().withStyle(new DarkDefaultNotification()).withTitle("erreur")
      .withMessage("Erreur au niveau du driver").withDisplayTime(3000).showNotification();
  }
  try {
      con= DriverManager.getConnection(url,name,pwd);
  
  } catch (SQLException e) {
      new NotificationBuilder().withStyle(new DarkDefaultNotification()).withTitle("erreur 2")
      .withMessage("erreur d'etablissement de connexion").withDisplayTime(3000).showNotification();
  
  }
  </code></pre>