# Enter current password for root (enter for none):
会显示叫你输入密码,因为安装时并没有设置密码,所以直接输入回车enter
# Change the root password? [Y/n]
Y
# 输入两次密码
# Remove anonymous users? [Y/n]
Y
# Disallow root login remotely? [Y/n]
# Y表示让root用户远程登录,N表示可以远程登录
Remove test database and access to it? [Y/n]
Y
Reload privilege tables now? [Y/n]
Y
登录数据库
mysql -u root
登录成功,类似如下
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 10.1.29-MariaDB-6 Ubuntu 18.04
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
如下为成功启动
Connected to MySQL database at 127.0.0.1
DatabasePool 'auth' opened successfully. 2 total connections running.
Started auth database connection pool.
Loading IP Location Database...
Added realm "Trinity" at 127.0.0.1:8085.
运行 worldserver
/home/wow/server3.5.5/bin/worldserver
如果你按照上述步骤一步一步到了这里,那么运行结果可能提示缺少一个文件TDB_full_world_335.22061_2022_06_01.sql!!!
File "TDB_full_world_335.22061_2022_06_01.sql" is missing,
download it from "https://github.com/TrinityCore/TrinityCore/releases"
uncompress it and place the file "TDB_full_world_335.22061_2022_06_01.sql"
in the directory "/home/rendu".
这里根据你当前运行的worldserver的提示去下载,https://github.com/TrinityCore/TrinityCore/releases
World initialized in 11 minutes 39 seconds
Starting up anti-freeze thread (60 seconds max stuck time)...
TrinityCore rev. fc56410b6e0d 2021-02-19 00:42:06 +0200 (3.3.5 branch) (Unix, RelWithDebInfo, Static) (worldserver-daemon) ready...
TC>
看到如上输出,那么恭喜你,worldserver启动成功。
添加账号
创建一个用户名为idc02,密码也为idc02的账号,使用以下命令格式
account create <user> <pass>
TC>TC> account create idc02 idc02
升级为GM
可以提升idc02的gmlevel为3,升级为GM账号,worldserver命令行输入,如下
TC> account set gmlevel idc02 3 -1
登录游戏
打开客户端目录,找到wow.exe,同级目录下创建wow.bat,内容如下:
# 在本地搭建ip填写127.0.0.1,外网填写服务器IP,这个ip对应上面realmlist中的address
echo y | rd /s "Cache"
echo SET realmlist "103.219.39.*" > Data\zhTW\realmlist.wtf
echo SET realmlist "103.219.39.*" > Data\enTW\realmlist.wtf
echo SET realmlist "103.219.39.*" > Data\zhCN\realmlist.wtf
echo SET realmlist "103.219.39.*" > Data\enCN\realmlist.wtf
echo SET realmlist "103.219.39.*" > Data\enUS\realmlist.wtf
echo SET realmlist "103.219.39.*" > realmlist.wtf
start Wow.exe
goto end