D
D
danil_linkins2017-07-31 13:57:21
MySQL
danil_linkins, 2017-07-31 13:57:21

How to add an administrator in WordPress through the bash console?

I connected to the database in the console, but I don’t understand how to add a user with administrator rights.
If I just enter the data in a new row in the table, will password encryption work there?
And what syntax to use when entering?
And what values ​​to enter in wp_usermeta?
Can you please tell me who has done this?
Tried to just install phpMyAdmin on VDS but it doesn't work (

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EvgenyMorozov, 2017-07-31
@EvgenyMorozov

Try wp-cli.org
wp user create Bob [email protected] --role=administrator

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question