Jump to content

problem with mysql


Ascla

Recommended Posts

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 :)

Edited by Guest
Link to comment
  • 2 weeks later...

local hostname = get( "hostname" ) or "localhost" 
local username = get( "username" ) or "root" 
local password = get( "password" ) or "" 
local database = get( "database" ) or "Yourdatabasenamehere" 
local port = tonumber( get( "port" ) ) or 3306 

I use that for xamp if that helps any if your running it local just add localhost as you see in the first line and so on and where i put your databasenamehere that will be your mysql database name you created so if you called it john instead of typing Yourdatabasenamehere you would just replace it with john hope this helps a bit also make sure your s_myslq is scripted correctly and make sure your settings also are to in your deathmatch folder if you need anymore help let me know

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