Search
 
SCRIPT & CODE EXAMPLE
 

SQL

add user mysql wordpress

INSERT INTO `databasename`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES ('4', 'demo', MD5('demo'), 'Your Name', 'test@yourdomain.com', 'http://www.test.com/', '2011-06-07 00:00:00', '', '0', 'Your Name');
 
 
INSERT INTO `databasename`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '4', 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}');
 
 
INSERT INTO `databasename`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '4', 'wp_user_level', '10');
Comment

PREVIOUS NEXT
Code Example
Sql :: alter table add column with default value 
Sql :: create table sql 
Sql :: mysql concatenate columns 
Sql :: update row in mysql 
Sql :: grant mysql 
Sql :: sql asynchronous stored procedure call 
Sql :: ostgreSQL version 
Sql :: centos 8 install mysql 
Sql :: select columns table mysql 
Sql :: sql auto timestamp 
Sql :: oracle add proxy 
Sql :: get two decimal places in sql server 
Sql :: sql server current date minus 5 years 
Sql :: mysql reset root password 
Sql :: migrate sql table another database 
Sql :: alter table add column and foreign key mysql 
Sql :: purge undo tablespace oracle 11g 
Sql :: ORA-00903 
Sql :: how select a json value in mysql 
Sql :: python how escape sql 
Sql :: select all_source oracle 
Sql :: date formats in sql server 
Sql :: mysql between date range 
Sql :: how to get the number of columns in a table in sql 
Sql :: oracle drop index if exists 
Sql :: sql add column to table 
Sql :: sqlite to csv statement 
Sql :: csv to sqlite python 
Sql :: truncate function in sql oracle 
Sql :: sql delete row with auto increment 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =