MariaDB didn't like the long username apparently.
sub Whitelist;
BEGIN {
- my $MAPS_username = "mapsadmin";
- my $MAPS_password = "mapsadmin";
+ my $MAPS_username = "maps";
+ my $MAPS_password = "spam";
OpenDB $MAPS_username, $MAPS_password;
} # BEGIN
-- Create users
grant all privileges
- on MAPS.* to mapsadmin@"localhost" identified by "mapsadmin";
-grant select
- on MAPS.* to mapsreader@"localhost" identified by "reader";
-grant insert, select, update, delete
- on MAPS.* to mapswriter@"localhost" identified by "writer";
+ on MAPS.* to maps@"localhost" identified by "spam";
my $err = DeliverMail $userid, $msgfile;
if ($err) {
- OpenDB 'mapsadmin', 'mapsadmin';
+ OpenDB 'maps', 'spam';
MAPSDB::SetContext $userid;
} // DBError
function OpenDB() {
- $db = mysql_connect("localhost", "mapsadmin", "mapsadmin")
+ $db = mysql_connect("localhost", "maps", "spam")
or DBError("OpenDB: Unable to connect to database server", "Connect");
mysql_select_db("MAPS")