I was following the tutorial pretty well until now...
Creating your first user
I don't know how to create the Admin Account and where to create it.
If some one would explain it to me slowly and nicely it would be superb and when do i know my server is working
and if i clos the MySQL client my previous work gets deleted...How do i reload the prvious work?
Creating your first user
Now that you have your database set up, you are going to need to create your first account to be an administrator. Make sure that you have built your project by hitting the blue hammer icon in NetBeans (F11). Now, open up a command line and navigate to the folder where you have the sources. Then, run the following command at a command line:
java -cp dist/ShoddyBattle.jar shoddybattle.AccountEditor USERNAME PASSWORD 2
substituting USERNAME and PASSWORD for your desired username and password. If you get a message like 'java' is not recognized as an internal or external command, you will need to locate your java executable first. For example, C:\Program Files\Java\jdk1.x.x_xx\bin\java.exe. Once you have found this file, drag it to your command line and then enter the rest of the command.
Image: Adding an administrator account
If all has gone right, you should now be able to run your server. Press the large green arrow icon in Netbeans or hit F6 to run. You should see some output at the bottom of the window, hopefully without any errors. Now you can try to connect to your server. Open the Shoddy Battle client and go to the advanced window. Enter localhost for the host and whichever port you selected earlier for the port. Hopefully you are now connected to your server. You should be able to log in with the username you picked earlier.
I don't know how to create the Admin Account and where to create it.
If some one would explain it to me slowly and nicely it would be superb and when do i know my server is working
and if i clos the MySQL client my previous work gets deleted...How do i reload the prvious work?