Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ script:mysql-async] [MySQL] [ERROR] [esx_vehicleshop] An error happens for query "SELECT * FROM vehicles : []": ER_BAD_DB_ERROR: Unknown database 'fivem' #175

Open
josevloxx1 opened this issue Jun 16, 2021 · 21 comments

Comments

@josevloxx1
Copy link

If anyone got this problem fix Reply back please!.

@josevloxx1 josevloxx1 assigned ghost Jun 16, 2021
@Nophobia09
Copy link

What does the connection string look like in your server.cfg? This looks like its pulling the default login which is
host: '127.0.0.1',
user: 'root',
password: '',
database: 'fivem'.

If this is the issue then to correct it, fix the connection string to this format
set mysql_connection_string "server=YOURDBSERVER;database=YOURDATABASENAME;userid=USERNAME;password=PASSWORD"
Replace the all caps with your information. Hope this helps.

@josevloxx1
Copy link
Author

What does the connection string look like in your server.cfg? This looks like its pulling the default login which is
host: '127.0.0.1',
user: 'root',
password: '',
database: 'fivem'.

If this is the issue then to correct it, fix the connection string to this format
set mysql_connection_string "server=YOURDBSERVER;database=YOURDATABASENAME;userid=USERNAME;password=PASSWORD"
Replace the all caps with your information. Hope this helps.

mines's is a local host and how can i create a date base with es_extended it only show me this
Captura de pantalla (1464)

@Nophobia09
Copy link

Nophobia09 commented Jun 17, 2021

Looks like you have created a database named essentialmode with tables addon_account, addon_account_data, addon_inventory, addon_inventory_items, billing, and users. You need to setup your connection to this database, even if it's local host. @josevloxx1

@josevloxx1
Copy link
Author

Looks like you have created a database named essentialmode with tables addon_account, addon_account_data, addon_inventory, addon_inventory_items, billing, and users. You need to setup your connection to this database, even if it's local host. @josevloxx1

the one you told me to put on server.cfg can you make it local host please to i can put it because local host i don't have password sorry im new too all this i'm learning

@josevloxx1
Copy link
Author

Looks like you have created a database named essentialmode with tables addon_account, addon_account_data, addon_inventory, addon_inventory_items, billing, and users. You need to setup your connection to this database, even if it's local host. @josevloxx1

does this have to be all caps where it say yourname

set mysql_connection_string "server=YOURDBSERVER;database=YOURDATABASENAME;userid=USERNAME;password=PASSWORD"

@josevloxx1
Copy link
Author

Looks like you have created a database named essentialmode with tables addon_account, addon_account_data, addon_inventory, addon_inventory_items, billing, and users. You need to setup your connection to this database, even if it's local host. @josevloxx1

Captura de pantalla (1466)

@Nophobia09
Copy link

Nophobia09 commented Jun 17, 2021

Looks like you have created a database named essentialmode with tables addon_account, addon_account_data, addon_inventory, addon_inventory_items, billing, and users. You need to setup your connection to this database, even if it's local host. @josevloxx1

Captura de pantalla (1466)

set mysql_connection_string "server=127.0.0.1;database=essentialmode;userid=root;password="
Should be something close to this. Change what you need to, such as password if you have one set.

@josevloxx1
Copy link
Author

Looks like you have created a database named essentialmode with tables addon_account, addon_account_data, addon_inventory, addon_inventory_items, billing, and users. You need to setup your connection to this database, even if it's local host. @josevloxx1

Captura de pantalla (1466)

set mysql_connection_string "server=127.0.0.1;database=essentialmode;userid=root;password="
Should be something close to this. Change what you need to, such as password if you have one set.

i haven't put password yet do i have to

@josevloxx1
Copy link
Author

set mysql_connection_string "server=127.0.0.1;database=essentialmode;userid=root;password="

why it say this bro all jobs item inventories are in idk
Captura de pantalla (1468)

@josevloxx1
Copy link
Author

Looks like you have created a database named essentialmode with tables addon_account, addon_account_data, addon_inventory, addon_inventory_items, billing, and users. You need to setup your connection to this database, even if it's local host. @josevloxx1

Captura de pantalla (1466)

set mysql_connection_string "server=127.0.0.1;database=essentialmode;userid=root;password="
Should be something close to this. Change what you need to, such as password if you have one set.

it doesn't not let me conect to my server give me alot of errors bro

@Nophobia09
Copy link

Nophobia09 commented Jun 19, 2021 via email

@debugferro
Copy link

@sopergoras123 @Nophobia09 I'm facing the same issue. But I have configured everything just like that.

Inside my config file:

set mysql_connection_string "server=localhost;user=fivem;database=es_extended;password=mypass"

I do have this user "fivem" with the password "mypass" in`my localhost MySQL db. And I conceded full perm to the this user. I also tried:

set mysql_connection_string "mysql://fivem:mypass@localhost/es_extended?waitForConnections=true&charset=utf8mb4
set mysql_connection_string "mysql://fivem:mypass@127.0.0.1/es_extended?waitForConnections=true&charset=utf8mb4
set mysql_connection_string "host=localhost;user=fivem;database=es_extended;password=mypass"
## etc...

Using HeidiSQL, I ran the file es_extended.sql with this user, and created some tables. But it stills complains when I run the server:

[  script:mysql-async] [MySQL] [ERROR] [esx_vehicleshop] An error happens for query "SELECT * FROM `vehicle_categories` : []": ER_ACCESS_DENIED_ERROR: Access denied for user 'fivem'@'localhost' (using password: YES)

Do I have to run other .SQL files? If I do, then what is the order? Because I tried to run some, and many of them complain that another table doesn't exist, so I have to run other SQL files because they depend on the existence of another table. All of this is not very friendly to new developers, because I couldn't find updated documentation about it. My version is the legacy one (https://github.com/esx-framework/esx-legacy)

I will be very happy if one of you could point me in the right direction regarding this.

Thank you.

@sarmad-gaming
Copy link

@sarmad-gaming
Copy link

Untitled

@boermansjo
Copy link

There is nothing wrong with your server @colector-user
Stored queries are amazing and normal :)

@Nynag
Copy link

Nynag commented Nov 23, 2021

im having the same exact problem, im the only one that can enter the server the other people it says awaiting scripts then my remote control starts to pop out all this mysql things, how do i fix it if someone can add inbox me with the help.
image

@Nynag
Copy link

Nynag commented Dec 7, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@boermansjo @debugferro @sarmad-gaming @Nophobia09 @josevloxx1 @Nynag and others