x86
and x64
versions installed.
C:\Servers\DayZ1
)update_server.bat
's variables to match your settings
STEAM_DIR
to the directory you created in step 1.STEAM_USERNAME
and STEAM_PASSWORD
to your Steam login with ArmA 2: Combined Operationsupdate_server.bat
and wait for it to complete. This will download ArmA2 and ArmA2: Operation Arrowhead into the same directory to make ArmA2: Combined Operations.
C:\Servers\DayZ1
).cfgdayz
. Inside you'll find a server.cfg
which will allow you to change the default settings of the server to your liking, such as the server name, password and much more. For any questions regarding the server.cfg
file, please follow this guide here.cfgdayz\BattlEye
folder.Server only
is preferred)Server Machine
or Dedicated Machine
Checked
3306
Checked
STRONG_PASSWORD
Add User
dayzhivemind
REMOTE_GAME_SERVER_IP
DB Admin
(temporary)STRONG_PASSWORD
hivemind
and use your servers default charset. https://raw.githubusercontent.com/Pwnoz0r/DayZ-Private-Server/master/SQL/CURRENT_DAYZ_VERSION.sql
), press Ctrl + O
in HeidiSQL and load the SQL file. Make sure your hivemind
database is selected and press F9
or the blue triangle button up in the toolbar that says Execute SQL...
User manager
and edit your dayzhivemind
user to only have full permissions to your hivemind
database and nothing else. It is also a good practice to only allow this user to connect from your REMOTE_GAME_SERVER_IP
. Ubuntu 15.10 x64
-y
switch from each command.sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install mysql-server -y
sudo mysql_secure_installation
and follow the steps in securing your new MySQL service properly.mysql -u root -p
CREATE DATABASE hivemind;
CREATE USER 'dayzhivemind'@'REMOTE_GAME_SERVER_IP' IDENTIFIED BY 'STRONG_PASSWORD';
GRANT ALL PRIVILEGES ON *.* TO 'dayzhivemind'@'REMOTE_GAME_SERVER_IP' WITH GRANT OPTION;
FLUSH PRIVILEGES;
iptables
and bind your remote address to the mysqld.cnf
file.iptables -A INPUT -i eth0 -p tcp -m tcp --dport 3306 -j ACCEPT
nano /etc/mysql/mysql.conf.d/mysqld.cnf
bind-address = 127.0.0.1
to bind-address = REMOTE_MYSQL_SERVER_IP
service mysql restart
SERVER_INSTANCE\SQL\CURRENT_DAYZ_VERSION.sql
on your new hivemind
database. Make sure to change CURRENT_DAYZ_VERSION
to the latest version that is currently supported.wget https://raw.githubusercontent.com/Pwnoz0r/DayZ-Private-Server/master/SQL/CURRENT_DAYZ_VERSION.sql
mysql -u root -p hivemind < ~/CURRENT_DAYZ_VERSION.sql;
hivemind
database.REVOKE ALL PRIVILEGES ON *.* FROM 'dayzhivemind'@'REMOTE_GAME_SERVER_IP';
GRANT ALL PRIVILEGES ON hivemind.* TO 'dayzhivemind'@'REMOTE_GAME_SERVER_IP' WITH GRANT OPTION;
(grant the user full permissions only to the one database)FLUSH PRIVILEGES;
HiveExt.ini
With the new MySQL server you have just set up, it's time to configure your game server to be able to connect to it. Here is a working example of what we just set up:
[Database]
;Hostname or IP of the server to connect to
;You can use the value "." (without quotes) to indicate named-pipe localhost connection
;If you leave this line commented or blank, HiveExt will connect to the OFFICIAL Hive, which requires registration
;See support.dayzmod.com for more information on what OFFICIAL Hive means, what are the rules, etc.
;If using OFFICIAL hive, the rest of the settings in this section have no effect
Host = MYSQL_SERVER_IP
;The default is MySql, which is better supported than Postgre (completely untested)
Type = MySql
;Port to connect to. The default is the default listening port of a server of the selected Type
;Instead of specifying Port, you can specify Socket and set Value to the socket name
Port = 3306
;Database name to connect to (you must supply this if private).
Database = hivemind
;Username to connect with
Username = dayzhivemind
;Password to authenticate with (default is blank)
Password = STRONG_PASSWORD
Configuring time can be great if you want to play DayZ without the hassle of night time, you can make the mission constantly day time. An example of making the time constant day would be to change the type setting in the Time section, for example:
[Time]
;Possible values: Local, Custom, Static
;You cannot use Static on OFFICIAL Hive, it will just revert to Local
Type = Static
;If using Custom type, offset from UTC in hours (can be negative as well)
;Offset = 0
;If using Static type (Hour value always the same on every server start), the value (0-24) to set the Hour to
Hour = 8
STEAM_DIR
you set up earlier.Join the community! Remember to visit OpenDayZ where you can suggest new ideas and help out other community members.
DayZ-Private-Server Created by @Pwnoz0r. Original GitHub README by RazorFlint - updated by @Pwnoz0r - 03/29/2016