[TrinityCore] Stored Procedures for Creating Accounts menu

User Tag List

Results 1 to 7 of 7
  1. #1
    Valkryst's Avatar Active Member
    Reputation
    62
    Join Date
    Apr 2014
    Posts
    41
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Deleted - GDPR

    Deleted - GDPR
    Last edited by Valkryst; 10-04-2023 at 12:15 PM.

    [TrinityCore] Stored Procedures for Creating Accounts
  2. #2
    TheMause's Avatar Private
    Reputation
    1
    Join Date
    Feb 2014
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    With risk of sounding stupid, how do I use these procedures?

  3. #3
    stoneharry's Avatar Moderator Harry


    Reputation
    1614
    Join Date
    Sep 2007
    Posts
    4,558
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TheMause View Post
    With risk of sounding stupid, how do I use these procedures?
    If I remember the syntax for MySQL off the top of my head:

    Code:
    exec stored_procedure_name(arguments);
    e.g:

    Code:
    exec create_account ("MyUsername", "MyPassword");
    Also thanks OP, this is actually useful.
    Last edited by stoneharry; 04-19-2014 at 01:52 PM.

  4. #4
    Valkryst's Avatar Active Member
    Reputation
    62
    Join Date
    Apr 2014
    Posts
    41
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To use a procedure you just need to pick the one that works for you, then open up whatever program you use to edit your database (I use HeidiSQL), select the auth database, copy-paste the procedure into the query window, and then execute the query. After that you just need to use another query such as CALL create_account("username", "password"); to create an account.
    Edit:
    Just noticed stoneharry's comment above after posting this. EXEC may also work as an alternative to CALL, but I've never used it before so I cannot say for sure.
    Last edited by Valkryst; 04-19-2014 at 02:15 PM.

  5. #5
    tmillagegbc's Avatar Private
    Reputation
    1
    Join Date
    Apr 2014
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    With risk of sounding stupid

  6. #6
    stoneharry's Avatar Moderator Harry


    Reputation
    1614
    Join Date
    Sep 2007
    Posts
    4,558
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Just wanted to say again that this is actually really useful. I like the idea of stored procedures being used more often in WoW emulation. Linked a few people here when they ask how to make a registration script and things like that.

  7. #7
    Valkryst's Avatar Active Member
    Reputation
    62
    Join Date
    Apr 2014
    Posts
    41
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    Just wanted to say again that this is actually really useful. I like the idea of stored procedures being used more often in WoW emulation. Linked a few people here when they ask how to make a registration script and things like that.
    Thanks again, hopefully it helps out a lot of people. ^.^

    I couldn't agree more about the use of stored procedures. They can be used nearly anywhere, they speed-up development time, add in a safety net against any angry developers, prevent simple errors by incorrectly-typed SQL, and a variety of other things. It might be a good idea to write up a simple tutorial on how to write some basic stored procedures eventually; I'll look into it when I have some free time.

Similar Threads

  1. [Trinity] [SQL - DressNPCs] Stored Procedure for Rotchet2's DressNPCs Patch
    By Valkryst in forum WoW EMU General Releases
    Replies: 0
    Last Post: 04-23-2014, 10:52 PM
  2. Store pets for all your accounts.
    By Silowyi in forum World of Warcraft Exploits
    Replies: 7
    Last Post: 11-06-2009, 04:44 PM
  3. Replies: 5
    Last Post: 02-22-2008, 01:08 PM
  4. Unable to create accounts for Ascent
    By towt in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 10-24-2007, 09:31 PM
All times are GMT -5. The time now is 02:19 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search