Welcome, Guest. Please Login or Register.
July 19, 2025, 09:03:12 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  shell access « previous next »
Pages: [1] Reply Ignore Print
Author Topic: shell access  (Read 427 times)
Egg
Full Member
***
Posts: 139


I'm a llama!

WWW
shell access
« on: March 12, 2003, 10:36:00 PM »
Reply with quote

okay, I now have got shell access to my server.

how do I go about downloading the database??

firstly, how do I go about using the shell access?? I dont even know ow to access it as yet.... any pointers gratefully received

Egg
Logged
Egg
Full Member
***
Posts: 139


I'm a llama!

WWW
Re:shell access
« Reply #1 on: March 12, 2003, 11:10:17 PM »
Reply with quote

ok, have worked out how to get into it, using a ssh client.

now, what do I need to type to dump the DB???
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:shell access
« Reply #2 on: March 12, 2003, 11:14:24 PM »
Reply with quote

u can make dump files using phpmyadmin, it will be easier
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Egg
Full Member
***
Posts: 139


I'm a llama!

WWW
Re:shell access
« Reply #3 on: March 12, 2003, 11:40:23 PM »
Reply with quote

phpmyadmin wont do it. it times out

ref http://www.yabbse.org/community/index.php?board=140;action=display;threadid=17776;start=0
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:shell access
« Reply #4 on: March 13, 2003, 02:23:47 AM »
Reply with quote

mysqldump --opt --databases YOURDBNAME > output.sql

-[Unknown]
Logged
halebopp
Noobie
*
Posts: 21


It's better to burn out that to fade away

Re:shell access
« Reply #5 on: March 13, 2003, 12:14:50 PM »
Reply with quote

Quote from: [Unknown] on March 13, 2003, 02:23:47 AM
mysqldump --opt --databases YOURDBNAME > output.sql

-[Unknown]


mysqldump --opt YOURDBNAME -uusername -ppassword >output.sql

If you only have one database, you dont need the --databases  option. Specifying username and password is necessery in most cases, also. Be sure to have no space between -u/-p and the username/password.

If you can access the new database from your old server, you can directly import the dump in the new database:

mysqldump --opt YOURDBNAME -uusername -ppassword | mysql --host=newhost -uusername -ppassword  -C NEWDBNAME
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:shell access
« Reply #6 on: March 13, 2003, 04:18:26 PM »
Reply with quote

Using --databases adds a "use DATABASENAME" which I always find useful.

Further, he probably doesn't have access to the MySQL server from any host except localhost.

-[Unknown]
Logged
Egg
Full Member
***
Posts: 139


I'm a llama!

WWW
Re:shell access
« Reply #7 on: March 15, 2003, 12:06:45 PM »
Reply with quote

well I tried all the options above.

first I got an output.sql that was 0kb in size.. obviously empty.

then nothing at all. the .bash_history file shows what i did and it is what you put upstairs.

mysqldump --opt MYDBNAME -uMYUSERNAME -pMYPASSWORD >output.sql

strange.

is there a specific ssh client I should be using / you recommend? I am currently using PuTTY.. maybe I have it configured incorrectly.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:shell access
« Reply #8 on: March 15, 2003, 12:37:01 PM »
Reply with quote

Ummm....

You did put your database name in for MYDBNAME, right?

-[Unknown]
Logged
Egg
Full Member
***
Posts: 139


I'm a llama!

WWW
Re:shell access
« Reply #9 on: March 15, 2003, 01:03:43 PM »
Reply with quote

yep

and I double checked to make sure I got the right name
Logged
Egg
Full Member
***
Posts: 139


I'm a llama!

WWW
Re:shell access
« Reply #10 on: March 15, 2003, 01:25:54 PM »
Reply with quote

is it

mysql_dump

or

mysqldump
??

*edit* if tis mysqldump I get

mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysqld.sock' (2) when trying to connect

if its mysql_dump I get


mysql: unrecognized option `--opt'
« Last Edit: March 15, 2003, 01:31:55 PM by Egg » Logged
Egg
Full Member
***
Posts: 139


I'm a llama!

WWW
Re:shell access
« Reply #11 on: March 22, 2003, 09:32:40 AM »
Reply with quote

^^TTT

??
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:shell access
« Reply #12 on: March 22, 2003, 11:28:15 AM »
Reply with quote

It's mysqldump and you have to connect to the server with it.

I don't know how, I always do it via localhost...

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  shell access « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.036 seconds with 21 queries.