charms/mysql — pull request #1 by Mahito (2014-11-13 06:14:51+00:00)
Title: Add remote_ip when use local DB

Hi, I try to build openstack by using local DB, however Keystone got connection failed.
This ploblem happens when use local DB, because mysql don't allow remote ip.

```
mysql> select host,user from mysql.user;
+----------------+------------------+
| host | user |
+----------------+------------------+
| 127.0.0.1 | keystone |
| 127.0.0.1 | root |
| ::1 | root |
| localhost | debian-sys-maint |
| localhost | root |
| ubuntu03 | root |
+----------------+------------------+
6 rows in set (0.00 sec)
```

I found remote ip address override '127.0.0.1' when relation target ip equals mysql server ip.
Relation target access by using remote ip, however mysql denies remote ip(so, mysql allows '127.0.0.1').

This PR add remote ip to access rule.

```
mysql> select host,user from mysql.user;
+----------------+------------------+
| host | user |
+----------------+------------------+
| 127.0.0.1 | keystone |
| 127.0.0.1 | root |
| 192.168.20.102 | keystone |
| ::1 | root |
| localhost | debian-sys-maint |
| localhost | root |
| ubuntu03 | root |
+----------------+------------------+
7 rows in set (0.00 sec)
```