Jump to content

MTA - MySQL Problem


Thorsten

Recommended Posts

Hey Guys,

i have a Problem with MySQL

Testmode/script.lua:105: attempt to call global 'mysql_query' (a nil value)

Testmode/deathmatch/dmweapons.lua:15: attempt to call global 'MySQL_GetString' (a nil value)

Testmode/deathmatch/gweapons1/g1_settings.lua:5: attempt to call global 'MySQL_GetString' (a nil value)

Testmode/deathmatch/gweapons2/g2_settings.lua:5: attempt to call global 'MySQL_GetString' (a nil value)

Testmode/deathmatch/gweapons3/g3_settings.lua:5: attempt to call global 'MySQL_GetString' (a nil value)

Testmode/pm/pm_server.lua:3: attempt to call global 'mysql_query' (a nil value)

Testmode/deathmatch/areas.lua:52: attempt to call global 'MySQL_GetString' (a nil value)

here my ACL

<group name="Admin"> 
        <acl name="Admin"></acl> 
        <object name="resource.Testmode"></object> 

here my mtaserver.conf

         <module src="mta_mysql" /> 

the module is in the

MTA_Server_1260/mods/deathmatch/modules/

in the meta file is the MySQL connect data, the first wich loads.

from the MySQL connect: 
gMysqlHost = "localhost" 
gMysqlUser = "********" 
gMysqlPass = "********" 
gMysqlDatabase = "MTA" 
  
function MySQL_Startup() 
    handler = mysql_connect(gMysqlHost, gMysqlUser, gMysqlPass, gMysqlDatabase) 
    if( not handler) then 
        outputDebugString("Couldn't run query: Unable to connect to the MySQL server!") 
        outputDebugString("Please shutdown the server and start the MySQL server!") 
    end  
end 

i tried copy the User and the Pass and connect over phpmyadmin and it works.

Even the MySQL connect data doesnt send a error message.

i hope you can help.

sorry for bad english, im from germany ;)

Link to comment
Hey Guys,

i have a Problem with MySQL

Testmode/script.lua:105: attempt to call global 'mysql_query' (a nil value)

Testmode/deathmatch/dmweapons.lua:15: attempt to call global 'MySQL_GetString' (a nil value)

Testmode/deathmatch/gweapons1/g1_settings.lua:5: attempt to call global 'MySQL_GetString' (a nil value)

Testmode/deathmatch/gweapons2/g2_settings.lua:5: attempt to call global 'MySQL_GetString' (a nil value)

Testmode/deathmatch/gweapons3/g3_settings.lua:5: attempt to call global 'MySQL_GetString' (a nil value)

Testmode/pm/pm_server.lua:3: attempt to call global 'mysql_query' (a nil value)

Testmode/deathmatch/areas.lua:52: attempt to call global 'MySQL_GetString' (a nil value)

in the meta file is the MySQL connect data, the first wich loads.

from the MySQL connect: 
gMysqlHost = "localhost" 
gMysqlUser = "********" 
gMysqlPass = "********" 
gMysqlDatabase = "MTA" 
  
function MySQL_Startup() 
    handler = mysql_connect(gMysqlHost, gMysqlUser, gMysqlPass, gMysqlDatabase) 
    if( not handler) then 
        outputDebugString("Couldn't run query: Unable to connect to the MySQL server!") 
        outputDebugString("Please shutdown the server and start the MySQL server!") 
    end  
end 

Well , see the errors and see this ^

It types errors that you didn't use , so show the full script so we can see -.-

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