Dziugasc Posted July 3, 2017 Share Posted July 3, 2017 (edited) Hello i have problem with mysql it always says Unable to connect with database. Please contact Developer. well my website works well with the same mysql database it shows many tables but mta something isn't right local connection = nil addEventHandler("onResourceStart",resourceRoot,function(resource) connection = dbConnect("mysql","dbname=s397;host=s1.justhost.lt;port=36517;","s397","j1BUEwHKZ") if connection then outputDebugString(getResourceName(resource) .. " : connected to database.") return true else outputDebugString(getResourceName(resource) .. " : Unable to connect with database. Please contact Developer.") return false end end ) i tried many things changing password going to forums or mta wiki and i couldn't find anything everything would make same thing Edited July 3, 2017 by Dziugasc xd Link to comment
WorthlessCynomys Posted July 4, 2017 Share Posted July 4, 2017 (edited) Some web MySQL services can only be used by website for security reasons. Get in contact with the support of your service. Edited July 4, 2017 by StormFighter Link to comment
Dziugasc Posted July 4, 2017 Author Share Posted July 4, 2017 1 hour ago, StormFighter said: Some web MySQL services can only be used by website for security reasons. Get in contact with the support of your service. Ok thanks Link to comment
Syntrax# Posted July 4, 2017 Share Posted July 4, 2017 (edited) 43 minutes ago, Dziugasc said: Ok thanks Make sure your mysql does accept remote access, if this isn't stated anywhere please contact your hoster to make sure there isn't an option for remote MySQL access P.S : I'm using blazingfast for that, they provide free remote mysql asnd they are cheap Edited July 4, 2017 by Syntrax# 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