0

Trying to use PHPMyAdmin doesn't allow me to execute 150Mb data script file. Do you have any work-around for me?

Update

My script is utf-8 encode.

I've update php.ini but all still get error as the below snapshot.

[php.ini]

upload_max_filesize = 256M    
max_execution_time = 0    
memory_limit = 256M

enter image description here

4 Answers 4

2

Try this: http://www.ozerov.de/bigdump/

Bigdump also provides you changing character set

Sign up to request clarification or add additional context in comments.

Comments

1

Use split on linux or a windows split program to split your script in multiple parts. And then load them one by one.

2 Comments

How much should I split then? It's quite annoying in splitting it though.
Depends on many factors, do some trial and error on how much inserts you can do in PhpMyAdmin.
1

Give max_execution_time = 1500 (Which means 25 minuets)

Default execution time is 30sec, http://php.net/manual/en/info.configuration.php

1 Comment

I set it to be 0 already i.e. infinite but that doesn't work. 25 minutes won't be enough though
1

Use native mysql console client. To import that file use

mysql -u [username] -p[password] [database_name] < [your_sql_file]

6 Comments

This won't help me to import utf-8 data
Hic... How can I prove it to you then
@Nam Gi VU Hm.. I think you can't because I use this method enough often to claim that it works :)
This is my sample script in utf8 db.tt/IyNbFAj. Have tried successful using Navicat execute sql file but running from commandline failed
@Nam Gi VU Oh.. that's simple problem with your SQL query :) Just add SET NAMES utf8; in the beginning of file.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.