Files
overextended.github.io/pages/oxmysql/issues.mdx
T
Jag 74227cc262 chore: oxmysql and ox_lib clean-up (#134)
* oxmysql and some lib interface fixes

- Various fixes throughout oxmysql
- started ox_lib audit

* chore: More clean up

- Reword some confusing descriptions
- Add some descriptions
- Type fixes
- Spelling and grammar fixes
- Swapping in `-` where `*` used to be for 
bullet point consistency

ox_lib
- Interface, ACL through GetClosestVehicle audited

* chore: Finishing up ox_lib
2023-07-03 13:13:56 +10:00

30 lines
1.0 KiB
Plaintext

---
title: Common Issues
---
import { Callout } from 'nextra/components';
## Unable to establish a connection
This is usually the result of incorrect database settings or your password containing reserved characters.
`; , / ? : @ & = + $ #` are reserved.
<Callout type="info">
Ensure you have entered the correct database settings in the `mysql_connection_string` convar. You can try using the
semicolon-separated format if your password contains reserved characters.
</Callout>
## No such export ... in resource oxmysql
- Download the latest release _build_ (not the source code) of oxmysql.
- Ensure it is starting before any resources that require it.
## Numbers treated as string
To resolve this issue simply enable `decimalNumbers` in your connection string, ie. `mysql://root@localhost/essentialmode?decimalNumbers=true`.
<Callout type="warning">
JavaScript treats all numbers as floats, so a double or decimal value will be cast as a float with this setting.
Numbers will have less precision when this setting is enabled.
</Callout>