Hello,
Was looking at the two different versions, and I attempted to copy our installation of 1.6.5 into a new /var/www/html folder and upgrade that installation to 2.0. However, I forgot to edit the inc/data.php to point to the new MySQL database. After running admin/update.php, we are lo longer able to login to the original database.
Now, when trying to login we get User or password not valid. (admin / *) as the response. All of our test FAQs are there and accessible, we just can't admin the site.
After I realized the error, and the fact that I can no longer login and restore the databse, I tried to manually restore the databse but got an error that in line 7, item 'id' can't be found. After restoring this database to a fresh install... I am still unable to login to that install when pointing data.php to the new databse with the restored original data.
Any help would be greatly appreciated.
At least this is just a test environment while we compare different KB/FAQ programs.
Thanks,
Ernie
No longer able to login after upgrade from 1.6.5 to 2
Moderator: Thorsten
Re: No longer able to login after upgrade from 1.6.5 to 2
Hi,
Matteo
That's bad! As stated in the 1st step of the update stage we strongly suggest to perform a backup of the DB.ealdama wrote:Hello,
Was looking at the two different versions, and I attempted to copy our installation of 1.6.5 into a new /var/www/html folder and upgrade that installation to 2.0. However, I forgot to edit the inc/data.php to point to the new MySQL database.
This is due to the new users DB API that is totally different from that coming with 1.6.x.ealdama wrote:After running admin/update.php, we are lo longer able to login to the original database.
Now, when trying to login we get User or password not valid. (admin / *) as the response. All of our test FAQs are there and accessible, we just can't admin the site.
How did you perform the backp?ealdama wrote:After I realized the error, and the fact that I can no longer login and restore the databse, I tried to manually restore the databse but got an error that in line 7, item 'id' can't be found. After restoring this database to a fresh install... I am still unable to login to that install when pointing data.php to the new databse with the restored original data.
- usign the PMF shortcut;
- using phpMyAdmin;
- other.
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
Hi Matteo,
Thanks for the reply. Yes, the databse was backed up, prior to trying this, using PMF. When I tried using mysql -u root -p and attempt to restore the DB, I got errors that various things were missing. When I looked at the actual .sql file, in a text editor, I noticed that none of the table/field creates are specified, like in a mysqldump. When I realized this, I dropped the database, created a new one that was blank, installed 1.6.5 into a different directory in /var/www/html and then did the restore from PMF. The result is the same. I am unable to login. I saw a reference to phpMyAdmin, but I am unfamiliar with it. Would that allow me to reset passwords, and get back in?
Thanks for the reply. Yes, the databse was backed up, prior to trying this, using PMF. When I tried using mysql -u root -p and attempt to restore the DB, I got errors that various things were missing. When I looked at the actual .sql file, in a text editor, I noticed that none of the table/field creates are specified, like in a mysqldump. When I realized this, I dropped the database, created a new one that was blank, installed 1.6.5 into a different directory in /var/www/html and then did the restore from PMF. The result is the same. I am unable to login. I saw a reference to phpMyAdmin, but I am unfamiliar with it. Would that allow me to reset passwords, and get back in?
Hi,
). That said, you can reset your admin password changing the content of tables fields BUT this need a small knowledge about the DB API of PMF 1.6.x.
Is it an option to email me (matteo@phpmyfaq.de) your PMF backup files or they contain sensible data?
Another way is to select and email me only the sections referring to these tables:
Regards,
Matteo
The PMF backup is a ~proprietary way to do the backup so you need to restore it using PMF import.ealdama wrote:the databse was backed up, prior to trying this, using PMF. When I tried using mysql -u root -p and attempt to restore the DB, I got errors that various things were missing.
You've performed the correct steps, IF you have also modified your inc/data.php file for pointing to the blank database: it sounds really strange. No error reported running the PMF backup restore?ealdama wrote:I dropped the database, created a new one that was blank, installed 1.6.5 into a different directory in /var/www/html and then did the restore from PMF. The result is the same. I am unable to login.
phpMyAdmin allows you to directly access to DB tables with a friendly web interface that's better than using CLI (and I'm one who like CLI and viealdama wrote:I saw a reference to phpMyAdmin, but I am unfamiliar with it. Would that allow me to reset passwords, and get back in?
Is it an option to email me (matteo@phpmyfaq.de) your PMF backup files or they contain sensible data?
Another way is to select and email me only the sections referring to these tables:
- faquser
Code: Select all
-- pmf1.6: faquser faqchanges faqnews faqcategories faqcategoryrelations faqvoting faqdata faqdata_revisions faqcomments faqvisits faqfragen
-- DO NOT REMOVE THE FIRST LINE!
-- pmftableprefix:
-- DO NOT REMOVE THE LINES ABOVE!
-- Otherwise this backup will be broken.
-- Table: faquser
...Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
I'll look at the data, but some of it might be development documentation that we consider confidential. We have no problems dumping the whole thing, and starting over, since we were just starting to use it to see how it performed. Personally though, I would like to understand what problems it caused, should someone else do this in the future. That way, we'll have an understanding of the problem, as well as an understanding of the solution. At the very least, I'll forward the table information you requested.matteo wrote: Is it an option to email me (matteo@phpmyfaq.de) your PMF backup files or they contain sensible data?
Another way is to select and email me only the sections referring to these tables:You can easily find them looking at the PMF SQL phpmyfaq-data.YYYY-MM-DD.sql:
- faquser
Code: Select all
-- pmf1.6: faquser faqchanges faqnews faqcategories faqcategoryrelations faqvoting faqdata faqdata_revisions faqcomments faqvisits faqfragen -- DO NOT REMOVE THE FIRST LINE! -- pmftableprefix: -- DO NOT REMOVE THE LINES ABOVE! -- Otherwise this backup will be broken. -- Table: faquser ...
Matteo,
I fixed this. I went back and started from scratch, new DB, new site, created the shell more or less, then restored the original backup, and this time it worked. Copied everything into a faq200 site expoted the 165 DB to a 200 DB, and upgraded a copy of the 165 site and ran the update.php. All the data is there, logins are working on both the faq165 and faq200 sites and life is almost great. I have a minor cosmetic flaw, but I will search to see if this is a known issue before posting about it.
Thanks for your time. Your questions prompted a thought process in me, that allowed me to find the solution.
thanks,
Ernie
I fixed this. I went back and started from scratch, new DB, new site, created the shell more or less, then restored the original backup, and this time it worked. Copied everything into a faq200 site expoted the 165 DB to a 200 DB, and upgraded a copy of the 165 site and ran the update.php. All the data is there, logins are working on both the faq165 and faq200 sites and life is almost great. I have a minor cosmetic flaw, but I will search to see if this is a known issue before posting about it.
Thanks for your time. Your questions prompted a thought process in me, that allowed me to find the solution.
thanks,
Ernie
Good!ealdama wrote:Matteo,
I fixed this.
Nice approachealdama wrote:I went back and started from scratch, new DB, new site, created the shell more or less, then restored the original backup, and this time it worked. Copied everything into a faq200 site expoted the 165 DB to a 200 DB, and upgraded a copy of the 165 site and ran the update.php. All the data is there, logins are working on both the faq165 and faq200 sites and life is almost great. I have a minor cosmetic flaw, but I will search to see if this is a known issue before posting about it.
Just 2 tip among the many differences between 1.6.5 and 2.0.0:
- the image files are no longer within the "/images" folder, now they sit in "/images/Image" folder;
- the faq internal links will be restored within the final release.
My pleasure, if my time has driven you to the solutionealdama wrote:Thanks for your time. Your questions prompted a thought process in me, that allowed me to find the solution.
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist