#how to connect server to database
95 messages ยท Page 1 of 1 (latest)
Hi there ๐
Thank you for creating a post on our Community Forum. Please keep in mind that we don't provide official support on Discord. This is a forum for the community, by the community. Meaning that help is not guaranteed. Now let's wait and see if someone of our lovely community can help you out!
TIP: Need actual official support? Reach out to our customer care: 
https://zap-hosting.com/en/customer/support/
Which type of server?
Do you have the Mysql Async Plugin installed?
You can easily install it via your dashboard
VPS or game server?
If you have oxmysql installed you do not need async fyi
i dont have oxmysql
so what do i do now i installed oxmysql and the async
You only need one
Take oxmysql
If its not already in your server config add the two lines in it (at the very top):
set mysql_connection_string "mysql://root:12345@localhost:3306/es_extended"
set mysql_connection_string "user=root;password=12345;host=localhost;port=3306;database=es_extended"
And change the following values:
1. Line: "12345" to you database password, "es_extended" to your database name
**2. Line: **the same as in 1. Line
The password and database name you can get from the database tab in your server dashboard if you have a fivem gameserver
You have to take it bc qbcore only uses oxmysql
okay let me try
i only have that 1 line in my config
so do i add the other one also
yes
just after the 1 one?
oh ok
but check the password and database name
yes
any error in console?
not joined but nothing in zap shitty console
sad to see nothing in phpmyadmin
only the zap user but aint got no files there
you dont use your txadmin console?
i dont have txadmin
every fivem server has txadmin?!
dev server
a zap-hosting game server?
ye
then you should have txadmin
nah its costs 10 euro more
oh nvm you have a non txadmin server
is you database completely empty?
then you have to import the sql files from your qbcore scripts
how do i do that
Information on how to import SQL files into the database of your FiveM server from ZAP-Hosting - ZAP-Hosting.com documentation
ignore the installation of mysqlasync
hmm okay
the sql files have to be in the script folders
and if you import them i should work
i changed my phpadmin skin to a fucking retard one thats my biggest problem currentlyu haha ๐
xD
go on the phpmyadmin logo in the upper right corner
and then in the middle of the screen
there should be a theme option
thanks
illl go join if everything works
but now my problem is that when i join the server it says mounted and some addon but it takes so long
i deleted my cache so idk what happened after it
but other servers work just fine
4 out of 94 addons takes a long time
could you send a screenshot?
did you restarted the server?
yeah it was before the database trhing
did you changed anything in webpack
i dont think so
pls check if the resource is in this folder
server-data/resources/[system]/[builders]/webpack
yeah i got webpack there
but i just found out that i didnt put the
set mysql_connection_string "mysql://root:12345@localhost:3306/es_extended" thing into my config so i did it now
Does it work now?
imma try
so did i had to put that mysql connection shit string thing into server config or just the oxmysql config if there is one
i put it into server.cfg
server config
well i got in
and you also have to start oxmysql
i got in
i used my backup so now it also deleted some files that my brother configured so now i can do everything bymyself
very nice
thanks bro
np your welcome