-
Open Ampps Application -> MySQL Tab -> Configuration.
-
In [mysqld] section, add the following line:
innodb_force_recovery = 1
-
Save the file and try starting MySQL
-
Remove that line which you just added and Save.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo '#!/bin/bash' > restore.sh | |
echo sudo apt-get install `grep Remove /var/log/apt/history.log | tail -1 | sed -e 's|Remove: ||g' -e 's|([^)]*)||g' -e 's|:[^ ]* ||g' -e 's|,||g'` >> restore | |
chmod +x restore | |
./restore.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable | |
*or sudo n latest for latest version* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$databases['default']['default'] = array( | |
'driver' => 'mysql', | |
'database' => 'databasename', | |
'username' => 'username', | |
'password' => 'password', | |
'host' => 'localhost', | |
'charset' => 'utf8mb4', | |
'collation' => 'utf8mb4_general_ci', | |
); |
drush vset maintenance_mode 1
drush utf8mb4-convert-databases
drush cc all
drush @none dl utf8mb4_convert-7.x
drush cache-clear drush
NewerOlder