Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 13117

Re: Remove specified folders form mysql

$
0
0
Wow! You are a hacker's dream! "http://somesite.com/phpmyadmin" That is going to get you into a lot of trouble!

phpMyAdmin should be installed in a separate directory, using SSL for the ONE domain using it. If your MySQL database is 'localhost', then the username and password per database will be enough to limit that person to the database( s ) with that same user/pass.

Now to your question:

BACKUP YOUR DATABASE!

You will have to run something like this:
DELETE FROM `tablename`
WHERE field1 LIKE '%phpMyAdmin%' 
OR field2 LIKE '%phpMyAdmin%'
... ( keep listing relevant fields until the last one )
OR Lastfield LIKE '%phpMyAdmin%'
You will have to do this for every table, and insert every relevant field into the query.

Hope that helps! ;)

Sven2157

Viewing all articles
Browse latest Browse all 13117

Trending Articles