1.5 KiB
1.5 KiB
title, type, tags, date
| title | type | tags | date | ||||
|---|---|---|---|---|---|---|---|
| MySQL MariaDB 数据库详细信息 | source |
|
2026-04-16 |
Source File
Summary
- 核心主题:MySQL/MariaDB 数据库配置与远程访问用户创建
- 问题域:NAS 环境下的数据库部署与访问配置
- 方法/机制:MariaDB 用户权限管理、远程访问授权、 socket 登录
- 结论/价值:解决新安装 MariaDB 无法从外部客户端访问的问题
Key Claims
- MariaDB 新安装后,只有
root@localhost,无法从外部访问 - 远程访问需要创建
'username'@'%'格式的用户 - 需要执行
GRANT ALL PRIVILEGES和FLUSH PRIVILEGES才能生效
Key Quotes
"你的 MariaDB 只有
root@localhost,并没有root@%或你要连接用的用户账号" "从你外部客户端连接失败的最常见原因就是:没有对应的 Host/User 组合 + 缺少权限"
Key Concepts
Key Connections
Internal Access Configuration
- IP: 192.168.3.17
- Port: 3307
- Username: shenwei / root
- Password: !Abcde12345
Public Access Configuration
- Domain: mysql.ishenwei.online
- Port: 63307
- Username: shenwei / root
- Password: !Abcde12345