Jump to content

[Error]MySQL


emrkzl

Recommended Posts

-- retrieve the settings 
    local server = get( "a-t" ) or "-" -- server 
    local user = get( "al-a" ) or "-" -- username 
    local password = get( "-" ) or "-" -- password 
    local db = get( "-" ) or "-" -- database 
    local port = get( "port" ) or 3306 
    local socket = get( "socket" ) or nil 
    handler = mysql_connect ( server, user, password, db, port, socket ) 

Link to comment

-- retrieve the settings

local server = "localhost" -- server

local user = "root" -- username

local password = "" -- password

local db = "mta" -- database

local port = 3306

handler = mysql_connect( server, user, password, db, port)

this mabako's?

and make sure you connection settings are the exact same as connection the SQL script other-wise it will not work.

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...