vRP-framework / vRP

FiveM (http://fivem.net) RP addon/framework
https://vrp-framework.github.io/vRP
MIT License
294 stars 191 forks source link

Issues initializing db driver with Zap Hosting #651

Closed Megatron101010 closed 3 years ago

Megatron101010 commented 3 years ago

Im trying to install the database using zap. I used the tutorial given here : []https://www.youtube.com/watch?v=5JGuHNMmrhk(url), however I'm not able to join the server and I am getting error lines like this that keep repeating:

[ script:vrp] [vRP] DB driver "ghmattimysql" not initialized yet (41 prepares cached, 11 queries cached).

Megatron101010 commented 3 years ago

I might be able to help everyone out who may be having issues like me who uses zap hosting.

You see most of this from the database dashboard

(Set display name.) Server/IP: Database: User: Password

Now what my rookie mistake that I didnt notice until looking at instructions on setting up the databse for fivepd, was that

for the xml file: "MySQL:Server" = "server/IP"

for the base.lua file "host" = "server/ip"

With everything else having the same name. Once you enter the server IP in that field as well as the "host" it's good to go.

Sorry if my tutorial is confusing, Im normally and introvert that doesnt post on forums but since I made my presence known, I thought I'd say I found my solution.