```sql
-- 创建数据库
CREATE DATABASE IF NOT EXISTS `wordpress` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- 创建用户并设置密码
CREATE USER IF NOT EXISTS 'wordpress'@'%' IDENTIFIED BY 'wordpress';

-- 如果你只希望允许来自特定主机访问（如 WordPress 服务器 IP），可以改成：
-- CREATE USER IF NOT EXISTS 'wordpress'@'你的WP服务器IP' IDENTIFIED BY 'wordpress';

-- 授权用户访问该数据库
GRANT ALL PRIVILEGES ON `wordpress`.* TO 'wordpress'@'%';

-- 刷新权限
FLUSH PRIVILEGES;

```

```sql
-------------------------------测试区-------------------------------
CREATE DATABASE IF NOT EXISTS `typecho` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER IF NOT EXISTS 'typecho'@'%' IDENTIFIED BY 'typecho';
GRANT ALL PRIVILEGES ON `typecho`.* TO 'typecho'@'%';
FLUSH PRIVILEGES;
-------------------------------测试区-------------------------------
```

```sql
-- 删除数据库
DROP DATABASE IF EXISTS `nextcloud`;

-- 删除用户
DROP USER IF EXISTS 'nextcloud'@'%';

-- 刷新权限
FLUSH PRIVILEGES;

```