https://mariadb.com/kb/en/how-to-convert-datetime-format-while-importing-xml/ https://mariadb.com/kb/en/load-data-infile/ https://www.digitalocean.com/community/tutorials/how-to-install-mariadb-on-ubuntu-20-04 https://stackoverflow.com/questions/1559955/host-xxx-xx-xxx-xxx-is-not-allowed-to-connect-to-this-mysql-server/1559992#1559992

UI utility to connect schema: dbschema.com

Below queries are running if directly copied from readme file, not from browser.

#LOAD XML INFILE "C:/temp/GEO_7095_5539_8_1_2020_8_31_2020.XML" INTO TABLE dmlicensedata.geo ROWS IDENTIFIED BY ''; #LOAD XML INFILE "C:/temp/GEO_7095_5539_8_1_2020_8_31_2020.XML" INTO TABLE dmlicensedata.geo ROWS IDENTIFIED BY ''; LOAD XML INFILE "C:/temp/GEO_7095_5539_8_1_2020_8_31_2020.XML" INTO TABLE dmlicensedata.geo ROWS IDENTIFIED BY '' set Date = STR_TO_DATE(@Date,'%m/%d/%Y %r') , Created = STR_TO_DATE(@Created,'%m/%d/%Y %r') , Modified = STR_TO_DATE(@Modified,'%m/%d/%Y %r') ;

CREATE TABLE geo ( Id VARCHAR(50) NOT NULL DEFAULT '' COLLATE 'latin1_swedish_ci', ComputerID TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', City TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Region TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Country TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', CountryID TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', ZipCode MEDIUMINT(9) NULL DEFAULT NULL, Long TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Location TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Lat TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Date TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Created TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Modified TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', LicenseCodeID TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', LicenseCode TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', IPAddress CHAR(13) NULL DEFAULT '' COLLATE 'latin1_swedish_ci', GeoProcessed BIT(1) NULL DEFAULT b'0', CompanyID SMALLINT(6) NULL DEFAULT NULL, ProductID SMALLINT(6) NULL DEFAULT NULL, PRIMARY KEY (Id) USING BTREE ) COLLATE='latin1_swedish_ci' ENGINE=InnoDB ;


CREATE TABLE GEO ( Id TINYTEXT NOT NULL, ComputerID TINYTEXT NULL, City TINYTEXT NULL, Region TINYTEXT NULL, Country TINYTEXT NULL, CountryID TINYTEXT NULL, ZipCode MEDIUMINT NULL DEFAULT NULL, Long TINYTEXT NULL DEFAULT NULL, Location TINYTEXT NULL DEFAULT NULL, Lat TINYTEXT NULL DEFAULT NULL, Date DATETIME NULL DEFAULT NULL, Created DATETIME NULL DEFAULT NULL, Modified DATETIME NULL DEFAULT NULL, LicenseCodeID TINYTEXT NULL, LicenseCode TINYTEXT NULL, IPAddress CHAR(13) NULL DEFAULT '', GeoProcessed BIT NULL DEFAULT 0, CompanyID SMALLINT NULL DEFAULT NULL, ProductID SMALLINT NULL DEFAULT NULL ) COLLATE='latin1_swedish_ci' ;

ALTER TABLE geo CHANGE COLUMN Id Id VARCHAR(50) NOT NULL DEFAULT '' COLLATE 'latin1_swedish_ci' FIRST, ADD PRIMARY KEY (Id);

ALTER TABLE geo ADD PRIMARY KEY (Id);


CREATE TABLE geo ( Id VARCHAR(50) NOT NULL DEFAULT '' COLLATE 'latin1_swedish_ci', ComputerID TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', City TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Region TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Country TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', CountryID TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', ZipCode MEDIUMINT(9) NULL DEFAULT NULL, Long TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Location TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Lat TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Date DATETIME NULL DEFAULT NULL, Created DATETIME NULL DEFAULT NULL, Modified DATETIME NULL DEFAULT NULL, LicenseCodeID TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', LicenseCode TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', IPAddress CHAR(13) NULL DEFAULT '' COLLATE 'latin1_swedish_ci', GeoProcessed BIT(1) NULL DEFAULT b'0', CompanyID SMALLINT(6) NULL DEFAULT NULL, ProductID SMALLINT(6) NULL DEFAULT NULL, PRIMARY KEY (Id) USING BTREE ) COLLATE='latin1_swedish_ci' ENGINE=InnoDB ;

ALTER TABLE geo CHANGE COLUMN ZipCode ZipCode TINYTEXT NULL DEFAULT NULL AFTER CountryID, CHANGE COLUMN IPAddress IPAddress CHAR(25) NULL DEFAULT '' COLLATE 'latin1_swedish_ci' AFTER LicenseCode, CHANGE COLUMN GeoProcessed GeoProcessed TINYINT NULL DEFAULT NULL AFTER IPAddress;


latest:

CREATE TABLE GEO ( Id VARCHAR(50) NOT NULL DEFAULT '' COLLATE 'latin1_swedish_ci', ComputerID TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', City TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Region TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Country TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', CountryID TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', ZipCode TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Long TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Location TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Lat TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Date DATETIME NULL DEFAULT NULL, Created DATETIME NULL DEFAULT NULL, Modified DATETIME NULL DEFAULT NULL, LicenseCodeID TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', LicenseCode TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', IPAddress TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', GeoProcessed TINYINT(4) NULL DEFAULT NULL, CompanyID SMALLINT(6) NULL DEFAULT NULL, ProductID SMALLINT(6) NULL DEFAULT NULL, PRIMARY KEY (Id) USING BTREE ) COLLATE='latin1_swedish_ci' ENGINE=InnoDB ;

CREATE TABLE ACT ( Id VARCHAR(50) NOT NULL DEFAULT '' COLLATE 'latin1_swedish_ci', ComputerID TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Location TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Created DATETIME NULL DEFAULT NULL, Modified DATETIME NULL DEFAULT NULL, LicenseCodeID TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', LicenseCode TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', CompanyID SMALLINT(6) NULL DEFAULT NULL, ProductID SMALLINT(6) NULL DEFAULT NULL, TxnID INT(11) NULL DEFAULT NULL, TxnType TINYINT(4) NULL DEFAULT NULL, StartDate DATETIME NULL DEFAULT NULL, EndDate DATETIME NULL DEFAULT NULL, Duration BIGINT(20) NULL DEFAULT NULL, license TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', buildnumber TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', PRIMARY KEY (Id) USING BTREE ) COLLATE='latin1_swedish_ci' ENGINE=InnoDB ;

CREATE TABLE ENV ( Id VARCHAR(50) NOT NULL DEFAULT '' COLLATE 'latin1_swedish_ci', ComputerID TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Location TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Created DATETIME NULL DEFAULT NULL, Modified DATETIME NULL DEFAULT NULL, LicenseCode TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', CompanyID SMALLINT(6) NULL DEFAULT NULL, ProductID SMALLINT(6) NULL DEFAULT NULL, Date DATETIME NULL DEFAULT NULL, LicenseStatus TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Build TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Version TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Bitage TINYINT(4) NULL DEFAULT NULL, Cores TINYINT(4) NULL DEFAULT NULL, ScreenResX SMALLINT(6) NULL DEFAULT NULL, ScreenResY SMALLINT(6) NULL DEFAULT NULL, Memory INT(11) NULL DEFAULT NULL, Processor TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', AppLanguage TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Type TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', OSLanguage TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Edition TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', ComputerName TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Virtualisation TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', OperatingSystem TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', PRIMARY KEY (Id) USING BTREE ) COLLATE='latin1_swedish_ci' ENGINE=InnoDB ;

CREATE TABLE FEA ( Id VARCHAR(50) NOT NULL DEFAULT '' COLLATE 'latin1_swedish_ci', ComputerID TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Location TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Created DATETIME NULL DEFAULT NULL, Modified DATETIME NULL DEFAULT NULL, LicenseCode TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', CompanyID SMALLINT(6) NULL DEFAULT NULL, ProductID SMALLINT(6) NULL DEFAULT NULL, StartDate DATETIME NULL DEFAULT NULL, EndDate DATETIME NULL DEFAULT NULL, LicenseStatus TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', TxnID INT(11) NULL DEFAULT NULL, TxnType TINYINT(4) NULL DEFAULT NULL, LicenseCodeID TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', license TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', Duration BIGINT(20) NULL DEFAULT NULL, FeatureCode TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', RE_TY TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', RE_DB TINYTEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', PRIMARY KEY (Id) USING BTREE ) COLLATE='latin1_swedish_ci' ENGINE=InnoDB ;