Memory Error while opening sql script in python
<p>I'm trying to open a sql script in python but this piece of code is giving Memory error as the sql script is very huge(22GB!). </p>

<pre><code> # Open and read the file as a single buffer
 fd = open('prob.sql', 'r')
 sqlFile = fd.read()
 fd.close()
</code></pre>