• I had problems with my original theme so I eventually backed up everything in sql.gz format. This is when my problems started. I have been told to download and install phpmyadmin, which I did. I also followed the instructions to the letter and created a new config.inc file which I uploaded to the phpmyadmin folder in the htdocs folder. Now whenI try to login I get the following error messages:
    Starting to parse config file…
    Warning: Unexpected character in input: '\' (ASCII=92) state=1 in E:\domains\j\joerowlands.com\user\htdocs\phpmyadmin\config.inc.php on line 2

    Parse error: syntax error, unexpected T_STRING in E:\domains\j\joerowlands.com\user\htdocs\phpmyadmin\config.inc.php on line 2

    Any help would be greatly appreciated. I am not particularly technically inclined but can usually follow instructions

Viewing 5 replies - 1 through 5 (of 5 total)
  • Can you quote line 2 of your config.inc.php here?..

    Thread Starter joerow

    (@joerow)

    Thanks for asking Dor
    I hope this is what you want:

    Config.inc.php

    {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\fswiss\fcharset0 Arial;}}
    {\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\nowidctlpar\lang2057\f0\fs20 <?php\par
    $i=0;\par
    $i++;\par

    Wow… That’s not php…

    Open with your Msftedit and save as a plain text.

    It should look like this:

    <?php
    $i=0;
    $i++;
    // etc-etc
    Thread Starter joerow

    (@joerow)

    Hi Dor
    Youare right, I have no idea how it changed from what I entered. This is what I entered but with the right IP address, username and password

    <?php
    $i=0;
    $i++;
    $cfg[‘Servers’][$i][‘host’]=’213.171.218.246′; // your database server’s IP address
    $cfg[‘Servers’][$i][‘auth_type’]=’config’; // Authentication method – config, http or cookie
    $cfg[‘Servers’][$i][‘user’]=’demousername’; // your database username
    $cfg[‘Servers’][$i][‘password’]=’trainingpassword’; // your database user’s password
    ?>

    Thanks for your help

    Do you have smth like Notepad++ editor? It can save text files with DOS or UNIX line ends…

    I am not sure, but the problem may be with line endings (if everything else is ok — please check leading/trailing spaces, carriage returns etc).

    And, sorry for stupid remark, i hope these are *not* real ip/name/pass…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problems restoring from a WP backup’ is closed to new replies.