MariaDB [(none)]> create database wp;
MariaDB [(none)]> create user 'wp'@'localhost' identified by 'wp@123';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON `wp`.* TO `wp`@`localhost`;
更改目录所属用户,否则php无权限添加主题。
chown www-data:www-data wordpress/ -R
MariaDB [(none)]> create database wp;
MariaDB [(none)]> create user 'wp'@'localhost' identified by 'wp@123';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON `wp`.* TO `wp`@`localhost`;
更改目录所属用户,否则php无权限添加主题。
chown www-data:www-data wordpress/ -R