更多知识,请移步我的小破站:http://hellofriend.top
前几天,出于好奇无意间修改了WordPress的URL地址,没想到却连 WordPress 的仪表盘都出现404错误无法登录。为了解决该问题,在网上搜索了一番,发现绝大部分文章帖子都是说伪静态设置出了问题,试着修改.htaccess文件,设置伪静态规则等等,依旧无果…后来猛然发现是数据库的问题。
误操作
解决方案
1. 使用SSH登录服务器,如XShell等工具都可以
2. 登录到MySQL数据库
输入如下指令,输入密码,进入MySQL数据库。
[root@host ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1914
Server version: 5.5.62-log Source distribution
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trad