Skip to content

Commit cc85e76

Browse files
committed
DB rename from dashbaord to controlpanel
1 parent 7eb55a8 commit cc85e76

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,6 @@ It will keep the same login information, users just have to verify e-mail (if yo
127127
Its recommented to use root MYSQL user, but you can also use a user with dump permissions and pterodactyl DB + Contropanel DB permission.
128128
This script will ONLY work on instalation with DEFAULT database names:
129129
Pterodactyl: panel
130-
Controlpanel: dashboard
130+
Controlpanel: controlpanel
131131
If you want to use diffrent DB names, you have to modify the script.
132132
![grafik](https://user-images.githubusercontent.com/35345288/142738167-358c14a8-02f1-43c4-b522-d1fa7c3d3dc9.png)

scripts/tran_users.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ async function Start() {
7777
host: 'localhost',
7878
user: 'root',
7979
password: MySQLRoot,
80-
database: 'dashboard',
80+
database: 'controlpanel',
8181
charset : "utf8mb4"
8282
});
8383

8484
const getAllPteroUsers = "SELECT name_first, email, password, root_admin, id FROM panel.users;";
85-
const getAllDashbordUsers = "SELECT email FROM dashboard.users;";
86-
const writeAllPreoUsers = "REPLACE INTO dashboard.users (name, role, email, password, pterodactyl_id, credits, server_limit, suspended, updated_at, created_at) VALUES ?";
85+
const getAllDashbordUsers = "SELECT email FROM controlpanel.users;";
86+
const writeAllPreoUsers = "REPLACE INTO controlpanel.users (name, role, email, password, pterodactyl_id, credits, server_limit, suspended, updated_at, created_at) VALUES ?";
8787
let AlreadyUsers = [];
8888

8989
panel_db.getConnection(function(err, Pconnection) {

0 commit comments

Comments
 (0)