mysql - How to Create database through java using google app engine? -
Since I'm new to Google App Engine, I need to create a database and table through java code. Can help to create a database, I'm trying to understand this for creating connections, but I'm getting an exception
Here's my original connection code
Public static zero main (string [] args) {string URL = "JDBC: mice: //127.0.0.1: 3306 / Irrescue = user = root "; Try {class.forName ("com.mysql.jdbc.GoogleDriver"); Connection conn = DriverManager.getConnection (url); + + "Primary ID (ID))" + "(id is not a table, ID + + VARCHAR first (255)," + "VARCHAR (255)," + "age INTEGER," + "primary key ; Statement stmt = conn.createStatement (); stmt.executeUpdate (SQL);} Catch (Clasnotfooundation Expression | Accluse E) {// Todo Auto-Generated Catch Block E.PintstacksCress ();}} But I'm getting an exception like this
org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: retrieve the types of type component type Even No one has been loaded. Anyone can help me know how to build a database using Google App Engine.
does not support the MySQL database, it provides a datastore that is a NoSQL database The Datastore scales are better than traditional relational databases, but something to do Introduces business closing on properties (like stability). If you really Not require a relational DB you can use CloudSQL running on the Google cloud infrastructure is a MySQL server.
Comments
Post a Comment