Jump to content

[HELP]with MySql


Recommended Posts

  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 by Dziugasc
xd
Link to comment
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 by Syntrax#
Link to comment

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