Current location: Hot Scripts Forums » Programming Languages » PHP » PHPMyAdmin alternatives


PHPMyAdmin alternatives

Reply
  #1 (permalink)  
Old 01-25-04, 08:44 PM
DeathByAnts DeathByAnts is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
PHPMyAdmin alternatives

I currently am trying to import a 30mb database into MySQL using PHPMyAdmin. The problem is, it continually times out and screws up the tables. Can anyone reccomend any alternatives that can be used through cpanel?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-25-04, 10:16 PM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hi there,

Through CPanel... why don't you chop up the data (i.e. your SQL file) into smaller chunks?
__________________
Blavv =|
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 01-25-04, 11:36 PM
DeathByAnts DeathByAnts is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by blaw
Hi there,

Through CPanel... why don't you chop up the data (i.e. your SQL file) into smaller chunks?

because it is a LOT of code to break up each thing individually and I am going to have to do this a lot on the future.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 01-26-04, 12:07 AM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
I see...

If the problem is purely timeout, you can try manipulating the limit:

In phpMyAdmin's config.inc.php, there is a config var called $cfg['ExecTimeLimit']. You can set this to 0 (zero), which means infinite (up to the PHP's max excution time).

Open your php.ini and find max_excution_time and change the value to whatever the value (in seconds) you think would be sufficient for phpMyAdmin to finish excution. You may also want to check mysql.connect_timeout.

If you do not have access to your php.ini, I think these directives can be set via ini_set() on runtime, too:

PHP: ini_set - Manual
http://ca3.php.net/ini_set

I hope this time it's useful.
__________________
Blavv =|
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 01-26-04, 06:27 AM
ermau's Avatar
ermau ermau is offline
Wannabe Coder
 
Join Date: Aug 2003
Location: Florida, USA
Posts: 240
Thanks: 0
Thanked 0 Times in 0 Posts
Or you could write a script to run through your sql file in intervals, like do the first 100 rows or so and then have the user hit next, do another 100 rows, etc.
__________________
PHP / mySQL Developer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 01-26-04, 08:21 AM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
If it is a SQL file, why not use the command line mysql client to connect to the mysql server and import the commands ? Something like:

mysql -h hostname -u username -ppassword database < sqlfile
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 01-26-04, 08:57 AM
Dale Dale is offline
Newbie Coder
 
Join Date: Dec 2003
Location: London, UK
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Id use MySQL Front

Click here
__________________
>>> DaleHay.com <<<
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
granting mysql privleges in phpmyadmin Stahler PHP 1 01-04-04 05:31 PM
phpMyAdmin 2.2.6 & MySQL 4.0.1 mdhall PHP 8 10-30-03 09:44 PM
phpmyadmin + login... Marko PHP 3 09-18-03 12:10 PM


All times are GMT -5. The time now is 10:20 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.