By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,595 Members | 1,443 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,595 IT Pros & Developers. It's quick & easy.

mySQL values not updating after query

P: n/a
I have an application that I am trying to add mySQL to. I can connect
to the server with no problems and get a couple values from a table the
first time the page loads, ( a wxPython GUI app ), after changing the
table values from a mySQL shell I refresh the page and the values don't
update unless I do a connect and reconnect to the db in the function
that I am calling. I don't think I am caching the values, I am using
python 2.4 and mysql 4.1.1. I would like to create one connection that
can be used by all the python files I have created, or at least create
one connection per file and use that connection in different functions
within that file.

Greg Miller

Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Don't forget to call:
db.commit()

Hope that's help.

Pujo

Jul 19 '05 #2

P: n/a
I just discovered that a few minutes ago, thanks.

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.