Greetings and welcome to my first (of hopefully many) guides.
First things first, I am a PC. The information I'll provide is relevant for MAC's and Linux, but the method to do so will differ.
Secondly, I loathe SQL. This brings me to the point of this guide:
Using your desktop database program to access your MySQL databases
This guide will show you how to combine the power of MySQL with the ease of use of such programs as Microsoft Access or OpenOffice's Base graphical front- ends. This guide is not intended on completely replacing the functionality of MySQL browsers such as Navicat, only the day- to- day searching, editing, and maintenance that you may do on existing records.
Although I am an Access person, I will write this guide for OpenOffice Base, as it is an open source program freely available to anyone under the GNU.
What you will need:
- A working instance of a server, including functional MySQL database (found through this fine website)
- MySQL ODBC connector (MySQL :: MySQL Connector/ODBC 5.1 Downloads)
- A desktop database program (www: OpenOffice.org - The Free and Open Productivity Suite)
Step 1: Setup your server
To setup your server, follow any one of the guides on this forum. This will get you running, accessing your database through one of many MySQL browsers such as Navicat.
Step 2: Setup the MySQL ODBC connector
After downloading and installing the ODBC connector from (MySQL :: MySQL Connector/ODBC 5.1 Downloads), get to the configuration of the connector by following these steps:
- Open up Control Panel
- Go to Administrative Tools (Windows XP+) or access the ODBC icon (Windows 2000- and skip to step 4)
- Select Data sources (ODBC)
- Click on System DSN tab (for a single user machine) or User DSN (on a multiple user machine, where the others users will not access your DB)
- Click Add
- Scroll down and select MySql ODBC [version] Driver
At this point, you will be ready to configure your ODBC connection. You will need to repeat these steps for each database structure you have, generally Ascent_World and Logon. I will detail the steps for Ascent_World.
Configure the connector as per the below:
- Data Source Name: Ascent_World
- Description: Ascent_World's database connection
- Server: localhost (IP address if remote)
- User: root (or user name if different)
- Password: (Enter the password you setup for MySQL)
- Database: ascent_world
- Click OK
You should now have a fully configured connection. Again, repeat for as many databases as you have on your machine.
Step 3: Connecting via your database software
After downloading/ installing OpenOffice (used for this example):
- Open up OpenOffice Base
- In the wizard, select Connect to an existing database option
- In the "Connect" dropdown, select ODBC as the method of connection
- Click Next
- At the next screen, click browse to choose your source
- Select the source you would like to connect to. In our example above, this would be Ascent_World
- Click Finish
The system will prompt you for a location to save the database. Repeat as required for your logon database, or you can even bring the logon tables into this database.
Congratulations, you now have a user- friendly front- end to your databases.
Conclusion
You can now perform very fast edits to records, search for things on key fields, instead of the entire table, create new items, link creature_names to creature_proto and find mobs without waypoints. The "stuff" you can do with a great front end that is easy to use is nearly limitless. I have even create a user form to mimic a dollman of the characters in my tables. This allows me to edit the items they have equipped or are carrying with ease, without the strain of figuring out which slot is which.
Good luck, I hope this helps in developing your private server.