If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > backing up mysql db's

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-27-05, 14:16
xtgeminiman xtgeminiman is offline
Registered User
 
Join Date: Jan 2005
Posts: 23
backing up mysql db's

My mysql DB is on my hosts server. Is there a way i can save the tables/db to my own computer or dl the db or something?
Reply With Quote
  #2 (permalink)  
Old 02-27-05, 14:32
guelphdad guelphdad is offline
Registered User
 
Join Date: Mar 2004
Posts: 440
use mysqldump to dump to a text file then FTP the file to your computer.
Reply With Quote
  #3 (permalink)  
Old 02-27-05, 14:35
jasong jasong is offline
Registered User
 
Join Date: Jul 2004
Posts: 23
Or if you have phpmyadmin, do a dump and then select the radio button for "save as file".
__________________
SnapSlides.Com - Create slideshows online to share with friends and family.
Reply With Quote
  #4 (permalink)  
Old 02-28-05, 11:15
xtgeminiman xtgeminiman is offline
Registered User
 
Join Date: Jan 2005
Posts: 23
where can i dl mysqldump? I don't use php so I don't think the php one would be right for me. Is there a way I can set up a mysql db on my pc and just copy the files onto that?
Reply With Quote
  #5 (permalink)  
Old 03-01-05, 08:32
guelphdad guelphdad is offline
Registered User
 
Join Date: Mar 2004
Posts: 440
Yes, read the manual and learn how to use mysqldump as I suggested.
Reply With Quote
  #6 (permalink)  
Old 03-01-05, 15:29
xtgeminiman xtgeminiman is offline
Registered User
 
Join Date: Jan 2005
Posts: 23
where's the manual and program? and how can I put a mysql db on my pc.
Reply With Quote
  #7 (permalink)  
Old 03-02-05, 07:33
guelphdad guelphdad is offline
Registered User
 
Join Date: Mar 2004
Posts: 440
Visit mysql.com
you can download the program from there and you can find the manual under the Development tab.
Reply With Quote
  #8 (permalink)  
Old 03-02-05, 09:57
Martin Walters Martin Walters is offline
Registered User
 
Join Date: Mar 2005
Posts: 2
MySQL socket error

This message comes up everytime I enter a web site address

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)Database Error. Please try again later.

is there any solution to it.

Look forward to your reply

Martin
Reply With Quote
  #9 (permalink)  
Old 03-02-05, 17:24
xtgeminiman xtgeminiman is offline
Registered User
 
Join Date: Jan 2005
Posts: 23
This is the program i want to dl right? http://dev.mysql.com/downloads/mysql/4.1.html

How do I set up a connection to my hosts database so i can mysqldump?
Reply With Quote
  #10 (permalink)  
Old 03-04-05, 15:10
msueper msueper is offline
Registered User
 
Join Date: Feb 2005
Location: Germany
Posts: 22
Quote:
Originally Posted by Martin Walters
This message comes up everytime I enter a web site address

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)Database Error. Please try again later.

is there any solution to it.

Look forward to your reply

Martin
Local connections are made through socket files. The location of that file has to be specified either on the command line or in /etc/my.cnf (debian: /etc/mysql/my.cnf, Windows: c:\windows\my.ini). Check the entry regarding the socket file, it's under
[client]
...
and
[mysqld]
...
It has to be the same in both sections.
Reply With Quote
  #11 (permalink)  
Old 03-04-05, 15:15
msueper msueper is offline
Registered User
 
Join Date: Feb 2005
Location: Germany
Posts: 22
Quote:
Originally Posted by xtgeminiman
This is the program i want to dl right? http://dev.mysql.com/downloads/mysql/4.1.html

How do I set up a connection to my hosts database so i can mysqldump?
it's simple:
search the executable mysql and put it's location in your PATH.
Than make your connection like this

mysql -u<user> -p<password> -h<host>

Some users have NO password, in this case DO NOT put -p in the command line.

mysql is a simple command line tool. For ease of use take some sort of gui tool. MySQL AB has some on their home Pg for download.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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