路漫漫其修远兮,吾将上下而求索

导航

wordpress创建数据库

创建数据库Wordpress和用户名wp,口令为Wordpress666,并授予该用户对该库的所有权限

create database Wordpress;
create user 'wp'@'localhost' identified by 'Wordpress666';
grant all on Wordpress.* to wp@'localhost';

不使用明文口令的使用哈希值

select password('wordpress666');
create user 'wp'@'localhost' identified by password '*5D27E9D2CC31A41DA2A69A0AC8F11797861C134E';

 

 

  

删除数据库和用户

drop database Wordpress;
drop user wp@localhost;

 

posted on 2021-08-19 11:24  爱在西元间  阅读(551)  评论(0编辑  收藏  举报