Help

Results 1 to 14 of 14
  1. #1
    Apprentice testeris is offline
    MemberRank
    Sep 2013 Join Date
    10Posts

    config Help

    hey everybody, when i try install server i got this error:
    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'blake_vichy'@'192.254.225.224' (using password: YES) in/home4/blake/public_html/travian/install/include/database.php on line 30
    Access denied for user 'blake_vichy'@'192.254.225.224' (using password: YES)

    Somebody know how to fix that?


    Now i have this problem:

    Parse error: syntax error, unexpected T_DNUMBER in /home4/blake/public_html/travian/install/include/database.php on line 30

    And this is code:

    var $connection;
    function MYSQL_DB() {
    $this->connection = mysql_connect (192.254.225.226, bl*****y, lo****er) or die(mysql_error());
    mysql_select_db(blake_travian, $this->connection) or die(mysql_error());
    Last edited by vLife; 21-09-13 at 09:39 PM.


  2. #2
    Phoenix InMemory is offline
    MemberRank
    Apr 2010 Join Date
    EnglandLocation
    491Posts

    Re: Help

    With the mysql connect you need to quote the values

    Code:
    var $connection;
    function MYSQL_DB() {
    $this->connection = mysql_connect (192.254.225.226, bl*****y, lo****er) or die(mysql_error());
    mysql_select_db(blake_travian, $this->connection) or die(mysql_error());
    To

    Code:
    var $connection;
    function MYSQL_DB() {
    $this->connection = mysql_connect ("192.254.225.226", "bl*****y", "lo****er") or die(mysql_error());
    mysql_select_db("blake_travian", $this->connection) or die(mysql_error());
    Let me know if that doesn't work

  3. #3
    Apprentice testeris is offline
    MemberRank
    Sep 2013 Join Date
    10Posts

    Re: Help

    now i have this problem:

    Error importing database. Check configuration


    But i check database.php file and with this line everythink is ok.
    Or i need edit other file? i really check all files ad i dont know what is wrong.

    P.S sorry about my bad english.


    $this->connection = mysql_connect ("192.254.225.226", "bl*****y", "lo****er") or die(mysql_error())

  4. #4
    Phoenix InMemory is offline
    MemberRank
    Apr 2010 Join Date
    EnglandLocation
    491Posts

    Re: Help

    What version are you using? Are you sure those values are correct? Did you run the install?

  5. #5
    Account Upgraded | Title Enabled! nmilchev is offline
    MemberRank
    Sep 2011 Join Date
    BulgariaLocation
    724Posts

    Re: Help

    You don't need to edit the file database.php

    restore it to his original state.

    You must edit the config.php file. Nothing more

  6. #6
    Apprentice testeris is offline
    MemberRank
    Sep 2013 Join Date
    10Posts

    Re: Help

    Server running on:
    v6.0.0

    ohh, i just restore file database.php.
    mhm..I search for file config.php, and no result, then when i search file config i saw this file: "config.tpl" in map
    /travian/install/templates.
    In that file i need edit this code?
    <p>
    <span class="f10 c">SQL RELATED</span>
    <table><tr>
    <td><span class="f9 c6">Hostname:</span></td><td><input name="192.254.225.226" type="text" id="sserver" value="192.254.225.226"></td></tr><tr>
    <td><span class="f9 c6">Username:</span></td><td><input type="text" id="suser" value=""></td></tr><tr>
    <td><span class="f9 c6">Password:</span></td><td><input name="spass" id="spass"></td></tr><tr>
    <td><span class="f9 c6">DB name:</span></td><td><input type="blake_travian" name="sdb" id="sdb"></td></tr><tr>
    <td><span class="f9 c6">Prefix:</span></td><td><input type="text" name="prefix" id="prefix" size="5"></td></tr>
    <td><span class="f9 c6">Type:</span></td><td><select name="connectt">
    <option value="0" selected="selected">MYSQL</option>
    <option value="1" disabled="disabled">MYSQLi</option>
    </select></td></tr>
    </table>
    </p>
    Last edited by testeris; 23-09-13 at 04:05 PM.

  7. #7
    Phoenix InMemory is offline
    MemberRank
    Apr 2010 Join Date
    EnglandLocation
    491Posts

    Re: Help

    Quote Originally Posted by testeris View Post
    Server running on:
    v6.0.0

    ohh, i just restore file database.php.
    mhm..I search for file config.php, and no result, then when i search file config i saw this file: "config.tpl" in map
    /travian/install/templates.
    In that file i need edit this code?
    <p>
    <span class="f10 c">SQL RELATED</span>
    <table><tr>
    <td><span class="f9 c6">Hostname:</span></td><td><input name="192.254.225.226" type="text" id="sserver" value="192.254.225.226"></td></tr><tr>
    <td><span class="f9 c6">Username:</span></td><td><input name="blake_vichy" type="text" id="suser" value=""></td></tr><tr>
    <td><span class="f9 c6">Password:</span></td><td><input type="Lomiks4ever" name="spass" id="spass"></td></tr><tr>
    <td><span class="f9 c6">DB name:</span></td><td><input type="blake_travian" name="sdb" id="sdb"></td></tr><tr>
    <td><span class="f9 c6">Prefix:</span></td><td><input type="text" name="prefix" id="prefix" size="5"></td></tr>
    <td><span class="f9 c6">Type:</span></td><td><select name="connectt">
    <option value="0" selected="selected">MYSQL</option>
    <option value="1" disabled="disabled">MYSQLi</option>
    </select></td></tr>
    </table>
    </p>
    No that is a template for what looks like the install, you might want to remove your password.

  8. #8
    Apprentice testeris is offline
    MemberRank
    Sep 2013 Join Date
    10Posts

    Re: Help

    Then that mean i dont have config.php file?:O

    Can you give me your skype?

  9. #9
    Account Upgraded | Title Enabled! nmilchev is offline
    MemberRank
    Sep 2011 Join Date
    BulgariaLocation
    724Posts

    Re: Help

    First you need to install the script. Then it will create the config.php file

    Go to yourwebsite.com/install

    Then follow all instructions and it will work

  10. #10
    Apprentice testeris is offline
    MemberRank
    Sep 2013 Join Date
    10Posts

    Re: Help

    You mean somethink like Dboor?
    I'm learning how and what to do.

  11. #11
    Account Upgraded | Title Enabled! nmilchev is offline
    MemberRank
    Sep 2011 Join Date
    BulgariaLocation
    724Posts

    Re: Help

    No. It's not like dboor.

    Just go to your website and it will redirect you to the intall script.
    Follow the instructions and everything will work

  12. #12
    Apprentice testeris is offline
    MemberRank
    Sep 2013 Join Date
    10Posts

    Re: Help

    Ohh nmilchev, you really dont understan me.:D
    My problem is when i try install scrip from my homepage.
    When i write all necessary in second page in install i get now this error:
    Parse error: syntax error, unexpected T_STRING in /home4/blake/public_html/travian/install/include/constant.php on line 162


    And in this file 162 line is:

    // ***** Database - Table Prefix
    define("TB_PREFIX", "s1_");

    And i really dont know what is wrong..

  13. #13
    Account Upgraded | Title Enabled! nmilchev is offline
    MemberRank
    Sep 2011 Join Date
    BulgariaLocation
    724Posts

    Re: Help

    Maybe if you add me on skype I can really help you with this.
    skype : niki-bg66

  14. #14
    Apprentice testeris is offline
    MemberRank
    Sep 2013 Join Date
    10Posts

    Re: Help

    Okey, i hope i just invite correct person:D
    But my skype is: janis5137



Advertisement