How to update value of php memory limit from database for "all in one seo" plugin of wordpress?

+1 vote
asked Apr 23, 2017 by Hitesh Garg (799 points)  

I have updated my wordpress installation and I am unable to access my website because it gives memory exhaustion error

PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home/sitehost/public_html/wp-includes/wp-db.php on line 1775

Since I am unable to access the admin panel, how can I increase memory limit set by all in one seo plugin.
I am sure that this plugin has set the memoy because whenever I rename the plugin in files(it gets automatically disabled) I am able to access the site properly but as soon as I recorrect it and enable it again I face the same issue.
How can I update value from database?

Please log in or register to answer this question.