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

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

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

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

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