|
44 | 44 |
|
45 | 45 | #### Public Resource types
|
46 | 46 |
|
| 47 | +* [`mysql_database`](#mysql_database): Manage a MySQL database. |
47 | 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 | 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
|
@@ -1281,6 +1281,56 @@ 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 | 1336 | Manage a MySQL user's rights.
|
|
0 commit comments