Dziugasc

[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

Share this post


Link to post

Some web MySQL services can only be used by website for security reasons. Get in contact with the support of your service.

Edited by StormFighter

Share this post


Link to post
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

Share this post


Link to post
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#

Share this post


Link to post

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.