Jump to content

MySQL database connection problem.


Alan.Alexander

Recommended Posts

Posted

I'm having a wee bit of trouble with using MySQL in MTA .

While on my local, I can run XAMPP and connect to the MySQL easily, but on my Debian 6 server with XAMPP using tyhe exact same tables and script it doesn't seem to want to connect.

Anyone have any idea what the problem might be?

Posted
Try using your internal IP address. You can get it by opening cmd and typing 'ipconfig'.

I'm not sure you read my first post, but I'm running this on a Debian 6 server? ipconfig doesn't work like that and I'm a bit of a noob with Linux...

Posted

In your mtaserver.config, make sure your IP is 192.168.1.1 or 192.168.1.2 or 192.168.1.3 or 192.168.1.4 or 192.168.1.5, one of those 5. Normally it will be 192.168.1.2 & the one that works, connect to your server with it.

Posted
:facepalm:

127.0.0.1=localhost

As far as I know, localhost doesn't exist in Linux so localhost can't be used. So you can't say localhost is the same as 127.0.0.1 as with localhost it won't work.

Posted

Localhost does exist in Linux. I write 'ping localhost' in the terminal and it works as if I wrote 'ping 127.0.0.1'.

Posted
Localhost does exist in Linux. I write 'ping localhost' in the terminal and it works as if I wrote 'ping 127.0.0.1'.

Oh, ok.. I saw somewhere that it didn't exist in Linux ._.

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