<html><head></head><body bgcolor="#FFFFFF"><div><div>On 18/06/2012, at 9:17 AM, Jason Taylor <<a href="mailto:killerkiwi2005@gmail.com">killerkiwi2005@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>I'm pretty sure it's this easy for random sql<br><br><code>from MythTV import MythDB<br>mythdb=MythDB()<br>conn=mythdb.cursor()<br>conn.execute( "UPDATE table SET col1 = 0 WHERE col2 = 1;" ):</code><br><br></div></blockquote>Yes that works IF you have your config.xml in the right place. My system has worked for years with a config/user problem which I've never sorted (until now). Didn't cause any issues until I tried to connect to the db in python. So now I think I have the config right and I can connect to the db with python as shown above.</div><div><span></span></div></body></html>