New MySQL syntax for creating user and granting privileges
authorAndrew DeFaria <Andrew@DeFaria.com>
Thu, 6 Aug 2020 22:05:20 +0000 (15:05 -0700)
committerAndrew DeFaria <Andrew@DeFaria.com>
Thu, 6 Aug 2020 22:05:20 +0000 (15:05 -0700)
maps/bin/MAPSDB.sql

index 1d25810..78cd5ad 100644 (file)
@@ -88,5 +88,6 @@ create table log (
 ); -- log
 
 -- Create users
-grant all privileges 
-  on MAPS.* to maps@"localhost"  identified by "spam";
+-- New 8.0 syntax...
+create user 'maps'@'localhost' identified by 'spam';
+grant all privileges on MAPS.* to 'maps'@'localhost';