mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 15:39:25 +02:00
Fix sqls
parent
c7b0244426
commit
718158a359
@ -90,10 +90,19 @@ FLUSH PRIVILEGES;
|
|||||||
|
|
||||||
The server's auto-updater will populate most tables on first run. However, **playerbots SQL files may need to be imported manually** if the auto-updater does not pick them up:
|
The server's auto-updater will populate most tables on first run. However, **playerbots SQL files may need to be imported manually** if the auto-updater does not pick them up:
|
||||||
|
|
||||||
```bash
|
```
|
||||||
|
bash
|
||||||
# From the azerothcore-wotlk directory
|
# From the azerothcore-wotlk directory
|
||||||
mysql -u acore -p acore_characters < modules/mod-playerbots/sql/characters/base/playerbots_characters.sql
|
|
||||||
mysql -u acore -p acore_world < modules/mod-playerbots/sql/world/base/playerbots_world.sql
|
# 1. Import the playerbots additions to acore_characters
|
||||||
|
for f in modules/mod-playerbots/data/sql/characters/base/*.sql; do
|
||||||
|
mysql -u acore -p acore_characters < "$f"
|
||||||
|
done
|
||||||
|
|
||||||
|
# 2. Import the playerbots additions to acore_world
|
||||||
|
for f in modules/mod-playerbots/data/sql/world/base/*.sql; do
|
||||||
|
mysql -u acore -p acore_world < "$f"
|
||||||
|
done
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Check:** If you see errors like `Table 'playerbots_random_bots' doesn't exist` or `Unknown database 'acore_playerbots'` when starting the server, ensure the database was created and the SQL files were imported as shown above.
|
> **Check:** If you see errors like `Table 'playerbots_random_bots' doesn't exist` or `Unknown database 'acore_playerbots'` when starting the server, ensure the database was created and the SQL files were imported as shown above.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user