Google Cloud SQL unofficial blog --- Google Cloud SQL is a fully-managed database service that makes it easy to set-up, maintain, manage and administer your relational MySQL databases
Wednesday, November 30, 2011
One GAE Text Search question.
to store my blog's article content. I want to make a full
search on all the contents.
In GAE, you can't search on the blob property since
they are not indexed. How do you guys overcome this issue?
Thanks,
Seabook
Re: MySQL DELIMITER statement not working in Squirrel
DROP PROCEDURE IF EXISTS test_delimiter;
CREATE PROCEDURE test_delimiter()
BEGIN
SELECT * FROM my_table;
END;
I get:
Error: You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near '' at line 3
SQLState: 42000
ErrorCode: 1064
Error occured in:
CREATE PROCEDURE test_delimiter()
BEGIN
SELECT * FROM my_table
So how do I create a multi SQL statement procedure or function using
Squirrel? Also, it would be nice to have SQL that works in both
MySQLWorkbench and Squirrel.
The rdbms API is not available because the MySQLdb library could not be loaded.
locally. It is accessible from MySQLWorkbench, Squirrel, and the
Python 2.7 command line (i.e. import MySQLdb succeeds without any
errors). I added the following line to my ./bash_profile file too:
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/usr/local/mysql/lib/"
When I try to start dev_appserver in Eclipse or from a command line
using:
dev_appserver.py --debug --mysql_user=root myapp
I get the following warning and error:
WARNING 2011-11-30 21:07:54,891 rdbms_mysqldb.py:90] The rdbms API is
not available because the MySQLdb library could not be loaded.
ERROR 2011-11-30 21:08:19,042 dev_appserver_main.py:632] <type
'exceptions.NotImplementedError'>: Unable to find the MySQLdb library.
Please see the SDK documentation for installation instructions.
DEBUG 2011-11-30 21:08:19,046 dev_appserver_main.py:634] Traceback
(most recent call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver_main.py", line 629, in main
dev_appserver.SetupStubs(appinfo.application, **option_dict)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 3183, in SetupStubs
rdbms_mysqldb.connect(database='')
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/rdbms_mysqldb.py", line 96, in connect
'Unable to find the MySQLdb library. Please see the SDK '
I have tried the hack of adding "import MySQLdb" to the
dev_appserver.py file, but that didn't help.
Any ideas?
Re: MySQL DELIMITER statement not working in Squirrel
Sqirrel doesn't send the sql when enter is pressed, so it's not needed, just remove the DELIMITER commands.
MySQL DELIMITER statement not working in Squirrel
DROP PROCEDURE IF EXISTS test_delimiter;
DELIMITER //
CREATE PROCEDURE test_delimiter()
BEGIN
END//
DELIMITER ;
When I try to run them in Squirrel, I get:
Error: You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near 'DELIMITER //
CREATE PROCEDURE test_delimiter()
BEGIN
END//
DELIMITER' at line 1
SQLState: 42000
ErrorCode: 1064
Error occured in:
DELIMITER //
CREATE PROCEDURE test_delimiter()
BEGIN
END//
DELIMITER
Any ideas why?
Also, it would be great to have Cloud SQL support MySQLWorkbench. Is
there a way to connect the two?
Re: Google Cloud SQL preview access
Re: Google Cloud SQL preview access
Last time I request and after that about 2 days, google sent me a mail active google cloud sql account. But same to you. Yesterday, I do that with another email but now i am yet to receive active mail from google.
My friend told me that he filled up 3 days ago but now he's yet to receive too.
So I guess, maybe Google stop supporting trying google cloud sql.
I'm not sure.
Just waiting....
Thanks.
--
vì một ngày mai tươi sáng hơn
Tuesday, November 29, 2011
Google Cloud SQL preview access
How can i get access to Google Cloud SQL? Though, I have filled up
access request form last week, i am yet to get the access.
Can you please let me know the criteria for giving access to Cloud
SQL?
Regards,
Vikas
Re: Google Apps Script JDBC Service and Google Cloud SQL
Re: Google Apps Script JDBC Service and Google Cloud SQL
I don't get it.
Regards
Laurent
Monday, November 28, 2011
Speed of one operation
search by email database.
For example now I have about 9000 email in my table and fulltext
search take about 50-90ms. Is time dramatically increase when I upload
3000000 emails in my datadase?
--
Blog: www.rekby.ru
Re: Using GCSQL as application backend
Joe Faith | Product Manager | Google Cloud SQL
Re: Is is possible to access Google Cloud SQL while running locally?
--Abhishek
Re: Is is possible to access Google Cloud SQL while running locally?
--Abhishek
Using GCSQL as application backend
Re: Is is possible to access Google Cloud SQL while running locally?
I used c = DriverManager.getConnection("jdbc:mysql://localhost:3306/
mysql55?
user=root&password=******&useInformationSchema=true&useUnicode=true&characterEncoding=UTF8&useServerPrepStmts=true
");
to do it by hand and got an error:
java.sql.SQLException: No suitable driver found for jdbc:mysql://
localhost:3306....
So I'm guessing it isn't able to find the driver but the wiring in the
VM arguements looks good. Any suggestions?
Re: Cloud invite expired
--
Joe Faith | Product Manager | Google Cloud SQL
Re: Google Apps Script JDBC Service and Google Cloud SQL
Joe Faith | Product Manager | Google Cloud SQL
Re: Is is possible to access Google Cloud SQL while running locally?
--Abhishek
Re: where can i get detail tutorial for using cloud sql in gae?
http://mandubian.tumblr.com/post/13459210142/tutorial-for-googlecloudsql-with-play-1-2-3-siena
It's just a test app so issues might exist. Don't hesitate to report them on siena github or siena google group !
regards
Pascal
Re: Is is possible to access Google Cloud SQL while running locally?
important. It is in capital letters as that's the case I'm used too.
But yes, I created my table in uppercase. I tried lower case too just
to be sure. No dice.
What about my VM arguements:
Drdbms.server=local -Drdbms.driver=com.mysql.jdbc.Driver -
Drdbms.url=jdbc:mysql://localhost:3306/mysql55?
user=root&password=******&useInformationSchema=true&useUnicode=true&characterEncoding=UTF8&useServerPrepStmts=true
How do I know the URL is right? Where do I look to make sure this part
'localhost:3306/mysql55' is correct? I just copied the mysql55 part
from the MySQL Workbench
Thanks for your suggestions
Re: trigger (delimiter)
Re: Is is possible to access Google Cloud SQL while running locally?
--Abhishek
Re: Is is possible to access Google Cloud SQL while running locally?
java.sql.SQLException: Table not found in statement [SELECT * FROM
MYTABLE]
Re: Is is possible to access Google Cloud SQL while running locally?
Error listing items: java.sql.SQLException: invalid schema name:
MILKRUN in statement [SELECT * FROM TESTDB.MYTABLE]
Even though I can execute that query fine within the MySQL Workbench.
Where is rmdbs.url stored?
Sunday, November 27, 2011
Is is possible to access Google Cloud SQL while running locally?
understand the external connection thing.
I'm having problems creating my own MySQL instance and getting it to
work with my dev env and even still it would be a challenge to
maintain them both. Is it possible to run my application locally but
point to GCSQL?
trigger (delimiter)
work alone nor together with CREATE TRIGGER command. Is it possible to
create triggers (procedures) in sql cloud?
delimiter |
CREATE TRIGGER trigger_name AFTER INSERT ON tablex
FOR EACH ROW BEGIN
.......
END;
|
delimiter ;
Saturday, November 26, 2011
how to use cursor.executemany?
========
wkL = [("11111111111",), ("22222222222",), ("3333333333333",)]
#or wkL = ["11111111111","22222222222","3333333333333"]
cursor.executemany( u"insert into entries ( guestName, content )
values( '%s', 'ZZZZZZZZZZZ' )", wkL )
error
========
File "/base/data/home/apps/s~chatthor/1.354968998651775855/2.py",
line 19, in get
cursor.executemany( u"insert into entries ( guestName, content )
values( '%s', 'ZZZZZZZZZZZ' )", wkL )
File "/base/python27_runtime/python27_lib/versions/1/google/storage/
speckle/python/api/rdbms.py", line 344, in executemany
self.execute(statement, args)
File "/base/python27_runtime/python27_lib/versions/1/google/storage/
speckle/python/api/rdbms.py", line 290, in execute
response = self._conn.MakeRequest('Exec', request)
File "/base/python27_runtime/python27_lib/versions/1/google/storage/
speckle/python/api/rdbms.py", line 596, in MakeRequest
response = self._MakeRetriableRequest(stub_method, request)
File "/base/python27_runtime/python27_lib/versions/1/google/storage/
speckle/python/api/rdbms.py", line 620, in _MakeRetriableRequest
response = self.MakeRequestImpl(stub_method, request)
File "/base/python27_runtime/python27_lib/versions/1/google/storage/
speckle/python/api/rdbms_apiproxy.py", line 68, in MakeRequestImpl
raise OperationalError('could not connect: ' + str(e))
OperationalError: could not connect: ApplicationError: 1006
mysql_stmt_param_count: Not all variables bound. Got 1, expected 0.
Re: Google Apps Script JDBC Service and Google Cloud SQL
Friday, November 25, 2011
Re: Triggers / Stored procedures?
Triggers / Stored procedures?
this - are triggers/stored procedures supported?
Thanks,
Giovanni
Re: where can i get detail tutorial for using cloud sql in gae?
The demo already works there!
http://tweetsql.appspot.com/
I needed to update play-gae module to upgrade it to SDK 1.6.0 and also to customize a bit play-siena to use GoogleCloudSQL because this is MySQL but not exactly.
I will publish the code also to help people begin with it (and test a bit further than me all of this stuff ;))
Pascal
Re: where can i get detail tutorial for using cloud sql in gae?
Re: where can i get detail tutorial for using cloud sql in gae?
Should publish it early next week!
regards
Pascal
Re: where can i get detail tutorial for using cloud sql in gae?
from google.appengine.api import rdbms
conn = rdbms.connect(instance='projectname:instancename',
database='database_name', charset='utf8') # charset - for dev-server
cursor = conn.cursor()
cursor.execute('DELETE FROM `email` WHERE id=%s', [id])
cursor.close()
cursor = conn.cursor()
cursor.execute(u'REPLACE INTO `email` (`id`, `time`, `from`, `to`,
`subject`, `comment`, `text`) VALUES (%s, %s, %s, %s, %s, %s, %s)',
[email.id(), email.Time.strftime('%Y-%m-%d--%H-%M-%S'), email.From,
email.To, email.Subject, email.Comment, email.Text])
cursor.close()
cursor = conn.cursor()
cursor.execute("select from email WHERE `from`=%s", ['asd@mail.ru'])
result = cursor.fetchall()
for row in result:
...
where can i get detail tutorial for using cloud sql in gae?
and curcor and other way to deal the data.
Re: Sql Syntax Error
I think there is a extra comma in the end (the red one) ---> oth + "' ,)";
--Abhishek
Sql Syntax Error
while running my project from ecilpse i am getting this following error
1.You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
2.I tried to set the value manually in that case it working fine
Here is my code,tell me that what mistake i have done in that code
String statement ="INSERT INTO stock (systemno,username,
PreparedStatement stmt = c.prepareStatement(statement);
stmt.setString(1, sn);
stmt.setString(2, un);
stmt.setString(3, sip);
stmt.setString(4, stn);
stmt.setString(5, cpu);
stmt.setString(6, mon);
stmt.setString(7, web);
stmt.setString(8, mouse);
stmt.setString(9, key);
stmt.setString(10, head);
stmt.setString(11, enc);
stmt.setString(12, vgc);
stmt.setString(13, pwc);
stmt.setString(14, oth);
int success = 2;
success = stmt.executeUpdate(statement);
Thanks
Sasikala
Thursday, November 24, 2011
Re: Can we use same instance for more than one app ID?
Can we use same instance for more than one app ID?
Cloud invite expired
I was just going through old emails and saw my cloud invite.
Unfortunately it has expired. Do I need to re-register or can I get
the invite sent again.
Thanks for your time.
Wednesday, November 23, 2011
Re: App Engine to connect cloud sql with error: ApplicationError: 1007 Invalid connection id
Re: App Engine to connect cloud sql with error: ApplicationError: 1007 Invalid connection id
Thanks for your quick reply.
Could you tell me how to valid the connection?
The codes in my local dev environment worked well without any problem,
and it also worked without any problem in App Engine platform before
yesterday. That's so wired. And the problem still exist after I
restart the instance.
Re: App Engine to connect cloud sql with error: ApplicationError: 1007 Invalid connection id
App Engine to connect cloud sql with error: ApplicationError: 1007 Invalid connection id
worked well for few days. But from yesterday, I got the error for any
database query:
OperationalError: could not connect: ApplicationError: 1007 Invalid
connection id.
In my python codes, I used singleton pattern to maintain one
connection for all my database operations, and I am not sure that
caused the problem.
Mistake in documentstion,
Blog: www.rekby.ru
Re: anybody running django on the app engine with the sql service?
Re: Using Cloud SQL via App Engine Remote API
Re: No response for Google Cloud SQL Signup
No response for Google Cloud SQL Signup
How many days will have i to wait?
I am really interested in test this service because that many projects
in that i work, run on MySQL.
Tuesday, November 22, 2011
Re: Using Cloud SQL via App Engine Remote API
Re: Any way to change cloud sql instance global variable values
What if I create a new instance, give its name to you guys to set just one variable value for me? Is it possible?
-- Abhishek
Re: Using Cloud SQL via App Engine Remote API
Hello,
I understand that I can use the command line client.But the App Engine Remote API allows me to run my App Engine code and access Datastore entities from a remote client. Do you think there will be a Cloud SQL stub implemented for this at some point?
Re: Any way to change cloud sql instance global variable values
-- Abhishek
Re: Using Cloud SQL via App Engine Remote API
Connection caching and sharing
Re: Any way to change cloud sql instance global variable values
Re: Any way to change cloud sql instance global variable values
Cloud SQL limited preview
- All your data is multiply geographically replicated, but we do not currently offer an automated backup service. Backups can be taken manually through the Google Cloud SQL dashboard (under 'Actions').
- Synchronous replication also has an impact on write performance compared to non-replicated local disk. This especially affects bulk data imports. There are useful tips on optimising bulk imports here:
http://dev.mysql.com/doc/refman/5.5/en/optimizing-innodb-bulk-data-loading.html
- Also bear in mind that many queries also involve writing to disk, for example those involving 'order by' clauses, and that these will also be slowed by replication. There are useful tips on optimising such queries here:
http://dev.mysql.com/doc/refman/5.5/en/order-by-optimization.html
Joe Faith | Product Manager | Google Cloud SQL
Re: Any way to change cloud sql instance global variable values
lower_case_table_names variable set to 1, setting this variable
resolved my case sensitivity problem with hibernate locally and I need
same database to be imported to my cloud-sql instance so that same
application could work without giving any case-sensitivity problem on
app-engine with cloud-sql?
The only solution I could think of right now is to somehow get a
cloud-sql instance with 'lower_case_table_names' set to 1.
Please suggest.
--Thanks,
Abhishek
Re: Any way to change cloud sql instance global variable values
Re: Any way to change cloud sql instance global variable values
When I am trying to set global variable 'lower_case_table_names' , I am getting "Variable 'lower_case_table_names' is a read only variable".
--Abhishek
Re: Any way to change cloud sql instance global variable values
Re: Any way to change cloud sql instance global variable values
Is it possible that if we provide you with our instance name, then you will turn this variable on for us?
--Thanks
Abhishek
Monday, November 21, 2011
Re: Programmatic/Command Line Exporting of an Instance to Cloud Storage?
Re: Issue connecting SQL
To get the instance name, login to https://code.google.com/apis/ ;
Click on Google Cloud SQL --> Overview.
--
Manilal K M : മണിലാല് കെ എം.
http://libregeek.blogspot.com
Re: Programmatic/Command Line Exporting of an Instance to Cloud Storage?
different problem.
What I am attempting to do is find a way to trigger an export from
Google Cloud SQL to Google Cloud Storage.
I basically want to trigger the same functionality as clicking
[Instance Settings] -> (Export Data) menu functionality within the
Google Cloud SQL dashboard.
Thanks!
Re: Programmatic/Command Line Exporting of an Instance to Cloud Storage?
If you want to export your mysql dump to your cloud sql instance, then you can do it using google cloud sql command line tool.
Details could be found here:
http://code.google.com/apis/sql/docs/commandline.html
---Abhishek
Programmatic/Command Line Exporting of an Instance to Cloud Storage?
using the UI in the cloud sql management screens? I have been
looking, but perhaps (or obviously) I am missing something...
Re: JDBC connection string problems
haven't had any luck and truthfully haven't tried too hard. I was
working on a bootstrapping/migration utilities intended to run outside
of the GAE environment. I would be eager to hear if anybody has pulled
it off though.
Any way to change cloud sql instance global variable values
Is there any way to change the value of global variables for my cloud sql instance?
I want to change specifically the value of variable "lower_case_table_names" to 1.
Thanks,
Abhishek
Re: geospatial queries
solution. I don't have access yet.
Having a mysql solution that is likely to get corrupted unless the
data is read-only is not workable for my app that does many data
insertions.
Having a solution that is spreadsheet based (I guess for reporting)
like fusion tables doesn't seem right for an app that is dynamic and
needs to scale.
Waiting for Google to release full-text search support for app
engine :-(
Re: Using Cloud SQL via App Engine Remote API
Re: Using Cloud SQL via App Engine Remote API
Re: anybody running django on the app engine with the sql service?
Hi,
I'm working in the integration. It is still not tested and definitely not optimized and has some features that a wantto implement, but I made a admin interface works.The most import features that I want to implement is to run a remote syncdb instruction.
Using Cloud SQL via App Engine Remote API
Re: Issue connecting SQL
Re: Registering project ID: Are hyphens allowed or not?
Registering project ID: Are hyphens allowed or not?
When registering project ID, it clearly says 6-63 letters, digits or
hyphens. But when ever I add hyphen(s) (not as first or last
character) it always says that project ID isn't available. So I assume
that the tip must be invalid, or validation/availability process is
incorrect.
So "is-this-raD0M-test" invalid ID? AFAIK, it shouldn't be. Or maybe
that hyphens part should be removed from tip text.
- Thanks
Best regards,
Sami Lehtinen
http://www.sami-lehtinen.net/
Re: Issue connecting SQL
Re: Issue connecting SQL
Re: Issue connecting SQL
-Ddatastore.default_high_rep_job_policy_unapplied_job_pct=50 -Xmx512m "-javaagent:C:\Program Files (x86)\eclipse\plugins\appengine-java-sdk-1.6.0\lib\agent\appengine-agent.jar"
java.sql.SQLException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
Caused by:
javax.servlet.ServletException: java.sql.SQLException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
Re: Issue connecting SQL
Issue connecting SQL
java.lang.IllegalArgumentException: No enum const class com.google.appengine.api.rdbms.dev.LocalRdbmsService$ServerType.A-CTI.COM:IT-INVENTORY:SARAS-DEV at java.lang.Enum.valueOf(Enum.java:196) at com.google.appengine.api.rdbms.dev.LocalRdbmsService$ServerType.fromFlagValue(LocalRdbmsService.java:70) at com.google.appengine.api.rdbms.dev.LocalRdbmsService.createDelegate(LocalRdbmsService.java:164) at com.google.appengine.api.rdbms.dev.LocalRdbmsService.init(LocalRdbmsService.java:84) at com.google.appengine.tools.development.ApiProxyLocalImpl.startServices(ApiProxyLocalImpl.java:581) at com.google.appengine.tools.development.ApiProxyLocalImpl.access$700(ApiProxyLocalImpl.java:46) at com.google.appengine.tools.development.ApiProxyLocalImpl$2.run(ApiProxyLocalImpl.java:564) at com.google.appengine.tools.development.ApiProxyLocalImpl$2.run(ApiProxyLocalImpl.java:562) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.tools.development.ApiProxyLocalImpl.getService(ApiProxyLocalImpl.java:561) at com.google.appengine.tools.development.ApiProxyLocalImpl.resolveDeadline(ApiProxyLocalImpl.java:233) at com.google.appengine.tools.development.ApiProxyLocalImpl.doAsyncCall(ApiProxyLocalImpl.java:214) at com.google.appengine.tools.development.ApiProxyLocalImpl.makeSyncCall(ApiProxyLocalImpl.java:147) at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:101) at com.google.appengine.api.rdbms.RdbmsApiProxyClient$ApiProxyBlockingInterface.makeSyncCall(RdbmsApiProxyClient.java:89) at com.google.appengine.api.rdbms.RdbmsApiProxyClient$ApiProxyBlockingInterface.openConnection(RdbmsApiProxyClient.java:75) at com.google.cloud.sql.jdbc.internal.SqlProtoClient.openConnection(SqlProtoClient.java:58) at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:59) at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:26) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:207) at org.apache.jsp.guestbook_jsp._jspService(guestbook_jsp.java:66) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at com.google.appengine.tools.development.PrivilegedJspServlet.access$101(PrivilegedJspServlet.java:23) at com.google.appengine.tools.development.PrivilegedJspServlet$2.run(PrivilegedJspServlet.java:59) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:78) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at com.google.appengine.tools.development.StaticFileUtils.serveWelcomeFileAsForward(StaticFileUtils.java:80) at com.google.appengine.tools.development.LocalResourceFileServlet.maybeServeWelcomeFile(LocalResourceFileServlet.java:254) at com.google.appengine.tools.development.LocalResourceFileServlet.doGet(LocalResourceFileServlet.java:120) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:60) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:78) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:362) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Re: anybody running django on the app engine with the sql service?
Re: Google Apps Script JDBC Service and Google Cloud SQL
Thanx for the answer and for this product.
Anyway I don't where is the problem.
Because it seems that we can't use the "JDBC Cloud SQL driver" with
Google Apps Script JDBC Service. And when I try to use the "MySQL
one", I don't connect. But I may not have the good connection URL.
Thx in advance.
Regards
Laurent
Re: anybody running django on the app engine with the sql service?
Sunday, November 20, 2011
Re: anybody running django on the app engine with the sql service?
Re: My Google Cloud SQL is not activated
My Google Cloud SQL is not activated
i hv request before few days.
pls help us to get this.
case sensitivity
Last week when we were testing our hibernate-oracle application with mysql (mysql server running on linux server), some of our queries failed due to the case difference of some of the tables. The solution we did was to set a variable value to 1 in /etc/my.cnf file. This makes mysql ignore the cases and hibernate was happy to run the queries.
Since I need to run the same application with cloud-sql instance, there is a probability that same problem could occour. Is there any workaround to avoid case-sensitivity in cloud-sql instance? A stitch in time might help me save nine :) .
---Thanks,
Abhishek
Saturday, November 19, 2011
Google Cloud SQL & Toad
edges, anyone managed to connect with Toad? Is it possible or does a
custom driver need to be written?
Friday, November 18, 2011
Re: Import Failure (Internal Failure)
Hi Joe,
I just got access and have tried out various things today. Most things
appear to work as long as you do the right actions - the help pages
and this group are rather useful to get on track. Error messages could
be better. It is also a bit silly that the SQL prompt in the web
interface assumes that you actually type in commands - if I just paste
something in, the execute button is still disabled so I must fiddle to
be allowed to execute.
Anyway, there appears to be something iffy with the import. The dump
I've experimented with claims to be imported, but the data is missing
from some of the tables. I'm pretty sure that the reason is that the
dump is not correctly sorted (data in one table refer to other tables
that are further down in the file). This is easily fixed as such, but
it illustrates my statement above: Error messages are currently not
handled in a very user friendly way - I must pretty much already
anticipate problems even though they are not reported.
FWIW, apologies about the lack of good error reporting. We're aware of this issue.
And while I'm at it: The activity animation along the top during
import appears to be mostly for show - it seems to go on a lot longer
than the actual import.
Now, don't take this wrong - I think this is a great idea and not bad
at all for early adopters. Keep it up!
/ Jonas
Re: Import Failure (Internal Failure)
I just got access and have tried out various things today. Most things
appear to work as long as you do the right actions - the help pages
and this group are rather useful to get on track. Error messages could
be better. It is also a bit silly that the SQL prompt in the web
interface assumes that you actually type in commands - if I just paste
something in, the execute button is still disabled so I must fiddle to
be allowed to execute.
Anyway, there appears to be something iffy with the import. The dump
I've experimented with claims to be imported, but the data is missing
from some of the tables. I'm pretty sure that the reason is that the
dump is not correctly sorted (data in one table refer to other tables
that are further down in the file). This is easily fixed as such, but
it illustrates my statement above: Error messages are currently not
handled in a very user friendly way - I must pretty much already
anticipate problems even though they are not reported.
And while I'm at it: The activity animation along the top during
import appears to be mostly for show - it seems to go on a lot longer
than the actual import.
Now, don't take this wrong - I think this is a great idea and not bad
at all for early adopters. Keep it up!
/ Jonas
Re: expired invitation link
I tried many to reactivate Cloud SQL but still I'm not able to activate. Please help me out.
Thanks and Regards
Ashfaq
Re: Google Apps Script JDBC Service and Google Cloud SQL
Google Apps Script JDBC Service and Google Cloud SQL
expired invitation link
Joe, could you help with that?
thanks!
problem with accessing mysql
the URL sent my google. but for me still it shows request access.
Re: Access more then one application to MySQL-instance.
I can't second application in "Authorized applications".
I have error:
You have reached the maximum number of authorized applications for this instance
Thursday, November 17, 2011
Access more then one application to MySQL-instance.
You have reached the maximum number of authorized applications for this instance
--
Blog: www.rekby.ru
Re: MySQL version 5.5
Comparison with Datastore
AppEngine Datastore? How do they compare with each other performance-
wise?
Re: MySQL version 5.5
Wednesday, November 16, 2011
Re: MySQL version 5.5
From what I've read on this group it is not possible to delete an
instance and reuse the instance name in a new instance.
Using the method in the article above database updates this would
force us to make changes to our applications to point to the new
instance name.
Is this something we would only have to deal with during the limited
preview or is this something we should expect going forward?
In other words will we need a new instance name for each database
upgrade?
Have the ability to re-use the instance name once the upgrade is
complete would be beneficial .
In some cases I can see a benefit of using two instances for cut-over
periods so we are in control.
Thoughts?
Re: MySQL version 5.5
Thank you for the fast response!
Re: MySQL version 5.5
Thanks,
Re: MySQL version 5.5
When I tried to create a new database instance to move my data into it
created the new instance as version 5.1 still.
The dashboard for the new instance shows :
Properties
Status: Running
Version: MySQL 5.1
Replication Type: Synchronous
and the overview screen shows the version MySQL 5.1 also
Did i miss something ?
MySQL version 5.5
Joe Faith | Product Manager | Google Cloud SQL
Re: No response for Google Cloud SQL Limited Preview Signup
No response for Google Cloud SQL Limited Preview Signup
get any response yet. I went in and signed up a second time but still
no response. Can anyone please look into it.
Thanks
Narender
Re: wrong project automatically activated via limited preview form!
wrong project automatically activated via limited preview form!
got my invitation, but it got activated for a new project in the
Google APIs console.
It started a new empty "My Project" (517917635734) but I really want
to test it in my current project (244657026238).
I've tried everything and there's nothing I can do other than kindly
ask for you guys to switch it.
Thank you very much!
Re: Cant activate Cloud SQL
--
Joe Faith | Product Manager | Google Cloud SQL
Re: Unicode text in dev-server.
Unicode text in dev-server.
Re: Cant activate Cloud SQL
message box and was able to enable it.
It seems it didn't work the first time because I wasn't logged in with
the correct account.
Sorry for the noise,
Pedro Morais
Re: Cant activate Cloud SQL
Actually I add an URL, and clicked it, but it still shows Request
Access.
Regards,
Pedro Morais
Re: Cant activate Cloud SQL
Checked the project id from the URL slug, and it's the correct, but it
still shows "Request access" instead of the toggle switch.
Regards,
Pedro Morais
Tuesday, November 15, 2011
Re: Import taking too long?
Import taking too long?
I've tried twice now to run an import for a mysqldump via Cloud
Storage that contains roughly 1 million records (~250MB file).
The .sql file contains the usual - a series of CREATE TABLE and INSERT
() statements. There are 24 tables involved, each with < 5 indexes
and a couple of many-to-many maps in the Django style. I'd love to do
them all at once instead of running 24 separate imports - the DB size
isn't very large at all in the terms that I usually work.
I've attempted to run the import twice, and each time it got cut off
at the 24 hour mark with a generic error (I'm guessing Google cuts off
imports at 24 hours, yes?). At that time, it had completed roughly
100,000 records at a rate of a few per second (I was able to query the
tables with count(*)'s as they imported to check the rate), decreasing
in rate as the tables grew. Any ideas why this was so slow? Each
record is relatively small (think 10 VARCHAR(100) columns and a couple
of dates). I'm close to just giving up on it as impossible to import
at my scale, unless I get clued in on why it's taking so long.
Thanks,
Jesse
Cant activate Cloud SQL
------------------------------------------------------------------------------------------------------------------------------------------------
Thank you for your interest in Google Cloud SQL. You can activate the
service using the URL below using your account:
Please note that the link expires in 48 hours.
Then visit our documentation at: https://code.google.com/apis/sqlservice/
For any questions or comments please use http://groups.google.com/group/google-cloud-sql-discuss
To receive announcements and updates about Google Cloud SQL, subscribe
to https://groups.google.com/group/google-cloud-sql-announce/
Looking forward to you getting started on Google App Engine using
Google Cloud SQL.
Thanks,
The Google Cloud SQL Team
------------------------------------------------------------------------------------------------------------------------------------------------
Where is the link that expires in 48 hours? I tried to activate Cloud
Sql in the Api console but i cant. Still says "request access". And i
only have API project in the project list.
What to do?
Re: Database Replication
2. We understand your frustration, but slow import performance is a result of synchronous replication. We are initially focusing on durability & uptime rather than performance; hence synchronous replication.
Re: pricing
We understand your concern and will be announcing pricing shortly.
pricing
Cloud SQL is great, even epic, but I'm a bit "scared" : we have no
idea about the pricing yet...
Actually, I hesitate to make plans which would involve Cloud SQL
because I don't know yet if I can afford it.
Do you have any information about a price range and what kind of
operation will be charged, or at least, approximate date for pricing
information ? That would reassure us and encourage us to make real
plans.
PS : This is not an angry/complain message at all, Cloud SQL is the
only feature GAE was missing to be the perfect PaaS.
Monday, November 14, 2011
Database Replication
I have two queries rising their heads out of curiosity plus need.
1) Is there any data replication solution so that we could use the local counterpart of our cloud-sql database and keep it in sync with the changes in cloud-sql database?
2) Currently when we are importing just around 3-4 GB of data to my cloud-sql instance, it is taking a hell lot of time. I am wondering what will happen when we'll need to have all my data (around 400GB) to cloud-sql instance :) . Is there, or would there be, any mechanism to make such replication faster, at least to some extent ?
Thanks,
Abhishek
Re: Test agreement.
database monitoring
Its a yes for first two of your questions. It would be great if query execution time could be monitored for a particular query.
By buffer gets I ment the use of internal data buffer cache in memory to avoid frequent disk access.
There are some monitoring tools our DBA use to keep an eye on DB health n performance. Our application, like all the major business applications, is highly database driven and we want it to perform even better over cloud sql. So I was wishing for some kinda monetoring and performance enhancing tool for cloud sql as well.
Re: database monitoring
--Abhishek
Test agreement.
Blog: www.rekby.ru
Re: need some help to get started on Google Cloud SQL
Hi ken,
Yes, dropping database or tables would be a better solution, However, I was trying to learn how the instance name works with a project id. I experiment this。 And also I already deleted the instance, now the question is after the 2 month before it can be reused, is it possible that someone else uses this instance name before I recreate it and thus I lost it forever?
The unique instance name is based on only the instance name itself or combination of project_id:instance name? But I guess this is not a big deal since this is invisible thing for a web app anyway and I can always create a different instance for my app as I learned.
Thanks.
Xiping
Re: Can't repair table
Re: Can't repair table
database monitoring
Is there any way to monitor our cloud sql instance? Keeping the tab over database performrance would be a great help in comparing it with the local counterparts. Monitoring helps in clearly visualizing the big picture and encourage decision makers to take a leap to cloud with rdbms.
Thanks,
Abhishek
Sunday, November 13, 2011
Re: need some help to get started on Google Cloud SQL
Yes, dropping database or tables would be a better solution, However, I was trying to learn how the instance name works with a project id. I experiment this。 And also I already deleted the instance, now the question is after the 2 month before it can be reused, is it possible that someone else uses this instance name before I recreate it and thus I lost it forever? The unique instance name is based on only the instance name itself or combination of project_id:instance name? But I guess this is not a big deal since this is invisible thing for a web app anyway and I can always create a different instance for my app as I learned.
Thanks.
Xiping
Re: Could not parse mapping document from .hbm.xml
I've resolved the problem. You are right, something else was breaking this. A deadline exceeded exception while creating the session was the root cause. When I resolved that problem, the xml problem got resolved automatically.
Thanks,
Abhishek
Re: need some help to get started on Google Cloud SQL
found that
"if I delete my instance, can I reuse the instance name?
Yes, but not right away. The instance name is reserved for up to
two months before it can be reused."
While reserving a instance name is good, I think for the owner of an
instance should be able to delete and recreate immediately.
In particular, in this early stage, people like me is learning how to
use or best use the service, am I right? Thanks.
Re: Could not parse mapping document from .hbm.xml
Re: Can't repair table
Re: Can't repair table
I have MySQL instance with 1 database. Database have 1 table `email` with full text index.
Now size of instance 46 MB.I try: "REPAIR TABLE email" and see error:
Error 0:Unable to execute statementBut after some time (1-2 minutes) table start work as repaired.
Saturday, November 12, 2011
Re: I can't delete data from table
Structure of table:
I can't delete data from table
Re: How to do Full Text Search in GSQL?
database into Google MySQL will the Full Text Search functionality
still be available on the Google version of the database? Will I
still be able to run Full Text Searches against the table that is
hosted on Google MySQL?
Thanks
Can't repair table
Re: How to do Full Text Search in GSQL?
Re: need some help to get started on Google Cloud SQL
absolute right, by using myproject:myinstance, I was able to get the
Guestbook sample code running with easy! I will test out the local
db in a few minutes by following the link you provided. Thanks a
lot! Have a great day!
Re: need some help to get started on Google Cloud SQL
2. I followed the Guestbook tutorial on Google Cloud SQL website
exactly and by accessing my deployed tutorial app on App engine with
"myinstance" only in driver string, I get "Error: Server Error The
server encountered an error and could not complete your request."
What is the best approach to trouble shooting the issues of a deployed
web app on Google App Engine like this? (sorry, this might be a app
engine question).
2. After I deleted an instance I created, and then tried to create it
again, I got an error like "instance .... already exists in the
domain". How can I really delete the instance so that I can
recreate it from "the domain" (which domain) ?
3. In order to run the same code using a local database, I have to
create the same database instance and the database, tables, etc as on
Cloud SQL as I think. This seems imply that in question 1, I should
not have "myproject" in the driver string, since a local database will
not have a project name for a database instance, am I right?
I am very excited to learn how to best use Google cloud computing
services and all other cool web development tools.
Thanks and best regards
Rob