K
K
Konstantin Lavrovsky2020-04-26 17:28:18
MySQL
Konstantin Lavrovsky, 2020-04-26 17:28:18

Why can't I connect to the wordpress admin after transferring a database from another site?

Good afternoon, I was engaged in a very dubious business, but still, I will be glad if you help me.
I transferred the database from one site to another, domains on the same hosting, connected to the database, everything is displayed well.
But for some reason I can not enter the admin panel, an error pops up:

Sorry, you are not allowed to view this page.

I can’t understand what is the reason for this error, while it logs into the account, but does not allow me to get into the admin panel.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2020-04-26
@azerphoenix

Hello!
This means that you transferred the database incorrectly or the database was damaged during the transfer.
Try to migrate the database again. And check user capabilities
https://wordpress.org/support/article/roles-and-ca...
https://www.wpbeginner.com/wp-tutorials/how-to-add...
Pay attention to this paragraph:

unmeta_id – leave this blank (it will be auto-generated)
    user_id – this will be the id of the user you created in the previous step. Remember we picked 4.
    meta_key – this should be wp_capabilities
    meta_value – insert this: a:1:{s:13:"administrator";s:1:"1";}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question