Search
 
SCRIPT & CODE EXAMPLE
 

SQL

wordpress database add admin

INSERT INTO `databasename`.`wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES ('username', MD5('password'), 'name', 'test@domain.com', 'http://www.test.com/', '2011-06-07 00:00:00', '', '0', 'Your Name');

# Select user ID and insert into XXX

INSERT INTO `databasename`.`wp_usermeta` (`user_id`, `meta_key`, `meta_value`) VALUES ('userid', 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}');
 
INSERT INTO `databasename`.`wp_usermeta` (`user_id`, `meta_key`, `meta_value`) VALUES ('userid', 'wp_user_level', '10');
Comment

PREVIOUS NEXT
Code Example
Sql :: print oracle 
Sql :: delete sql row by id 
Sql :: oracle table privileges 
Sql :: SELECT list is not in GROUP BY clause 
Sql :: last 24 HOUR data in mysql 
Sql :: postgresql blocked on mac 
Sql :: how to get yesterday date in mysql 
Sql :: Add 2 hours to current time in MySQL 
Sql :: sql server beginning of month 
Sql :: UseSqlServer no definition 
Sql :: mysql command line xampp ubuntu 
Sql :: sql query to get column data type in sql 
Sql :: pdo mysql insert 
Sql :: this is incompatible with sql_mode=only_full_group_by 
Sql :: see mysql users ubuntu 
Sql :: convert_tz mysql 
Sql :: create new table plsql 
Sql :: sql error 1175 
Sql :: mysql check table exists 
Sql :: mariadb alter user host 
Sql :: mysql remove foreign key constraint 
Sql :: postgres read table structure 
Sql :: postgresql change column to not null 
Sql :: search column name sql 
Sql :: how to add auto increment primary key 
Sql :: how much every mysql database record takes from diskspace 
Sql :: set statiscis on in sql server 
Sql :: psql autocomplete for mac brew install 
Sql :: insert all or first in oracle sql 
Sql :: copy sql table to another table 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =