Host ‘xx.xx.xx.xx’ is not allowed to connect to this MySQL server
注:需要在服务器登录mysql终端
改表法
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
mysql> use mysql; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A
Database changed mysql> update user set host = '%' where user = 'root';//需要远程连接的用户 mysql> select host,user from user; +-----------+-----------+ | host | user | +-----------+-----------+ | % | root | | localhost | mysql | | localhost | mysql.sys | +-----------+-----------+ 3 rows in set (0.00 sec)
授权法
1 2 3 4 5
mysql> GRANT ALL PRIVILEGES ON *.* TO 'mysql'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; //mysql 密码强度有验证;mypassword:密码 Query OK, 0 rows affected, 1 warning (0.00 sec)
不在 Markdown 涵盖范围之内的标签,都可以直接在文档里面用 HTML 撰写。不需要额外标注这是 HTML 或是 Markdown;只要直接加标签就可以了。 要制约的只有一些 HTML 区块元素――比如 <div>、<table>、<pre>、<p> 等标签,必须在前后加上空行与其它内容区隔开, 还要求它们的开始标签与结尾标签不能用制表符或空格来缩进。Markdown 的生成器有足够智能,不会在 HTML 区块标签外加上不必要的 <p> 标签。
区块元素
字体颜色
1 2 3
<fontcolor=#ff0000size=4face="黑体">最大消息长度</font> <fontcolor=#0400ffsize=4face="黑体">最大消息长度</font> <table><tr><tdbgcolor=yellow>最大消息长度正好是 IP 中不会被分片处理的最大数据长度</td></tr></table>
要建立一个行内式的链接,只要在方块括号后面紧接着圆括号并插入网址链接即可,如果你还想要加上链接的 title 文字,只要在网址后面,用双引号把 title 文字包起来即可,例如:
1 2
This is [an example](http://example.com/ "Title") inline link. [This link](http://example.net/) has no title attribute.
会产生:
1 2 3 4
<p>This is <ahref="http://example.com/"title="Title"> an example</a> inline link.</p> <p><ahref="http://example.net/">This link</a> has no title attribute.</p>
1 2 3
This is [an example](http://example.com/ "Title") inline link. This is [an example][foo] reference-style link. [foo]: <http://example.com/> "Optional Title Here"