I am trying to insert a DB that is about 250MB, the limit is 1GB. The process stops unsuccessfully and I get the message:
] Fatal error : Allowed memory size of 268435456 bytes exhausted (tried to allocate 259310400 bytes) in C:\Users\User\AppData\Local\Programs\Local\resources\extraResources\adminer\adminer.php on line 100
I increased all memories at my conf/php/php.ini but the problem remains.
Hey @giorgoskey! This is a known limitation in Local at the moment. We have a feature request here to allow adjustments for this value. Feel free to upvote, comment or follow along. In the meantime your best bet will be to manually import the database as a workaround. Details at the bottom of this post:
site shel this command: wp db import sites5_proinos.sql
and I get the error:
Error: Failed to get current SQL modes. Reason: ERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost’ (10061)
Then I run the Local program as administrator and still got the same issue. I read more and I change the wp config options as suggested to:
define( ‘DB_HOST’, ‘localhost:10005’ ); 10005 is my localhost
and now I get the message:
ERROR 1045 (28000): Access denied for user ‘sites5_proinos’@‘localhost’
Just to check a few things here that could be getting in the way:
Do you have any antivirus, security, or firewall applications that could be blocking Local? If so, can you try temporarily disabling them or see if they have a setting that will “allow” Local to proceed?