Jump to content

[Alpha] [GM] VenuX: Roleplay


AeroXbird

Recommended Posts

  • Replies 141
  • Created
  • Last Reply

Top Posters In This Topic

Hello,

I have a problem with the connection to MYSQL.

I enter this in the file "mysql" folder "sql"

  
local server = get( "localhost" ) or "" -- server 
local user = get( "root" ) or "" -- username 
local password = get( "" ) or "" -- password 
local db = get( "unix" ) or "" -- database 
local port = get( "" ) or 3306 
local socket = get( "" ) or nil 

But when I run the server, I have these errors

http://pastebin.com/xE8SUCE9

PS: Sorry if there are mistakes, I'm French :)

Link to comment

Someone help me when i use this scripts and i registered then i try to login but it says in the console this:

  • [2012-02-29 10:43:22] ERROR: attempt to call a nil value
    [2012-02-29 10:43:22] ERROR: call: failed to call 'sql:escape_string' [string "?"]
    [2012-02-29 10:43:22] ERROR: account\s_account.lua:53: attempt to concatenate a boolean value

Link to comment
Hello,

I have a problem with the connection to MYSQL.

I enter this in the file "mysql" folder "sql"

  
local server = get( "localhost" ) or "" -- server 
local user = get( "root" ) or "" -- username 
local password = get( "" ) or "" -- password 
local db = get( "unix" ) or "" -- database 
local port = get( "" ) or 3306 
local socket = get( "" ) or nil 

But when I run the server, I have these errors

http://pastebin.com/xE8SUCE9

PS: Sorry if there are mistakes, I'm French :)

You should do this:

  
local server = get "localhost" 
local user = get "root"  
local password = get "" -- leave blank like this 
local db = get "mta" -- database name like when you name your database mta call it mta 
local port = get 3306 
local socket = get nil 

Link to comment

What jeremaniak said is incorrect, it's close though.

  
local server = "" -- server 
local user =  "" -- username 
local password = "" -- password 
local db =  "" -- database 
local port =  3306 
local socket =  nil 
  

Then you simply enter the credentials from your MySQL server, and you're all set.

Link to comment
  • 2 weeks later...

Really cool project.

I'm intrested in using this for my server, as we all know Valhalla is outdated/unstable. I just need a basemode to do the rest myself ( I'm not that a good scripter at server-side scripts yet ).

I only have one issue, i installed modules, putted them in mtaserver.conf ( Everything is good cause i used to work with servers and SQL before. ) When i do login it says the warning but when i register It does nothing.. It gives only one warning:

[2012-03-10 16:11:45] ERROR: exports: Call to non-running server resource (sql) [string "?"]

How can i help this?

Greetings,

Wan Lee

My config: ( Without passwords and stuff ofcourse )

    local server = get( "server" ) or "IP IS HERE" 
    local user = get( "user" ) or "MY DATABASE NAME HERE" 
    local password = get( "password" ) or "MY PASS HERE" 
    local db = get( "database" ) or "MY DATABASE TAB HERE" 
    local port = get( "port" ) or 3306 
    local socket = get( "socket" ) or nil 

Link to comment
Really cool project.

I'm intrested in using this for my server, as we all know Valhalla is outdated/unstable. I just need a basemode to do the rest myself ( I'm not that a good scripter at server-side scripts yet ).

I only have one issue, i installed modules, putted them in mtaserver.conf ( Everything is good cause i used to work with servers and SQL before. ) When i do login it says the warning but when i register It does nothing.. It gives only one warning:

[2012-03-10 16:11:45] ERROR: exports: Call to non-running server resource (sql) [string "?"]

How can i help this?

Greetings,

Wan Lee

My config: ( Without passwords and stuff ofcourse )

    local server = get( "server" ) or "IP IS HERE" 
    local user = get( "user" ) or "MY DATABASE NAME HERE" 
    local password = get( "password" ) or "MY PASS HERE" 
    local db = get( "database" ) or "MY DATABASE TAB HERE" 
    local port = get( "port" ) or 3306 
    local socket = get( "socket" ) or nil 

Its good to hear you like the project.

The error states that the SQL resource is not running meaning it either failed to load the module, connect to the mysql server or to select the database.

Check if your MySQL server is running, check your credentials, check if the database is correct.

Otherwise, if you happen to be running Linux you might be experiencing one of these two issues:

The .sock file for MySQL is not where mta-mysql thinks it is, use this command to fix it:

 ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock 

If that still does not fix your issue, it could be that your are missing libmysqlclient.so.15

follow this tutorial to install this file on your Linux system.

Link to comment
Really cool project.

I'm intrested in using this for my server, as we all know Valhalla is outdated/unstable. I just need a basemode to do the rest myself ( I'm not that a good scripter at server-side scripts yet ).

I only have one issue, i installed modules, putted them in mtaserver.conf ( Everything is good cause i used to work with servers and SQL before. ) When i do login it says the warning but when i register It does nothing.. It gives only one warning:

[2012-03-10 16:11:45] ERROR: exports: Call to non-running server resource (sql) [string "?"]

How can i help this?

Greetings,

Wan Lee

My config: ( Without passwords and stuff ofcourse )

    local server = get( "server" ) or "IP IS HERE" 
    local user = get( "user" ) or "MY DATABASE NAME HERE" 
    local password = get( "password" ) or "MY PASS HERE" 
    local db = get( "database" ) or "MY DATABASE TAB HERE" 
    local port = get( "port" ) or 3306 
    local socket = get( "socket" ) or nil 

Its good to hear you like the project.

The error states that the SQL resource is not running meaning it either failed to load the module, connect to the mysql server or to select the database.

Check if your MySQL server is running, check your credentials, check if the database is correct.

Otherwise, if you happen to be running Linux you might be experiencing one of these two issues:

The .sock file for MySQL is not where mta-mysql thinks it is, use this command to fix it:

 ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock 

If that still does not fix your issue, it could be that your are missing libmysqlclient.so.15

follow this tutorial to install this file on your Linux system.

I think i'm missing the good ACL.xml, can you send me the good one?

Link to comment

I think i'm missing the good ACL.xml, can you send me the good one?

That is very possible.

replace the admin group part in the admin acl with this:

  
    <group name="Admin"> 
        <acl name="Moderator"></acl> 
        <acl name="SuperModerator"></acl> 
        <acl name="Admin"></acl> 
        <acl name="RPC"></acl> 
        <object name="resource.admin"></object> 
        <object name="resource.webadmin"></object> 
        <object name="resource.admin2"></object> 
        <object name="resource.account"></object> 
        <object name="resource.sql"></object> 
    </group> 
  

Link to comment
Still.. still.. the string bug at sql, i had this before on another resource but don't know how i fixed it that time..

It is missing something, if you get the error that sql is not running, it is either because it has no ACL rights, the credentials are incorrect or the mta-mysql module is not loaded which means there is something wrong with either the module or its dependencies.

are you running windows or linux?

Link to comment
Still.. still.. the string bug at sql, i had this before on another resource but don't know how i fixed it that time..

It is missing something, if you get the error that sql is not running, it is either because it has no ACL rights, the credentials are incorrect or the mta-mysql module is not loaded which means there is something wrong with either the module or its dependencies.

are you running windows or linux?

Linux, but it worked before, with vG. The modules are startred, uhm.. I don't know what the problem is. It's hosted by ServerFFS. I think there's still something with the ACL, so i'm checking that now..

Link to comment
  • 3 months later...
  • 1 month later...

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