Troubleshooting - lost admin password recovery advice- HELP
Posted: Sat Aug 16, 2014 7:41 pm
This is probably the wrong Forum but here goes:
I am following the guidance in the above Troubleshooting advice at http://docs.cmsmadesimple.org/troublesh ... d-recovery which states that I should run a query to add an administrator for a hacked site:
The advice states, with my user name & password in ***, that the query should run like this:
<quote>
update cms_users set password = (select md5(CONCAT(IFNULL((SELECT sitepref_value FROM cms_siteprefs WHERE sitepref_name = 'sitemask'),''),'***'))) where username = '***'
</quote>
When I try this I get a MySQL failure message which states:
<quote>
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem.
ERROR: Unclosed quote @ 185
STR: '
SQL: update cms_users set password = (select md5(CONCAT(IFNULL((SELECT sitepref_value FROM cms_siteprefs WHERE sitepref_name = 'sitemask'),''),'***'))) where username = '***'
SQL query: Documentation
update cms_users set password = (select md5(CONCAT(IFNULL((SELECT sitepref_value FROM cms_siteprefs WHERE sitepref_name = 'sitemask'),''),'***'))) where username = '***'
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''))) where username = '***'' at line 1
</quote>
I am sorry but I really am not clever enough to translate this. Can someone give me advice please.
Thanks,
Martin
I am following the guidance in the above Troubleshooting advice at http://docs.cmsmadesimple.org/troublesh ... d-recovery which states that I should run a query to add an administrator for a hacked site:
The advice states, with my user name & password in ***, that the query should run like this:
<quote>
update cms_users set password = (select md5(CONCAT(IFNULL((SELECT sitepref_value FROM cms_siteprefs WHERE sitepref_name = 'sitemask'),''),'***'))) where username = '***'
</quote>
When I try this I get a MySQL failure message which states:
<quote>
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem.
ERROR: Unclosed quote @ 185
STR: '
SQL: update cms_users set password = (select md5(CONCAT(IFNULL((SELECT sitepref_value FROM cms_siteprefs WHERE sitepref_name = 'sitemask'),''),'***'))) where username = '***'
SQL query: Documentation
update cms_users set password = (select md5(CONCAT(IFNULL((SELECT sitepref_value FROM cms_siteprefs WHERE sitepref_name = 'sitemask'),''),'***'))) where username = '***'
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''))) where username = '***'' at line 1
</quote>
I am sorry but I really am not clever enough to translate this. Can someone give me advice please.
Thanks,
Martin