After setting up your SWGEmu server on Debian 11, you may need to manually edit fields in the database, such as updating IP addresses or granting admin privileges to users within the game. Using a graphical database management tool like DBeaver makes it easier to visualize, edit, and save changes to your database.
This guide will walk you through installing DBeaver via the command line and using it to edit your SWGEmu database.
swgemu
database set up and accessible.DBeaver is a free, open-source, cross-platform database tool that supports MariaDB/MySQL and many other databases. Here's how to install it on your Debian 11 system via the command line.
sudo apt update
sudo apt install -y wget
Use wget
to download the latest DBeaver Community Edition Debian package:
wget --no-check-certificate https://dbeaver.io/files/dbeaver-ce_latest_amd64.deb
Note: The --no-check-certificate
option bypasses SSL certificate checks.
sudo apt install -y ./dbeaver-ce_latest_amd64.deb
dbeaver
Fill in the following details:
localhost
3306
swgemu
swgemu
swgemu
user during database setup.Note: If prompted to download the MariaDB driver, click "Download" to proceed.
With DBeaver connected to your database, you can now view and modify your database tables.
swgemu
Database:
accounts
or galaxy
.To grant admin privileges to a user in the game:
accounts
Table:
accounts
table.admin_level
Field:
admin_level
cell corresponding to the user.15
for full admin privileges.[ClientGame]
0fd345d9 = TRUE
[ClientUserInterface]
debugExamine = TRUE
Ctrl+S
.To allow clients to connect to your server over the internet, you need to update the galaxy
table with your public IP address.
curl ifconfig.me
galaxy
Table:
galaxy
table as described earlier.address
Field:
address
cell.Ctrl+S
.cd ~/Core3/MMOCoreORB/bin
./core3
Ctrl+C
and then restart.Note: Ensure that your firewall settings allow incoming connections on the necessary ports and that your router is configured to forward these ports to your server if you're behind a NAT.
Before making significant changes, it's wise to back up your database:
mysqldump -u swgemu -p swgemu > swgemu_backup.sql
If needed, you can restore the database:
mysql -u swgemu -p swgemu < swgemu_backup.sql
To quickly find specific records, use the filter feature.
If changes are made externally, refresh the data view by clicking the "Refresh" icon.
By installing DBeaver and connecting it to your MariaDB database, you gain a powerful tool to manage your SWGEmu server's data. Whether you're granting admin privileges or updating configuration settings like the server's public IP address, DBeaver simplifies these tasks with its intuitive interface.