Jump to content

MySQL


Lloyd Logan

Recommended Posts

Posted

Hi,

why isn't this working, it's saying access denied for user

local user = "root" 
local pass = "" 
local host = "127.0.0.1" 
local db = "accounts" 
server = dbConnect ( "mysql", "dbname=accounts;host=127.0.0.1") 
  
  

Thanks

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
What about username and password?

I tried adding an all privileged account, name = lloyd and pass = mtaserver, but still the same

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted

You're right,

how does this look?

local user = "root" 
local pass = "" 
local host = "127.0.0.1" 
local db = "servermta" 
server = dbConnect ( "mysql", "dbname=servermta;host=127.0.0.1","root") 
  

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
Why don't you try? Looks fine to me. BTW, I don't see any reason why you need to declare new variables if you don't even use them.

So there isn't a need for the variable 'server'?

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
Why don't you try? Looks fine to me. BTW, I don't see any reason why you need to declare new variables if you don't even use them.

So there isn't a need for the variable 'server'?

You will need the server variable if you want to query the database later on but you don't need other vars if you don't even use them.

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