I recently updated to MAMP 3 and as a result see to have lost all of my database files. When I start the servers, and load up my developed websites it begins a wordpress install from fresh. I can see the db files in the directory but they don't seem to load in phpmyadmin. Does anyone know if it is possible to recover the database file and website to previous functionality or what I can do to restore the site back to normal.
Any help would be much appreciated.
Thanks.
if you host is not making backup, there's no way to get the DELETED data back.
however login to cpanel and click on backup, click on generate & download a backup, check if it has a option "system generated backup" and has a button called weekly.
if there's a weekly button, that should give you the backup when the main server owner Ran the backups.
http://forums.cpanel.net/f49/my-database-removed-accidentally-how-recover-155173.html
Related
I've made an Heroku app with latest Drupal 8.
After it, I've deployed it and configured the installation successfully.
Now I'm getting the problem where Drupal automatically redirects to the installation page when I open my application after 1-2 hours.
I feel that there's something to do with dynos.
And yes, I have a free account.
I've already tried searching a lot on google, but all the guides are outdated which are very complicated/do not make any sense.
The installation page of the Drupal should not come again and again. instead of it, the installation should be permanent.
If drupal is showing you install page that means that it didn't find the (old) database.
So either your database account data is not correct for new environment so it can't connect to database server ( sites/default/settings.php ) or something is wrong with your database (wiped out by heroku?). Check on database (with PHP MyAdmin or some similar tool maybe) to see do you have tables and data inside them.
Heroku has an ephemeral filesystem and Drupal creates/modifies some files during installation such as: "settings.php".
ephemeral file system means that all the modifications to the files/file system will be lost upon the dynos restarting.
So, as soon as Dynos do restart, the files are revert back to their original state.
Due to this, all the changes are wiped up and thus when you open the site/application, the drupal can't detect the installation and thats why it redirects to the installation page.
It all happens because the file changes do not persist if the file system is an ephemeral one.
as #ceejayoz suggested, please see this article for a possible work around by which you can fix this problem:
https://www.fomfus.com/articles/how-to-create-a-drupal-8-project-for-heroku-part-1
I have a wordpress multisite installation running on an AWS EC2 (t2.medium).
After messing around trying to get phpmyadmin installed on the server I accidentally deleted httpd,mysql-server etc. It broke everything.
Thankfully, I used a plugin called Snapshot from wpmu-dev and had everything backed up but now I'm running into some trouble and not entirely sure how to do this.
Current situation:
1. Created an instance snapshot through my aws dashboard.
2. Backed up everything from /var/www/html/ to my local drive.
3. Reinstalled mysql and httpd, started it, went through the steps provided here - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hosting-wordpress.html - however, when setting up the database it states that wordpress-db and the user are already there and my old password still works yet wordpress isn't working?
So I'm not sure where to go from here, shall I just delete my instance and start again from scratch? Loading what I need back into the /var/www/html folder? Or is there a way that I can completely delete my database and then rebuild the tables with the snapshot and get back to where I started?
Thanks in advance for your help folks, really stuck here, have a website that's down!
If you are not sure what happened I would recommend you start from scratch.
Launch an EC2 instance and follow the steps on the guide you provided:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hosting-wordpress.html
Download MySQL workbench and connect to the database (remember
modifying the security permissions temporarily
to be able to connect to the database from your computer) (https://dev.mysql.com/downloads/workbench/)
Restore the sql backup (if you have one, or create one if you don't) to restore the database to your new ec2 instance MySQL. You can do this following the Data import section: https://dev.mysql.com/doc/workbench/en/wb-admin-export-import-management.html
Make sure the configuration file is correct (url, database path, name, etc) (https://codex.wordpress.org/Editing_wp-config.php)
I would recommend to point your domain to your new ec2 instance only after it has been properly configured and tested.
First of all we created a moodle site on our local machine. Afterwards we integrated our work using TFS (Team Foundation Server). Now we changed the ibdata1 file in our database which includes the change of all people and took the latest version of the site from TFS. But now whenever any activity or resource is being created in MOODLE site, mysql stops unexpectedly and says DATABASE READ AND WRITE ERROR; while login takes place effectively and reads the username and password from database. The error message shows that your database must be corrupted or you may not have the priveleges or block port or shutdown by another method. While log shows database "you have moved .frm files to another database?
or, the table contains indexes that this version of the engine
doesn't support." and sometimes "The InnoDB memory heap is disabled". Please help.
Have you copied the database frm files rather than doing a data dump? This won't work. You need to do a database dump and restore.
On the original server either use phpmyadmin or mysqldump. Phpmyadmin should be already installed by xammp
If the server is your local machine, you can access phpmyadmin via
http://localhost/phpmyadmin
Then go to database name, click the export tab and click go. This will download an sql file.
Then on the destination server, do the reverse. Go to phpmyadmim, you will need to create a blank database, then click the import tab and select the sql file.
Also copy the moodle data folder, this is a straight forward copy.
http://docs.moodle.org/26/en/Moodle_migration
Don't try to merge 3 databases, the id's will be out of sync and the data will be completely useless.
If the code from the other developers has been written correctly, they will have install.xml files and possibly upgrade.php or install.php files to make any structure changes to the database.
http://docs.moodle.org/dev/Upgrade_API
I just got Xampp up and running and was able to run a simple 'hello world' php form. From there I copied all the files from my website (around 55mb) and tried to run index.php, but my web browser just displays, "Error establishing a database connection". The website itself is working, but just not in Xampp. As far as I know it's on one server (or at least I only had to use one ftp) and it is set up through WordPress. My website files consist of php, js, css, and html. Any ideas of what I should do or where the error might be? Thanks!!!
To get your Wordpress site to work, there is a mysql component in Xampp.You need to turn it on. Then go to localhost/phpmyadmin adn create a DB for your website. Once in the DB you need to import the DB of your running site and try loading the index.php page. That should make it work.
I'm developing my Wordpress site locally on OSX 10.8 using MAMP Pro v2.2.1. Everything works normally EXCEPT for when I'm logged in as an admin user and I go to Settings > All Users and then try to search for a specific user (using the search bar at the top). Whenever I do this, the form seems to submit, the little spinner on the browser starts turning... and then nothing happens. No errors in the console. No 500 page. Just spinning wheel forever. And after that I can't open any of the other menus unless I stop/start MAMP. I have a lot of experience debugging wordpress plugins and themes, but I have no idea how to debug admin stuff since it's provided by the core.
What I've tried so far:
All other menu pages respond normally (unless I cause this crash).
All other admin menus respond normally, including search functionality.
The live site works fine on the server, including user search
My colleague does not have this problem when checking out the same code and testing on his PC with XAMP.
I ran CHECK TABLE wp_users and MySQL returned "Ok"
I checked MAMP's php_error.log, mysql_error_log.err
Another detail is that after I trigger the problem (by searching users), I can close the window, browse to other websites, and when I return to my local site it's STILL broken. The only way to resolve it is to restart MAMP
I would love any suggestions for how to debug this problem because I'm in the middle of a project that involves user registration and the inability to search users is really inconvenient.
Have you set up a local database to use, or is your MAMP copy of the site connecting to the live database? Remote database connections are often slow and may time out if you're opening and closing connections quite often (or not closing them all).
I was able to solve this by deleting a bunch of users from the wp_users table. I suspected that I was only having this problem in the users table because that was by far the largest table (it had recently been dumped from the production site with around 9000 users). I guess MAMP's MySQL was crashing because it couldn't handle the search query on such a large table. As soon as I removed most of the rows the search started working normally again. I'm sure there's another solution for someone more familiar with MySQL configuration in MAMP.