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

  • SEARCH
  • Home
  • 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 6991471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:30:25+00:00 2026-05-27T19:30:25+00:00

This may be a basic problem in the database world but I don’t speak

  • 0

This may be a basic problem in the database world but I don’t speak ‘databaseian’ fluently.

I am transferring a website from one hosting service to another; from server A to server B. Server B offers the service of transfer but I would like to do it myself. The website is based on WordPress.

My strategy is:

  • to copy all the files from one server (A) to the other one (B) (done).
  • to export the mysql database from server A into a .sql file (done).
  • import the .sql file into a new database in server B so now WordPress can talk to MySql (here is the problem).

The hosting service in server B provides the phpMyAdmin where I can import a .sql file ,the problem is that the database in server A was using a particular username (defined by them) and server B has another one (which I cannot change).

Is there a way of editing the .sql file in order to change (add) the username to the one in server B so I can import it smoothly?

Note: I have the password for the .sql database and username as well.

Update: The error shown by phpMyadmin when trying to import the .sql file is:

 #1044 - Access denied for user 'userServerB'@'localhost' to database 'db-server-A' 

Many Thanks

UPDATE: Everything is working now. Apparently the .sql file had a line that was trying to create a new database itself. I got rid of this line and just used a pre-created database using all the rest of the .sql file and voila. Particular thanks to @daking963

  • 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-05-27T19:30:25+00:00Added an answer on May 27, 2026 at 7:30 pm

    The database username/password is not part of the dumped database sql. It is part of the connection authentication details. You used one username/password to connect to server A, and a different one to connect to server B. The sql file is independent of this.

    So, first just log in to phpMyAdmin on server B using the username/password they provided. Then, import the sql by following these steps:

    1. Select the database you want to import into (or create a new one).
    2. Click on SQL tab at the top.
    3. Click "browse" next to the file upload box and select your sql file.
    4. Click go to start the import.
    

    UPDATE: Regarding your update showing the error message. It is trying to import the sql into a database named db-server-A on server B. Open the sql file in a text editor, and replace all instances of db-server-A with the name of your database on server B. Then save and repeat the steps above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may be a basic C# question, but I'm comming from a C/C++ background.
This may look a very basic question but I am having a problem accessing
I know this may be basic but I cannot seem to add a member
This may be a basic question but how can I include a module with
this question may seem too basic to some, but please bear with be, it's
This may seem like a basic/stupid/obviously-answered question, but I wanted to check: why use
This may be a basic question but I am pretty new to DDD. I
This may sound very basic as a question, but i am stuck in JFreechart
I'm new to C++, so this question may be basic: I have two classes
I'm new to C#, so this may be a basic question. What I need

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.