IDENTIFIED BY 'ohC
3teiv';
10 EOF
11 mysql -u root <
12 CREATE DATABASE keystone;
13 GRANT ALL PRIVILEGES ON keystone.* TO 'keystonedbadmin'@'%'
14 IDENTIFIED BY 'Ue0Ud7ra';
15 EOF
16 mysql -u root <
14%
02.02.2021
the appropriate variables, which are then assigned values by a constructor (Listing 3, lines 2-12). In PHP 8, this can be written in a concise way (Listing 3, lines 15-21).
Listing 3
Encapsulating Data