Android Question Which is better to connect to Google Computer cloud Storage

Discussion in 'Android Questions' started by itpeligo, Mar 30, 2015.

  1. itpeligo

    itpeligo New Member Licensed User

    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");
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    If there is a JDBC driver then I recommned you to use RDC.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice