Lloyd Logan Posted January 3, 2014 Posted January 3, 2014 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!
50p Posted January 3, 2014 Posted January 3, 2014 What about username and password? - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
Lloyd Logan Posted January 3, 2014 Author Posted January 3, 2014 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!
50p Posted January 3, 2014 Posted January 3, 2014 What about username and password? I tried adding an all privileged account, name = lloyd and pass = mtaserver, but still the same But you don't seem to be sending it when you call dbConnetc. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
Lloyd Logan Posted January 3, 2014 Author Posted January 3, 2014 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!
50p Posted January 3, 2014 Posted January 3, 2014 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. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
Lloyd Logan Posted January 3, 2014 Author Posted January 3, 2014 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!
50p Posted January 3, 2014 Posted January 3, 2014 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. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
Lloyd Logan Posted January 3, 2014 Author Posted January 3, 2014 OK, 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now