Jump to content

mysql_connect


Recommended Posts

Posted

Hi there,

I have been working on a home server, running on windows

I have added "" to my mtaserverconf file as first to startup.

I have added "mta_mysql.dll" in the following location

"\Users\User\Desktop\MTA San Andreas\server\mods\deathmatch\modules"

However I get "ERROR: unable to connect to mysql: <2005> Unknown MySQL server host 'IP/DOMAIN' <11004>

Could someone please help me to get this working?

It is the first time for me to use SQL on MTA lol

Thanks

Posted
Windows

Uncompress the file mta_mysql.dll into your C:\Program files\MTA San Andreas\server\mods\deathmatch\modules\ directory and the file libmysql.dll into your C:\Program files\MTA San Andreas\server\ directory.

Did you do that as well? (Edit: By "that", I mean the bolded bit, if you can tell it apart)

https://wiki.multitheftauto.com/wiki/Mysql

And like SolidSnake said, make sure you have a MySQL server running.

Posted

I'm with Solidsnake here, if you want the link to the XAMPP program, it's http://www.apachefriends.org/en/xampp-windows.html

If you need any help getting to grips with it, feel free to throw a PM my way, I've been using that program for the better part of 7 years now.

The following is an edit:

Get a program named "xampp", that contains a mysql server, apache, and dunno what else.

You could have also mentioned PHP since that's a pretty useful part of it since he could essentially run a full server (MTA + forum/website) from a house computer. (If that's what he's actually doing.)

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