---
title: "message from server: \"Host &apos;80dc58cd93cd4c3&apos; is not allowed to connect"
author: "radio123"
date: "2011-10-20T11:40:06Z"
tags: []
categories: ["数据库"]
slug: "message-from-server-host-apos-80dc58cd93cd4c3-apos-is-not-allowed-to-connect"
draft: false
lastmod: "2011-10-20T16:24:28Z"
id: 1202995
url: "https://radio123.iteye.com/blog/1202995"
---

mysql&gt; GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP  
\-&gt; ON &lt;dbname&gt;.*  
\-&gt; TO &lt;username&gt;@&lt;host name&gt;  
\-&gt; IDENTIFIED BY '&lt;password&gt;';

where &lt;dbname&gt; is the name of the database you are tyring to connect to, &lt;username&gt; is the username of the user trying to connect to the database, &lt;host name&gt; the name of the host (in your case the XXX host) and &lt;password&gt; the password of the user.

 

 

授权给所有人：

 

GRANT ALL PRIVILEGES ON \*.* TO ['root'@'%'](mailto:'root'@'%') IDENTIFIED BY 'root' WITH GRANT OPTION;