Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2014-10-17 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
October 17, 2014, 04:27:26 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://ownageclan.com/jenkins/job/War3Source-Default1/
WIKI page: http://ownageclan.com/wiki/index.php/Main_Page
War3Source GIT repo: https://github.com/War3Source/War3Source
War3Source servers: http://www.game-monitor.com/search.php?vars=a_war3_version=
War3Source Function Reference: http://ownageclan.com/war3source/functionreference/?search=player
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Help with database  (Read 141 times)
Remy Lebeau
Sr. Member
****
Posts: 448



View Profile WWW
« on: October 14, 2014, 06:18:00 PM »

Yes, I feel like a nubcake posting this, but I'm stumped.

I want to move the sql database from an offsite host onto our dedicated server.  I've installed the LAMP server succesfully, including phpmyadmin.  I've transferred the database (at least as far as I can see it all went ok).

I've changed the configuration in the databases.cfg file to:

Code:
"war3source"
{
"driver" "mysql"
"host" "localhost"
"database" "war3source"
"user" "root"
"pass" "blahblahpwhere"
//"timeout" "0"
}

I've also tried with a specific user rather than root.

The server loads ok, and seems to work fine, however in game there are no levels/ etc.  There's a warning on the changerace menu that says can't connect to server.

Is there a debug option that allows me to see what's going on when war3source tries to connect to the database?  I've had this same server working fine with both local sqlite and remote mysql.

Any further suggestions?

edit: as far as I can tell mysql is working fine on the machine...

Code:
remy@ds:~$ mysql -u war3source -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 144
Server version: 5.5.38-0ubuntu0.14.04.1 (Ubuntu)

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| war3source         |
+--------------------+
2 rows in set (0.00 sec)

mysql> use war3source;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+----------------------+
| Tables_in_war3source |
+----------------------+
| war3source           |
| war3source_item2     |
| war3source_racedata1 |
| war3sourceraces      |
+----------------------+
4 rows in set (0.00 sec)

mysql>

« Last Edit: October 14, 2014, 11:29:02 PM by Remy Lebeau » Logged

Revan
Sr. Member
****
Posts: 451



View Profile
« Reply #1 on: October 14, 2014, 11:56:00 PM »

I remember I always had to use 127.0.0.1 as host rather than localhost(dunno why) - give it a try.
Logged

#war3source on gamesurge
Remy Lebeau
Sr. Member
****
Posts: 448



View Profile WWW
« Reply #2 on: October 15, 2014, 05:24:15 PM »

I remember I always had to use 127.0.0.1 as host rather than localhost(dunno why) - give it a try.

ah, that'd be it.  I did try that, however I think at that point I had username/password issues, and didn't hit on the right combo!  Thanks.
Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2389


chmod -R 777 *


View Profile WWW
« Reply #3 on: October 15, 2014, 10:29:25 PM »

because linux tries to be smart and use local file socket access to connect to server, rather than TCP IP socket


thanks linux........
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!