Se hai bisogno di recuperare un utente amministratore in WordPress o crearne uno nuovo in caso di emergenza, puoi farlo seguendo questi passaggi:
Accedi al database del tuo sito WordPress. Puoi farlo tramite phpMyAdmin dal pannello di controllo di cdmon.
Nel database di WordPress, apri la tabella "wp_users" e individua il record dell’utente che desideri recuperare oppure crea un nuovo record se necessario. Per crearne uno nuovo, clicca su “Inserisci” nel menu generale del database una volta entrato nella tabella users; nell’immagine è evidenziato in verde:
Modifica i campi "user_login", "user_email" e "user_pass" secondo necessità. Se stai creando un nuovo utente o recuperando l’accesso, assicurati di impostare una password sicura utilizzando una funzione di hash come md5.
Assicurati che il campo "user_status" abbia valore 0 per l’utente appena creato.
Infine, nella tabella "wp_usermeta", individua il record associato all’utente appena creato o modificato e clicca su “Modifica”.
Modifica il campo "meta_value" inserendo il valore:
a:1:{s:13:"administrator";s:1:"1";}
Questo assegnerà all’utente i permessi di amministratore.
Salva le modifiche e chiudi il database.
Dopo aver completato questi passaggi, accedi al tuo sito WordPress con l’utente recuperato o con il nuovo utente amministratore. Se il sito si trova in uno stato critico, questi passaggi ti permetteranno di riprendere il controllo e risolvere il problema. Tuttavia, consigliamo sempre di effettuare un backup del database prima di apportare qualsiasi modifica.
Related Articles
How to create users from the Wordpress administrator
On different occasions, we need to create new users to manage our WordPress due to the fact that we may need to grant access to a third party or because the WordPress site is managed by more than one person. In the following guide, we will show how ...
Wordpress Error: It was not possible to create the directory
It is possible that if changes have been made to the WordPress configuration, you may at some point receive a message like this when trying to install a new theme or update a plugin: This means that WordPress is not connecting to the directory ...
How to change the WordPress administrator password from wp-admin
In this guide, we will show how to change your WordPress user password from /wp-admin, that is, from your WordPress admin panel. Your administration folder does not necessarily have to be called /wp-admin, but by default this is the name of the ...
Wordpress structure and files
WordPress is the most well-known and widely used CMS in the world. It allows you to develop websites without having extensive knowledge of programming or web development. Hence its great success. After all, WordPress is an interface that allows you ...
We update your Wordpress
Do you want to update your WordPress and don’t know how? Are you not sure whether your WordPress needs to be updated? At cdmon we offer an update service that can help you update your WordPress to the latest version. What actions will the cdmon team ...