WordPress.org

Ready to get started?Download WordPress

Forums

Problems restoring from a WP backup (6 posts)

  1. joerow
    Member
    Posted 5 years ago #

    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

  2. dor
    Member
    Posted 5 years ago #

    Can you quote line 2 of your config.inc.php here?..

  3. joerow
    Member
    Posted 5 years ago #

    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

  4. dor
    Member
    Posted 5 years ago #

    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
  5. joerow
    Member
    Posted 5 years ago #

    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

  6. dor
    Member
    Posted 5 years ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Topic