---
title: "mysql 设置远程访问"
author: "garyli"
date: "2014-06-30T11:33:54Z"
tags: []
categories: ["数据库"]
slug: "mysql"
draft: false
lastmod: "2014-06-30T11:33:54Z"
id: 2086661
url: "https://garyli.iteye.com/blog/2086661"
---

```
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; 
```