Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
phpMyAdmin SQL import problem (XAMPP)
Old 04-10-2009, 06:49 AM phpMyAdmin SQL import problem (XAMPP)
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
I'm trying to import a large SQL database using phpMyAdmin (through XAMPP) but I keep getting the following error

Quote:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 239357 bytes) in C:\xampp\phpMyAdmin\libraries\sqlparser.lib.php on line 331
Does anyone know how I can increase the memory size? I looked in sqlparser.lib.php on line 331 and found the following code:

PHP Code:
$pos    $GLOBALS['PMA_strpos'](' ' $sql$quotetype$oldpos 1) - 1
I don't have a clue how I can fix it. Originally it told me to look at a different file on line 246, although I can't remember the filename! But it still didn't seem that I could edit that line in order to solve my problem.
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 04-10-2009, 02:49 PM Re: phpMyAdmin SQL import problem (XAMPP)
Novice Talker

Posts: 5
Trades: 0
You can increase it with php.ini file.

Look at the line:
Code:
memory_limit = 16M      ; Maximum amount of memory a script may consume (16MB)
Change it to whatever you want.
Sarvar is offline
Reply With Quote
View Public Profile
 
Old 04-10-2009, 06:13 PM Re: phpMyAdmin SQL import problem (XAMPP)
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
I've tried that but still no luck! I edited the php.ini file in 'C:\xampp\apache\bin' to 100M and yet I still get the same error, saying that the allowed memory size is '33554432'
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 04-11-2009, 04:32 AM Re: phpMyAdmin SQL import problem (XAMPP)
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
I'm not sure, but I think there's an option when importing with phpMyAdmin to only run a few of the queries and then stop. Then you can start over again, starting at the point where to stopped earlier.

I've never done it myself but I remember seeing such an option.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Reply     « Reply to phpMyAdmin SQL import problem (XAMPP)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13446 seconds with 12 queries