|
44 | 44 |
|
45 | 45 | #### Public Resource types |
46 | 46 |
|
47 | | -* [`mysql_grant`](#mysql_grant): @summary Manage a MySQL user's rights. |
| 47 | +* [`mysql_database`](#mysql_database): Manage a MySQL database. |
| 48 | +* [`mysql_grant`](#mysql_grant): Manage a MySQL user's rights. |
48 | 49 | * [`mysql_login_path`](#mysql_login_path): Manage a MySQL login path. |
49 | 50 | * [`mysql_plugin`](#mysql_plugin): Manage MySQL plugins. |
50 | | -* [`mysql_user`](#mysql_user): @summary Manage a MySQL user. This includes management of users password as well as privileges. |
| 51 | +* [`mysql_user`](#mysql_user): Manage a MySQL user. This includes management of users password as well as privileges. |
51 | 52 |
|
52 | 53 | #### Private Resource types |
53 | 54 |
|
54 | | -* `mysql_database`: Manage a MySQL database. |
55 | 55 | * `mysql_datadir`: Manage MySQL datadirs with mysql_install_db OR mysqld (5.7.6 and above). |
56 | 56 |
|
57 | 57 | ### Functions |
@@ -1158,8 +1158,8 @@ The following parameters are available in the `mysql::db` defined type: |
1158 | 1158 | ##### <a name="-mysql--db--name"></a>`name` |
1159 | 1159 |
|
1160 | 1160 | The name of the database to create. Database names must: |
1161 | | - * be longer than 64 characters. |
1162 | | - * not contain / \ or . characters. |
| 1161 | + * not be longer than 64 characters. |
| 1162 | + * not contain '/' '\' or '.' characters. |
1163 | 1163 | * not contain characters that are not permitted in file names. |
1164 | 1164 | * not end with space characters. |
1165 | 1165 |
|
@@ -1281,9 +1281,58 @@ Default value: `undef` |
1281 | 1281 |
|
1282 | 1282 | ## Resource types |
1283 | 1283 |
|
| 1284 | +### <a name="mysql_database"></a>`mysql_database` |
| 1285 | + |
| 1286 | +Manage a MySQL database. |
| 1287 | + |
| 1288 | +#### Properties |
| 1289 | + |
| 1290 | +The following properties are available in the `mysql_database` type. |
| 1291 | + |
| 1292 | +##### `charset` |
| 1293 | + |
| 1294 | +Valid values: `%r{^\S+$}` |
| 1295 | + |
| 1296 | +The CHARACTER SET setting for the database |
| 1297 | + |
| 1298 | +Default value: `utf8` |
| 1299 | + |
| 1300 | +##### `collate` |
| 1301 | + |
| 1302 | +Valid values: `%r{^\S+$}` |
| 1303 | + |
| 1304 | +The COLLATE setting for the database |
| 1305 | + |
| 1306 | +Default value: `utf8_general_ci` |
| 1307 | + |
| 1308 | +##### `ensure` |
| 1309 | + |
| 1310 | +Valid values: `present`, `absent` |
| 1311 | + |
| 1312 | +The basic property that the resource should be in. |
| 1313 | + |
| 1314 | +Default value: `present` |
| 1315 | + |
| 1316 | +#### Parameters |
| 1317 | + |
| 1318 | +The following parameters are available in the `mysql_database` type. |
| 1319 | + |
| 1320 | +* [`name`](#-mysql_database--name) |
| 1321 | +* [`provider`](#-mysql_database--provider) |
| 1322 | + |
| 1323 | +##### <a name="-mysql_database--name"></a>`name` |
| 1324 | + |
| 1325 | +namevar |
| 1326 | + |
| 1327 | +The name of the MySQL database to manage. |
| 1328 | + |
| 1329 | +##### <a name="-mysql_database--provider"></a>`provider` |
| 1330 | + |
| 1331 | +The specific backend to use for this `mysql_database` resource. You will seldom need to specify this --- Puppet will |
| 1332 | +usually discover the appropriate provider for your platform. |
| 1333 | + |
1284 | 1334 | ### <a name="mysql_grant"></a>`mysql_grant` |
1285 | 1335 |
|
1286 | | -@summary |
1287 | 1336 | Manage a MySQL user's rights. |
1288 | 1337 |
|
1289 | 1338 | #### Properties |
@@ -1483,7 +1532,6 @@ usually discover the appropriate provider for your platform. |
1483 | 1532 |
|
1484 | 1533 | ### <a name="mysql_user"></a>`mysql_user` |
1485 | 1534 |
|
1486 | | -@summary |
1487 | 1535 | Manage a MySQL user. This includes management of users password as well as privileges. |
1488 | 1536 |
|
1489 | 1537 | #### Properties |
|
0 commit comments