Remote Desktop connection or using a PHP Script.
Currently Google provides three forms of connecting to the instance Phython, Java and PHP
I was wonder which is better for me to connect I wanted to use JAVA ? Erel Please help
see a sample of the Java Connection
if (SystemProperty.environment.value() ==
SystemProperty.Environment.Value.Production) {
// Connecting from App Engine.
// Load the class that provides the "jdbc:google:mysql://"
// prefix.
Class.forName("com.mysql.jdbc.GoogleDriver");
url =
"jdbc:google:mysql://PROJECTNAME:database-name?user=root";
} else {
// Connecting from an external network.
Class.forName("com.mysql.jdbc.Driver");
url = "jdbc:mysql://XX.XX.XX.XX:3306?user=root";
}
Connection conn = DriverManager.getConnection(url);
ResultSet rs = conn.createStatement().executeQuery(
"SELECT 1 + 1");
Currently Google provides three forms of connecting to the instance Phython, Java and PHP
I was wonder which is better for me to connect I wanted to use JAVA ? Erel Please help
see a sample of the Java Connection
if (SystemProperty.environment.value() ==
SystemProperty.Environment.Value.Production) {
// Connecting from App Engine.
// Load the class that provides the "jdbc:google:mysql://"
// prefix.
Class.forName("com.mysql.jdbc.GoogleDriver");
url =
"jdbc:google:mysql://PROJECTNAME:database-name?user=root";
} else {
// Connecting from an external network.
Class.forName("com.mysql.jdbc.Driver");
url = "jdbc:mysql://XX.XX.XX.XX:3306?user=root";
}
Connection conn = DriverManager.getConnection(url);
ResultSet rs = conn.createStatement().executeQuery(
"SELECT 1 + 1");