登陆数据库:mysql -uroot -p 创建数据库:CREATE DATABASE wordpress; 创建数据库用户:CREATE USER wordpress@localhost IDENTIFIED BY 'wordpress()'; 给用户所有权限:GRANT ALL PRIVILEGES ON wordpress.* TO wordpress@localhost; 刷新生效: FLUSH PRIVILEGES; 退出:exit cd /data/website/wordpress