💻
alt:V Athena Docs v3.0.0
  • Info
    • Introduction
    • Patreon & Support
    • Athena Discord
    • FAQ
  • Installation
    • Common Issues
    • Windows
    • Linux (Ubuntu 20.04+)
    • Debugging
    • Updating
  • Info
    • Admin
    • Configuration
    • Console
    • Database
    • Hotkeys
    • Identifier
  • Plugins
    • Load Plugins
    • Create Plugins
    • Mods
    • Clothing
  • Controllers
    • What is a Controller?
    • Blip Controller
    • Interaction Controller
    • Marker Controller
    • Object Controller
    • Ped Controller
    • Text Label Controller
    • World Notification Controller
  • Systems
    • Interiors
    • Inventory & Items
    • Inventory Rules
    • Jobs
    • Time
    • Weather
  • Menus
    • Menu Types
    • Action Menus
    • Input Menu
    • Wheel Menu
  • Player
    • Admin-Commands
    • Animations
    • Attach Objects
    • Credits
    • Currency
    • Commands
    • Error Screen
    • Message
    • Meta
    • Notifications
    • Particle
    • Progress Bar
    • Save
    • Shard
    • Sound
    • Spinners
    • Task Timeline
  • Custom WebViews
    • Introduction
    • Your First Page
    • CSS Framework
  • Misc
    • Custom Sounds
    • Custom Streamers
    • Custom Icons
    • Adding Locale / Translations
    • Adding Vehicle Rules
    • Adding Whitelist
    • Adding Wheel Menus
    • Adding Parking Garages
Powered by GitBook
On this page
  • Why MongoDB?
  • Accessing MongoDB
  • Accessing it Locally
  • Accessing it Externally
  • Accessing MongoDB Atlas
Edit on GitHub
  1. Info

Database

Information about the Database and how to access it.

The database is MongoDB and for most SQL users out there they have absolutely zero idea that a non-query based database even exists.

Welcome to the easiest Database you will ever use in your entire life and the world of NoSQL.

Why MongoDB?

Well, most people can't write SQL Queries and absolutely botch using them which results in things like SQL Injections. Not only that they often have to do way too much work to get a Database to even take a new value in their table.

NoSQL pretty much says hey if you want to add a new field, you can. We won't even bat an eye. Which means you can create new fields in your database without even having to touch the database or look at it.

What do I mean?

Let's take this object for example:

{   
    _id: 'jklfejklwjfkl;ejw;alfjlewafewa',
    name: 'stuyk'
}

I want to add a new field. I will now add it.

{
    _id: 'jklfejklwjfkl;ejw;alfjlewafewa',
    name: 'stuyk',
    username: 'stuyk1'
}

That's it. I've added the field and I can now save the modified document to the database. I didn't have to do anything special. This is why MongoDB will be the easiest Database you will ever work with.

Anyway, this section isn't about how to use it. Just showing you what you can do with a simple database entry.

Accessing MongoDB

If you are one of those people who likes to see the data inside of your MongoDB database you will need MongoDB Compass.

Now depending on how you installed mongodb you may or may not need a username and password.

Accessing it Locally

If you installed it locally and there is no user you can simply open MongoDB Compass and hit connect.

Accessing it Externally

Yes you actually have to do that if you wish to access your database from outside of the server itself.

Accessing MongoDB Atlas

If you chose to use MongoDB Atlas you can get the connection string from the Atlas website by clicking Connect.

PreviousConsoleNextHotkeys

Last updated 3 years ago

If you installed it externally such as on a Linux or Windows server that is not directly on your local machine you will need a connection string and you will also need to .

SECURE AND OPEN YOUR MONGODB DATABASE