Jump to content

[VENTA] GM Roleplay, Foro, Web, UCP y Host recién comprado


Recommended Posts

  • 2 weeks later...
Buenas noches, tengo un problema con el exmysql. No puedo enlazar la base de datos, pero he hecho todo lo posible para que su usted nos haya vendido los gamemods. Supongo que sabe que puedo ayudarlo a corregir su agradecimiento por adelantado.

 

MYSQL = {} 
local hostname = "localhost"
local username = "marerougedu7"
local password = "8QW3GwMf"
local database = "zmarerougedu72"
local port =  3306

MYSQL.connection = nil

function MYSQL.checkConnection()
    MYSQL.connection = dbConnect("mysql","dbname=mta;host=localhost", "root", "ijaCGrnbDD4biRjMvC5O", "autoreconnect=1")
    if not MYSQL.connection then
        outputChatBox("[LSRP - Connection] Conexi�n perdida!")
        cancelEvent(true)
    end
end
addEventHandler("onResourceStart", resourceRoot, MYSQL.checkConnection)

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

Spoiler

 

 

  1.  

 

 

 

 

MYSQL = {} 
local hostname = "localhost"
local username = "marerougedu7"
local password = "8QW3GwMf"
local database = "zmarerougedu72"
local port =  3306

MYSQL.connection = nil

function MYSQL.checkConnection()
    MYSQL.connection = dbConnect("mysql","dbname=mta;host=localhost", "root", "ijaCGrnbDD4biRjMvC5O", "autoreconnect=1")
    if not MYSQL.connection then
        outputChatBox("[LSRP - Connection] Conexi�n perdida!")
        cancelEvent(true)
    end
end
addEventHandler("onResourceStart", resourceRoot, MYSQL.checkConnection)

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


 
MYSQL = {} 
local hostname = "localhost"
local username = "marerougedu7"
local password = "xxxxxxxxx"
local database = "zmarerougedu72"
local port =  3306

MYSQL.connection = nil

function MYSQL.checkConnection()
    MYSQL.connection = dbConnect("mysql","dbname=mta;host=localhost", "root", "ijaCGrnbDD4biRjMvC5O", "autoreconnect=1")
    if not MYSQL.connection then
        outputChatBox("[LSRP - Connection] Conexi�n perdida!")
        cancelEvent(true)
    end
end
addEventHandler("onResourceStart", resourceRoot, MYSQL.checkConnection)

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

 
 
 
 

 

Link to comment

@plasha

MYSQL = {} 
local hostname = "localhost"
local username = "marerougedu7"
local password = "xxxxxxxxx"
local database = "zmarerougedu72"
local port =  3306

MYSQL.connection = nil

function MYSQL.checkConnection()
    MYSQL.connection = dbConnect("mysql","dbname="..database..";port="..port..";host="..hostname.."", username, password, "autoreconnect=1")
    if not MYSQL.connection then
        outputChatBox("[LSRP - Connection] Conexi�n perdida!")
        cancelEvent(true)
    end
end
addEventHandler("onResourceStart", resourceRoot, MYSQL.checkConnection)

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

PD: Os habéis dejado la pass por ahi con las prisas de vender xd

  • Like 1
Link to comment

 

@aka BlueHe intentado como me lo enseñas mi no siempre tiene una solución para ti?

 

 

MYSQL = {} 
local hostname = "localhost"
local username = "marerougedu7"
local password = "xxxxxxxxx"
local database = "zmarerougedu72"
local port =  3306

MYSQL.connection = nil

function MYSQL.checkConnection()
    MYSQL.connection = dbConnect("mysql","dbname=zmarerougedu72;host=localhost", "marerougedu7", "xxxxxx", "autoreconnect=1")
    if not MYSQL.connection then
        outputChatBox("[LSRP - Connection] Conexi�n perdida!")
        cancelEvent(true)
    end
end
addEventHandler("onResourceStart", resourceRoot, MYSQL.checkConnection)

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

 

 

 

 

 

[18:23:46] Start up of resource exMysql cancelled by script
[18:23:46] Stopping exMysql

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...