SQL Issues

Post Reply
DeeMoney07
New to forums
New to forums
Posts: 2
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Jan 02, 2014 2:24 am

SQL Issues

Post by DeeMoney07 »

Honestly I have no clue how to set this up. I set up the database on the free forums that comes with NFO. I put the MySQLOO in the garrysmod/lua/bin folder and the libMySQL in the first directory possible. Now I am sitting here clueless what to do and how to connect to the database. Please help me.
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: SQL Issues

Post by kraze »

MySQLOO will just allow the capability of being able to connect to database, if I remember correctly. Your addon/plugin will still need to be connected via its own configs/settings.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
DeeMoney07
New to forums
New to forums
Posts: 2
Joined: Thu Jan 02, 2014 2:24 am

Re: SQL Issues

Post by DeeMoney07 »

require("mysqloo")
local DATABASE_HOST = "mint.site.nfoservers.com"
local DATABASE_PORT = 3306
local DATABASE_NAME = "blah blah blah"
local DATABASE_USER = "blah blah blah"
local DATABASE_PASS = "blah blah blah"
GM.Database = nil


This is part of the code. I am assuming the require("mysqloo") means I need that.
Post Reply