Alan.Alexander Posted September 20, 2012 Share Posted September 20, 2012 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? Link to comment
Baseplate Posted September 20, 2012 Share Posted September 20, 2012 Try checking ur hostname, it's not always localhost Link to comment
Alan.Alexander Posted September 20, 2012 Author Share Posted September 20, 2012 Try checking ur hostname, it's not always localhost That's why I was using 127.0.0.1 in the first place. Link to comment
Baseplate Posted September 20, 2012 Share Posted September 20, 2012 :facepalm: 127.0.0.1=localhost Link to comment
Entity Posted September 20, 2012 Share Posted September 20, 2012 (edited) Try using your internal IP address. Edited September 20, 2012 by Guest Link to comment
Alan.Alexander Posted September 20, 2012 Author Share Posted September 20, 2012 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... Link to comment
Entity Posted September 20, 2012 Share Posted September 20, 2012 (edited) Try to type this in console: /sbin/ifconfig Edited September 20, 2012 by Guest Link to comment
Alan.Alexander Posted September 20, 2012 Author Share Posted September 20, 2012 I've tried using 127.0.0.1, 127.0.0.2 (both were listed in ifconfig) and my external IP address... Nothing's working. Link to comment
Entity Posted September 20, 2012 Share Posted September 20, 2012 http://www.if-not-true-then-false.com/2010/linux-get-ip-address/ Link to comment
Alan.Alexander Posted September 20, 2012 Author Share Posted September 20, 2012 I used example 1.2, I'm getting this... lo: 127.0.0.1 venet0: 127.0.0.2 venet0: addr Link to comment
Entity Posted September 21, 2012 Share Posted September 21, 2012 Sorry, I don't know much about Linux, but you can still create account on the following sites and get free hosting with database hosting: http://www.cwahi.net/ http://byethost.com/ http://www.000webhost.com/ Link to comment
DiSaMe Posted September 21, 2012 Share Posted September 21, 2012 Remote MySQL connections in 000webhost are disabled for free accounts. Link to comment
Alan.Alexander Posted September 21, 2012 Author Share Posted September 21, 2012 I think I'ma just use SQLite 'cause fuck MySQL since it's being a bitch. Cheers for the help though guys. Link to comment
Jaysds1 Posted September 23, 2012 Share Posted September 23, 2012 sorry, I know this late but maybe you could use this free mysql hosting: http://www.bizhostnet.com/ Link to comment
xXMADEXx Posted September 23, 2012 Share Posted September 23, 2012 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. Link to comment
Anderl Posted September 23, 2012 Share Posted September 23, 2012 :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. Link to comment
DiSaMe Posted September 23, 2012 Share Posted September 23, 2012 Localhost does exist in Linux. I write 'ping localhost' in the terminal and it works as if I wrote 'ping 127.0.0.1'. Link to comment
Anderl Posted September 23, 2012 Share Posted September 23, 2012 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 ._. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now