FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 6th, 2003, 07:09 PM
rob46 rob46 is offline
A Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: dk
Posts: 267 rob46 User rank is Corporal (100 - 500 Reputation Level)rob46 User rank is Corporal (100 - 500 Reputation Level)rob46 User rank is Corporal (100 - 500 Reputation Level)rob46 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 17 h 6 m 48 sec
Reputation Power: 10
Uploading a mysql db: Putty or FTP?

Hi there.
Sorry if this is a common question among beginners but i've got a bit confused.

I have made a mysql database, and am using perl/html to access it. So far its all been done under localhost on my machine, using Apache as the virtual server.

The database i made has no username/password when i connect using the DBI perl methods. (I don't want one particuarly, as i'm just experimenting)

I need to know how to upload the database from my machine to the server. I used Ws_FTP to transfer the scripts fine.
I hear all this talk of mysql dump etc, but i don't understand.
I assume you can't copy the database in my data folder over to the data folder on the server.

In english, where do you start from? I have Putty, which i use to change the login password for the account on the server, but other than that i don't use it.

Once the database is on the server .... do the username/password change to access it. As i said earlier, when i use it on the local machine, there are none.

Thanks for any help. Sorry if its seems like a stupid question, but so far the usual documentation has got me confused.
The server is Linux BTW

cheers
Rob

Reply With Quote
  #2  
Old January 6th, 2003, 08:09 PM
Mirax's Avatar
Mirax Mirax is offline
Senior Member
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jun 2000
Location: Enschede, The Netherlands
Posts: 1,527 Mirax User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 2 sec
Reputation Power: 10
There are several ways to put a database from one server to another. Easiest is to make a dump of the database (either from the command prompt or by using some tool like phpMyAdmin). This dump consists of your table structure and your actual data. Next step is to move the dump to the other server. Again, several options. If phpMyAdmin is installed on the remote (target) server, you can import the file there I believe. Or you can ftp the dumpfile to the target-server with a ftp-client and use telnet or SSH (putty can do both) to import the dumpfile in the remote database-server by using the command prompt again (something like 'mysql -u user --password=abc < dump.sql' or 'mysqlimport ....', don't remember exactly )
Quote:
I assume you can't copy the database in my data folder over to the data folder on the server.
Most of the times I wouldn't do that. Different databaseserver versions, or maybe different databases may exist on both servers. If you want identical databases and users on both servers and the filesystems on both servers are identical it *might* work (not sure). I'm on Win2000 and simply backup my data directory. If the systems crashes I simply copy the data over my fresh install and as far as I can remember it worked so far

Hope this helps a bit
__________________
There are 10 types of people in this world - those who understand binary and those who don't...

PHP | MySQL | DevShed Forum Search | Google Search

Reply With Quote
  #3  
Old January 7th, 2003, 04:07 AM
rob46 rob46 is offline
A Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: dk
Posts: 267 rob46 User rank is Corporal (100 - 500 Reputation Level)rob46 User rank is Corporal (100 - 500 Reputation Level)rob46 User rank is Corporal (100 - 500 Reputation Level)rob46 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 17 h 6 m 48 sec
Reputation Power: 10
Thanks.
That's makes the process a lot clearer. I too, use win2000 and found copying the database into DATA dir worked fine for backing up etc. As the database is to be populated from the website itself, it should make uploading it much simpler, as the file size is next to nothing.

Does anyone know of a site containing the commands for Putty. Their own website didn't help me out much.

Anyway thanks for clearing that up

Rob

Reply With Quote
  #4  
Old January 7th, 2003, 04:35 AM
pabloj's Avatar
pabloj pabloj is online now
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,917 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 14 h 16 m 7 sec
Reputation Power: 279
PuTTY (I believe) open only a terminal on the remote machine, you should use ftp to transfer the files, eventually move them to the proper dir with PuTTY.
Hope this helps

Reply With Quote
  #5  
Old January 7th, 2003, 10:06 AM
ghatzhat ghatzhat is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 361 ghatzhat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 5 sec
Reputation Power: 7
Quote:
Does anyone know of a site containing the commands for Putty. Their own website didn't help me out much.


rob46,

what i guess you mean here is: "once i've got connected to the remote machine thru putty, how do i do stuff?" i assume this as "the commands for putty" itself do not amount to much - you just have to select port (22 for ssh is the most secure choice if you have the option), put in hostname and connect.

once you are connected, you get a "login as:" prompt, after which you likely have to enter a password. after this point, you're not "in Putty" as such - you are "in a shell" - the type of shell depends on the machine, the administrator etc. a lot of servers these days are run on linux, which often has a "bash" shell.

on my linux machine, and maybe on your server, typing "echo $SHELL" will tell you your shell.

so you need to be looking for "bash shell commands" in google. instead of bash, you may find "tcsh", "sh", "csh" or others.

some commands to get you started - try cd, ls, vi (potentially scary - type esc then :q to exit if you get lost), df, top, clock, chmod. if you need more details on a command, type commandname --help or man commandname.

hope i've understood you right, and hope this helps...
__________________
Little more than a playground for the bugs that live beneath us...

Reply With Quote
  #6  
Old January 7th, 2003, 10:18 AM
rob46 rob46 is offline
A Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: dk
Posts: 267 rob46 User rank is Corporal (100 - 500 Reputation Level)rob46 User rank is Corporal (100 - 500 Reputation Level)rob46 User rank is Corporal (100 - 500 Reputation Level)rob46 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 17 h 6 m 48 sec
Reputation Power: 10
Yeah, thanks for that.

I understand it ok. I'll playing around with some of the commands you suggested!

Thanks very much

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Uploading a mysql db: Putty or FTP?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT