---
title: "mysql 远程访问设置"
author: "microjava"
date: "2011-03-25T14:12:42Z"
tags: []
categories: ["数据库"]
slug: "mysql"
draft: false
lastmod: "2011-03-25T14:12:42Z"
id: 975218
url: "https://microjava.iteye.com/blog/975218"
---

登陆以后运行以下命令，给予远程访问客户端权限.. 

 

grant all on *.* to 'root'@'12.12.1.52' identified by 'root';

 

'root'表示用户名.

 

'12.12.1.52' 你自己机子的IP地址

 

root表示远程登陆密码.