public MySQLDatabaseInterface kapcsolodas() { MySQLDatabaseInterface mdi = new MySQLDatabaseInterface(); mdi.setErrorToUserInterface(true); mdi.setErrorToGraphicalUserInterface(false); mdi.setConnectionServerData("192.168.0.100", "szoftverf", "3306"); mdi.setConnectionUserData("szoftverf", "szoftverf"); mdi.makeConnectionToDatabase(); return(mdi); }
public MySQLDatabaseInterface getDatabaseInterface() { MySQLDatabaseInterface mdi = new MySQLDatabaseInterface(); mdi.setErrorToUserInterface(true); mdi.setErrorToGraphicalUserInterface(false); mdi.setConnectionServerData("127.0.0.1", "pizza", "3306"); mdi.setConnectionUserData("root", ""); mdi.makeConnectionToDatabase(); return(mdi); }
public MySQLDatabaseInterface kapcsolodas() { MySQLDatabaseInterface mdi = new MySQLDatabaseInterface(); mdi.setErrorToUserInterface(true); mdi.setErrorToGraphicalUserInterface(false); mdi.setConnectionServerData("localhost", "hungairshop", "3306"); mdi.setConnectionUserData("root", ""); mdi.makeConnectionToDatabase(); return(mdi); }