---
title: "Root 密码修改"
description: "在宝塔面板（BT Panel）数据库 → MySQL 页面修改 root 账号密码，面板会同步更新服务账号、phpMyAdmin 连接信息，避免站点数据库连接中断。"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.bt.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# Root 密码修改

本文将介绍如何修改 Root 密码。

:::danger[警告]
默认为随机密码，root 为最高权限账号密码，请谨慎操作。
:::

## 操作步骤

1. 进入面板，点击左侧菜单栏的 **数据库**，进入数据库的 MySQL 页面；

    ![菜单栏-数据库](/img/user-guide/database/sidebar-database.png)

2. 在数据库的 MySQL 页面，点击 **root密码**，进入修改 Root 密码页面；
   
    ![修改密码](/img/user-guide/database/change-database-mysql-password.png)

3. 在修改密码页面，输入新的密码，点击 **提交**，完成修改；

Source: https://docs.bt.cn/user-guide/database/mysql/root-pass-change/index.mdx
