Sign in to follow this  

help for mysql (connection)

Recommended Posts

Hello I have a problem to link my database to the server may help me i have already try a lot of solution my nothing is thank you for your help and sorry for my English which are very bad








local MYSQL = {}

MYSQL.connection = nil

function MYSQL.checkConnection()
    MYSQL.connection = dbConnect  ("mysql","dbname=zmarerougedu72;host=localhost", "marerougedu7", "xxxxxxx", "autoreconnect=1")
addEventHandler("onResourceStart", resourceRoot, MYSQL.checkConnection)

function requestConnection()
    if not MYSQL.connection then
        outputChatBox("[LSRP - Connection] Conexi�n perdida!")
    return MYSQL.connection

Share this post

Link to post

Did you try another mysql connection ?

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.