---
title: "解决MySQL不允许从远程访问的方法"
author: "JadeLuo"
date: "2015-06-17T16:40:36Z"
tags: []
categories: ["数据库"]
slug: "mysql"
draft: false
lastmod: "2015-06-17T16:40:36Z"
id: 2220400
url: "https://jadeluo.iteye.com/blog/2220400"
---

http://blog.chinaunix.net/uid-23215128-id-2951624.html

http://www.jb51.net/article/24508.htm

#mysql -hip -uroot -p123456

 grant all PRIVILEGES on discuz.* to ted@'123.123.123.123' identified by '123456';

 flush privileges;

 

show databases;

use mysql;

select user,host from user;