I am trying to connect to Google cloud SQL instance from eclipse in my app engine connected android project. So far I'm able to connect to cloud SQL instance using Class.forname("com.mysql.jdbc.Driver"). But it requires authorizing my IP address in Google cloud SQL every time I want to use the instance hence making it unfeasible. I know that while connecting from app engine I don't need to authorize my IP address. But for that, I have to use GoogleDriver ie. Class.forname("com.mysql.jdbc.GoogleDriver"). But when I run my code it gives me ClassNotFoundException.
I am stuck at this situation for a long time. Please give me a proper solution to the problem?
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!