1先准备wordpress环境
cd /usr/local/src
然后rz调用
2查看src
wordpress-5.3.2.zip
3yum安装
解压
unzip
upzip wordpress-5.3.2.zip
mv wordpress /data/server/nginx/html/
cd wordpress
mv *…/
修改里面的配置文件
4cd /data/server/nginx/html
cp wp-config-sample.php wp-config.ph
进入界面
vi wp-config.php
‘wordpress’
‘yy’ 用户名
’346‘密码
5重启nginx
systemctl restart nginx
6登录mysql
mysql -u root -p
’nter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.5.22 Source distribution
Copyright © 2000, 2011, 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.
7修改内容
mysql> create database wordpress;
Query OK, 1 row affected (0.00 sec)
mysql> grant all on wordpress.* to
-> grant all on wordpress.* toyy@ ‘localhost’ identified by ‘123’;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that correspr ‘grant all on wordpress.* toyy@ ‘localhost’ identified by ‘123’’ at line 2
mysql> grant all on wordpress.* toyy@ ‘localhost’ identified by ‘123’;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that correspr ‘toyy@ ‘localhost’ identified by ‘123’’ at line 1
mysql> grant all on wordpress.* to yy@‘localhost’ identified by ‘123’;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> Ctrl-C – exit!
Aborted
8.关闭防火墙
systemctl stop firewalld