You might run into this error message if you’ve got an older version of python installed. The problem is the newer with syntax: with open(self.__temporary_path, ‘r’) as f: before = md5(f.read()).digest() The solution is to just convert it to try/finally f = open(self.__temporary_path, ‘rb’) try: before = md5(f.read()).digest() finally: f.close()
Month: April 2013
MySqlDump to individual files and restoring again
Make sure that your mysql user has permission to access the file system (the FILE privilege). GRANT ALL does not do this. You can check your user by doing: select user, host, file_priv from mysql.user; To enable: grant FILE on *.* to ‘root’@’localhost’;flush privileges; Also make sure that mysqld can…