Jump to content

MySQL


Argon

Recommended Posts

  • 3 weeks later...

What's the status with the MySQL module that is offered by the MTA team? On the site, it claims the link is 'pending', however searching back through the history, I found the link. After downloading and installing, it seems to have no effect on the script I'm running.

Is the MySQL module working; if not, is there an expected time period for when it will be working, once again?

Here is a snippet of the code I'm using to call the access to the MySQL. Is there anything 'wrong' with it, that may be causing it to not work.

function onMySQLOpen ( result ) 
    if ( result ) then 
        outputServerLog ( "MySQL connection established." ) 
        outputDebugString ( "MySQL connection established." ) 
        outputChatBox( "MySQL connection established." ) 
    else 
        outputServerLog ( "MySQL connection failed." ) 
        outputDebugString ( "MySQL connection failed." ) 
        outputChatBox( "MySQL connection failed." ) 
    end 
end 
  
function mysqltest () 
    handler = mysqlCreate () 
    MysqlOpen ( handler, "onMySQLOpen", "**MySQL Server weburl goes here**", "** My useraccount **", "** password **", "** database name **", "3306" ) 
end 

Link to comment
offcourse you do you made it yourself -_- But i don't recommand it to myself becausse the function names are else so if the official module will work everyone can alters his scripts -_-

ryden's module is way much better, with the module the mta team has provided, you can't even fetch results.

So, be more smart next time. :D

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