vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help in importing DB from ssh (https://vborg.vbsupport.ru/showthread.php?t=152161)

badboyz 07-13-2007 08:14 PM

Help in importing DB from ssh
 
hello.

im trying to import DB from SSH. after i entered

my details
mysqldump -u db_username -p db_name >backup.sql

it asks for password.

and after entered nothing happens.i checked on cpanel my DB is still empty.why is it

snakes1100 07-13-2007 08:57 PM

mysql -u -p dbname < /path/to/db.sql

badboyz 07-13-2007 09:34 PM

thats wat i did

snakes1100 07-13-2007 10:45 PM

Quote:

Originally Posted by badboyz (Post 1290238)
hello.

im trying to import DB from SSH. after i entered

my details
mysqldump -u db_username -p db_name >backup.sql

it asks for password.

and after entered nothing happens.i checked on cpanel my DB is still empty.why is it

Not according to your first post it isn't, mysqldump is for exporting the database.

Do you have the right database name and path to the backup file correct?

Are you sure the backup file your importing from actually has anything in it?

badboyz 07-13-2007 11:24 PM

oh
i want to import.yes i have the right DB and infor

this is wat i typed

Quote:

mysql -u game_new -p bla12 < game.sql

Eikinskjaldi 07-13-2007 11:44 PM

Quote:

Originally Posted by badboyz (Post 1290381)
oh
i want to import.yes i have the right DB and infor

this is wat i typed

Your problem is the spaces. there should be no spaces between the u and the username and the p and the password. Also, the mysql dump probably does not have a database in its specification.

instead of

mysql -u game_new -p bla12 < game.sql

use

mysql -ugame_new -pbla12 name_of_db < game.sql

badboyz 07-13-2007 11:48 PM

i entered this

mysql -ugame_new -pbla12 game_new< game.sql

its keep asking me to enter the details
nothign happens

Dismounted 07-14-2007 05:34 AM

Have you logged into MySQL?

Eikinskjaldi 07-15-2007 12:12 AM

Quote:

Originally Posted by badboyz (Post 1290388)
i entered this


mysql -ugame_new -pbla12 game_new< game.sql

its keep asking me to enter the details
nothign happens

What details does it ask you to enter? Its hard to help you when you are so vague.

Kirk Y 07-15-2007 12:23 AM

Is "game.sql" in the right location? The way you're executing the query, it should be located in the root - is it?


All times are GMT. The time now is 10:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01072 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete