---
title: "MySql 解决1130 远程链接问题"
author: "cooperay"
date: "2016-06-02T13:35:00Z"
tags: []
categories: ["数据库"]
slug: "mysql-1130"
draft: false
lastmod: "2016-09-01T15:20:23Z"
id: 2302631
url: "https://cooperay.iteye.com/blog/2302631"
---

mysql -u root -p   
mysql&gt;use mysql;   
mysql&gt;select 'host' from user where user='root';   
mysql&gt;update user set host = '%' where user ='root';   
mysql&gt;flush privileges;   
mysql&gt;select 'host'   from user where user='root';