Reply
Database Dilemma (Moving Data)
Old 01-11-2008, 09:02 PM Database Dilemma (Moving Data)
brentpowell9's Avatar
Novice Talker

Posts: 12
Name: Brent Powell
Location: USA
Alright, here is my dilemma. I have a database that I have moved with the exception of two tables. Each table is about 130mb...and contains posts and private messages. They are possibly the most important part of the database aside from member data. I am moving my forum from one server to another, and when I import my database data on the new server, the import tool allows files up to 50mb to be imported, and so that is my problem, I can't export and import a 130 mb file. Is there anything I can do to solve this, or anyone who would like to help me move my database? I guess if you require money to do such small tasks, I can pay you. I was told I should delete posts, but that is not an option until all other ideas and options have been exhausted and thrown out.
__________________
Brent Powell
Star Wars Diplomacy.Com, Webmaster
brentpowell9 is offline
Reply With Quote
View Public Profile Visit brentpowell9's homepage!
 
When You Register, These Ads Go Away!
     
Old 01-11-2008, 09:15 PM Re: Database Dilemma (Moving Data)
cwboaze's Avatar
Novice Talker

Posts: 10
Name: Chris Boaze
Location: Online - Virginia
I am guessing her, but this is for a mysql database and the export is in sql right?

++

if yes to above, can you get access to your hosting account with Shell?
or if you are a dedicated or virtual private server owner then you defintely can
use shell.

Shell is one of the best ways to transfer VERY large database files and upload them
to phpmyadmin or directly to the database table.
__________________
-------------
Thanks, CB-The-One
http://www.webdevelopmenttechnology.com

Last edited by cwboaze : 01-11-2008 at 09:23 PM. Reason: added question.
cwboaze is offline
Reply With Quote
View Public Profile Visit cwboaze's homepage!
 
Old 01-11-2008, 10:06 PM Re: Database Dilemma (Moving Data)
tripy's Avatar
Fetchez la vache!

Posts: 1,819
Name: Thierry
Location: In the void
The shell access is the preferred way to go.

But, if you have no shell access, first examine the sql dump.
If the datas are stored with full inserts, you can easily split up the file in smaller parts.

If not (every datas are packed in 1 bug query), then the easiest thing to do is to install a mysql server on your computer, import the datas, and export them back as full inserts, and split up the files.

Or even easier, if you have still access to something like a phpMyAdmin of the old db, redo an export specifying to use full insert queries.
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Old 01-12-2008, 03:26 PM Re: Database Dilemma (Moving Data)
brentpowell9's Avatar
Novice Talker

Posts: 12
Name: Brent Powell
Location: USA
How exactly do I do this shell thing? I realize maybe this is a dumb question for a webmaster to be asking, but some of this stuff is new to me, so any help is great.
__________________
Brent Powell
Star Wars Diplomacy.Com, Webmaster
brentpowell9 is offline
Reply With Quote
View Public Profile Visit brentpowell9's homepage!
 
Old 01-12-2008, 04:57 PM Re: Database Dilemma (Moving Data)
tripy's Avatar
Fetchez la vache!

Posts: 1,819
Name: Thierry
Location: In the void
You open a terminal, and use the mysql command included in the mysql server download to connect to a remote server, like this:

The mysql.exe must be called from a dos shell.
Under windows, hit the keys "windows" + r and type "cmd" as the command to run.
This will open the shell.
Navigate to the mysql/bin folder and type the command:
Code:
mysql.exe -h hostname -u username -p database_name
Once logged in, you will find a screen like that:
Code:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.44-log Gentoo Linux mysql-5.0.44-r2

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>
And then, you'll be able to copy/paste commands into the client.
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Old 01-12-2008, 05:55 PM Re: Database Dilemma (Moving Data)
brentpowell9's Avatar
Novice Talker

Posts: 12
Name: Brent Powell
Location: USA
Quote:
Originally Posted by tripy View Post
You open a terminal, and use the mysql command included in the mysql server download to connect to a remote server, like this:

The mysql.exe must be called from a dos shell.
Under windows, hit the keys "windows" + r and type "cmd" as the command to run.
This will open the shell.
Navigate to the mysql/bin folder and type the command:
Code:
mysql.exe -h hostname -u username -p database_name
Once logged in, you will find a screen like that:
Code:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.44-log Gentoo Linux mysql-5.0.44-r2

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>
And then, you'll be able to copy/paste commands into the client.
Honestly, I didn't get much of what you said...so maybe it would be possible for me to pay someone to do this for me...honestly...I don't know what a terminal is, don't know where the mysql/bin folder is, so yeah.
__________________
Brent Powell
Star Wars Diplomacy.Com, Webmaster
brentpowell9 is offline
Reply With Quote
View Public Profile Visit brentpowell9's homepage!
 
Reply     « Reply to Database Dilemma (Moving Data)
 

Thread Tools

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

vB 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.13499 seconds with 13 queries