Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8949339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:11:53+00:00 2026-06-15T13:11:53+00:00

I am somewhat newbie for linux, still learning. Today I needed to duplicate a

  • 0

I am somewhat newbie for linux, still learning.

Today I needed to duplicate a database into production environment.. To do this, I used the command

(uiserver):u70486952:~ > mysqldump -h host -u user --password=mypassword dbname > mysql -h host2 -u user2 --password=mypassword dbname2

This command, while looking ok to me did not work and it threw an error.

mysqldump: Got error: 1044: Access denied for user 'user'@'%' to database 'dbname' when selecting the database

Doing this alone (without the > after the command) worked.
I solved this using a pipe character instead of > (more than).

Can someone explain why it showed an errror? I am very curious.

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T13:11:54+00:00Added an answer on June 15, 2026 at 1:11 pm

    Redirection can be performed anywhere in a command, and only the very next word is used as the filename; anything else on the command line is passed as arguments to the command. That is,

    mysqldump -h host -u user --password=mypassword dbname > mysql -h host2 -u user2 --password=mypassword dbname2
    

    is equivalent to

    mysqldump -h host -u user --password=mypassword dbname -h host2 -u user2 --password=mypassword dbname2 > mysql
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im still somewhat of a newbie on jQuery and the ajax scene, but I
I'm not afraid to admit that I'm somewhat of a C++ newbie, so this
this is somewhat a newbie question probably. I'm generating keypairs with Java: KeyPairGenerator keyGen
This is somewhat of a newbie question I'm sure and I hope the community
Somewhat of an academic question, but I ran into this while writing some unit
Still somewhat of a newbie... I have an NSMutableArray that stores filenames - when
I have a question that may sound odd, but being somewhat of a newbie,
Somewhat related to this question , but in the absence of any answer about
Somewhat similar to this question , except we haven't decided that we're going with
I am somewhat new to PHP and am running into an issue. Here is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.