Changeset c941e07 in network-game for server/DataAccess.cpp


Ignore:
Timestamp:
Nov 11, 2014, 1:05:14 AM (10 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
master
Children:
48801af
Parents:
a9a1295
Message:

Only load the db settings once and actually use the loaded settings instead of the hard-coded ones

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/DataAccess.cpp

    ra9a1295 rc941e07  
    3131
    3232   mysql_init(&mysql);
    33    connection = mysql_real_connect(&mysql, "localhost", "pythonAdmin", "pyMaster09*", "pythondb", 0, 0, 0);
     33   connection = mysql_real_connect(&mysql, "localhost", username.c_str(), password.c_str(), database.c_str(), 0, 0, 0);
    3434
    3535   if (connection == NULL) {
Note: See TracChangeset for help on using the changeset viewer.