Help save net neutrality! Learn more.
Close

#6 Error with backup when "-" in DB name

closed-fixed
nobody
None
5
2009-12-21
2008-07-09
Anonymous
No

Script cannot make backup when DB name contains "-" (minus).
I.e.:
Database name: "xxx-yyy"
Script try to connect to: "xxx" DB.

Discussion

  • Vitold S

    Vitold S - 2008-07-12

    Logged In: YES
    user_id=1603736
    Originator: NO

    Solving:

    phpminiadmin.php on line 646 change

    from

    [code]
    $sth=db_query("show tables from $DB[db]");
    [/code]

    to

    [code]
    $sth=db_query("show tables from `$DB[db]`");
    [code]

     
  • Oleg Savchuk

    Oleg Savchuk - 2009-12-21
    • status: open --> closed-fixed
     
  • Oleg Savchuk

    Oleg Savchuk - 2009-12-21

    fixed in version 1.5.091221 - added db name quoting

     

Log in to post a comment.