-
Notifications
You must be signed in to change notification settings - Fork 310
Troubleshooting
"extDB2: Error with Database Connection"
in arma3server.rpt:
The extDB2 addon is loaded, but a connection to the database cannot be established.
[databaseName]
Type = MySQL
Name = databaseName
Username = databaseUserName
Password = databaseUserNamePassword
IP = databaseIP
Port = databasePort
Real-world example:
[altislife]
Type = MySQL
Name = altislife
Username = arma3
Password = 75t4nZ33w33xQ2
IP = 127.0.0.1
Port = 3306
2. Check that the DatabaseName
in description.ext is correct:
DatabaseName = "databaseName"; //Config name that'll be grep in the extdb-conf.ini. Default: [altislife]
Real-world example:
DatabaseName = "altislife"; //Config name that'll be grep in the extdb-conf.ini. Default: [altislife]
3. Check that Microsoft Visual C++ 2015 Redistributable (x86) is (Windows):
Start → Control Panel → Programs → Programs and Features → Microsoft Visual C++ 2015 Redistributable (x86)
The tbbmalloc.dll file is included with the extDB2 releases.
Check that the file is not blocked by Windows by:
-
Right-clicking on the file
-
Clicking "Properties"
-
Under the "General" tab and at the bottom of the window click "Unblock." If the option to unlock is not present then the file was not blocked.
extDB2: Database Exception Error: Connection attempt failed: Can't connect to MySQL server on '127.0.0.1' (10061)
extDB2 could not connect to the database because the specified user does not have sufficient permissions to access the database.
Upgrade the user's permissions or create a new user with sufficient permission then add them to the extdb-conf.ini file.
[databaseName]
Type = MySQL
Name = databaseName
Username = databaseUserName
Password = databaseUserNamePassword
IP = databaseIP
Port = databasePort
extDB2: SQL_RAW_V2: Error StatementException: MySQL: [MySQL]: [Comment]: mysql_stmt_execute error [mysql_stmt_error]: PROCEDURE altislife.resetLifeVehicles does not exist [mysql_stmt_errno]: 1305 [mysql_stmt_sqlstate]: 42000 [statemnt]: CALL resetLifeVehicles
extDB2: SQL_RAW_V2: Error StatementException: SQL: CALL resetLifeVehicles
The wrong user was specified for the procedures in the altislife.sql file:
CREATE DEFINER=`arma3`@`localhost` PROCEDURE `resetLifeVehicles`()
--
-- Procedures
-- Edit arma3 to match a user in MySQL
-- For external databases: Edit localhost to match arma3server IP
--
CREATE DEFINER=`arma3`@`localhost` PROCEDURE `resetLifeVehicles`()
BEGIN
UPDATE `vehicles` SET `active`= 0;
END$$
CREATE DEFINER=`arma3`@`localhost` PROCEDURE `deleteDeadVehicles`()
BEGIN
DELETE FROM `vehicles` WHERE `alive` = 0;
END$$
CREATE DEFINER=`arma3`@`localhost` PROCEDURE `deleteOldHouses`()
BEGIN
DELETE FROM `houses` WHERE `owned` = 0;
END$$
CREATE DEFINER=`arma3`@`localhost` PROCEDURE `deleteOldGangs`()
BEGIN
DELETE FROM `gangs` WHERE `active` = 0;
END$$
CREATE DEFINER=`arma3`@`localhost` PROCEDURE `deleteOldContainers`()
BEGIN
DELETE FROM `containers` WHERE `owned` = 0;
END$$
Altis Life RPG or ArmA RPG Life is developed by AsYetUntitled (prior ArmaLife developers), originally created by TAWTonic.
This website is not affiliated or authorized by Bohemia Interactive a.s. Bohemia Interactive, ARMA, DAYZ and all associated logos and designs are trademarks or registered trademarks of Bohemia Interactive a.s.