We recommend servers running version 7.3 or greater of PHP and MySQL version 5.6 ORMariaDB version 10.0 or greater. We also recommend either Apache or Nginx as the most robust options for running WordPress, but neither is required.
mysql> create database wordpress; Query OK, 1 row affected (0.01 sec) mysql> CREATE USER 'wordpress' IDENTIFIED BY '一个复杂的密码'; Query OK, 0 rows affected (0.01 sec) mysql> GRANT ALL PRIVILEGES ON wordpress.* TO wordpress; Query OK, 0 rows affected (0.00 sec)
$ mysql -u wordpress -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10 Server version: 8.0.18 MySQL Community Server - GPL
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | wordpress | +--------------------+ 2 rows in set (0.00 sec)