Lloyd Logan Posted January 3, 2014 Share 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 Link to comment
50p Posted January 3, 2014 Share Posted January 3, 2014 What about username and password? Link to comment
Lloyd Logan Posted January 3, 2014 Author Share 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 Link to comment
50p Posted January 3, 2014 Share 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. Link to comment
Lloyd Logan Posted January 3, 2014 Author Share 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") Link to comment
50p Posted January 3, 2014 Share 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. Link to comment
Lloyd Logan Posted January 3, 2014 Author Share 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'? Link to comment
50p Posted January 3, 2014 Share 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. Link to comment
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