You do not have sufficient permissions to access this page. WordPress

Solution:

Check below solutions:-

In your DB,

wp_capabilities should be a:1:{s:13:"administrator";s:1:"1";}

wp_user_level should be 10

If not working then check,

// ** MySQL settings ** //
define('DB_NAME', 'madeupname');     // The name of the database
define('DB_USER', 'madeupuser');     // Your MySQL username
define('DB_PASSWORD', 'madeuppw'); // ...and password
define('DB_HOST', 'mysql.yoursite.com');     // ...and the server MySQL is running on
// Change the prefix if you want to have multiple blogs in a single database.
$table_prefix  = 'wp_';   // example: 'wp_' or 'b2' or 'mylogin_'

Check this link also.

Hope it will help you 🙂