php - How to import big file sql to mysql locally -
i want import big sql file mysql database locally .
i try import command line execute command , waited more 2 hours without results 170 mo sql file .
i tried change php.ini wampserver don't start .
memory_limit = 900m post_max_size = 500m upload_max_filesize = 500m
how can import file please ?
with following command
mysql -u username -p password dbname < dump.sql
you not have modify php.ini, not using php.
you can use command display going:
mysql -u username -p password dbname --verbose < dump.sql
your file big, can take while load on local database, depends of own computer , example if datas loaded have lot of indexes.
Comments
Post a Comment