# 服务器网站数据搬迁

## 服务器网站数据搬迁

## mysql数据库配置

### 安装

### 配置账号密码

`mysqladmin -u root password`

## 创建用于连接wordpress的远程账号

参考 <https://blog.csdn.net/SZStudy/article/details/80561207>

`create user wordpress@ified by 'zpliu020311';`

```
## 赋予用户对某个databases操作权限
 grant all privileges on *.* to wordpress@'%' with grant option;
### 刷新
flush privileges;
### 改变密码验证方式，使用明码验证
ALTER USER 'wordpress'@'%' IDENTIFIED WITH mysql_native_password BY 'zpliu020311';

## 创建数据库
create database wordpress;
## 导入备份的数据库表单
use wordpress;
source *.sql;
```

## Appache安装


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zpliu.gitbook.io/booknote/linux/fu-wu-qi-wang-zhan-shu-ju-ban-qian.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
