Create table in by sql statement using executeUpdate in Mysql
问题 I have the following doGet() : protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { MysqlDataSource ds = new MysqlConnectionPoolDataSource(); ds.setServerName("localhost"); ds.setPort(3306); ds.setUser("root"); ds.setPassword(""); try { Connection connection = null ; connection = ds.getConnection(); Statement statement = connection.createStatement(); // create the DB .. statement.executeUpdate("CREATE DATABASE IF NOT EXISTS " +