Reinstall drupal after deleting database, install.php says already installed - mysql

I'm trying to get Drupal 7.28 installed on Ubuntu and have run into this very common but not so easily fixed issue of the WSOD during configuration due to the database not being properly set up on an earlier step (only 31 tables created). https://www.drupal.org/node/481758
Many people have fixed this issue by dropping the database and recreating it, which I've tried, but when I try to run /install.php again it insists that it is already installed and I must empty the database if I want to reinstall.
So I tried deleting the database and NOT recreating it but the installer still says it is already installed and I have to empty the database WHICH DOES NOT EXIST if I want to reinstall.
What do I need to do to get the install script to run again?

Ahh. I needed to go back to the default settings.php for the site, then it worked.
in /var/www/drupal/sites/mysite.com
mv settings.php old_settings.php
cp default.settings.php settings.php
Now going to mysite.com/install.php starts over at the beginning of the install.

Related

How to reset MySQL Installer to a default start

This question may have many forms, but for me I want the wizard to display the default installer menu as the first time you install MySQL
My installer keeps showing this menu, instead of this which is shown in the tutorial videos I see
One issue to address is that I have tried to install MySQL once before and for some reason I was just stuck in the middle of installation and didn't get to end it. Therefore it may seem that this caused the issue I am currently experiencing
To try solve the problem I tried to uninstall it on the Programs and Features there are two programs the MySQL Installer - Community and the My SQL Connector Net 8.0.19.
I can easily uninstall the MySQL Installer - Community but the Connecter doesn't seem to be uninstalled. I also tried to delete the remaining files that may be left on the computer
Also, I have not found these folders,
C:\Program Files\MySQL
C:\Program Files (x86)\MySQL
C:\ProgramData\MySQL
C:\Users[User-Name]\AppData\Roaming\MySQL
I may have deleted them also before, I have seen in another forum to try to delete these folders, but no luck.
I hope there will be a solution for this or even an alternative so that I can use MySQL.
Check if you have residual files on "Program Files" or the instalation folder, i had a similar problem and i fixed it this way

How can I delete mySQL to start fresh? (OSX)

Whenever I use:
cat /etc/my.cnf
it looks like this:
As you can see it comes out blank. On top of this I tried to reset my password and I went and screwed everything up. NOW I Just want to restart from scratch. I don't need to save anything I have no database info that I am worried about losing I am just trying to get mySQL working.
TL;DR:
I just want to reset everything/delete all things to do with mySQL to get a fresh start. I have tried all of the rm commands and reinstalling it but that didn't even work. I don't have anything that I need to save or back up.
If you installed it from the MySQL Community Server everything should be in something like /usr/local/mysql-5.7.13-osx10.10-x86_64/. The exact directory name depends on your version of MySQL and OS X.
Delete that directory and reinstall the package. That should reset everything.
Alternatively you have multiple copies of MySQL installed and they're confusing each other. Check with which mysqladmin. If it points to somewhere other than inside /usr/local/mysql-5.7.13-osx10.10-x86_64/ then you have another version installed.

Phpmyadmin shows "No tables found in database." but tables still exist on the left sidebar?

I'm having a very weird problem right now, I reinstalled Wamp server (same version, same folder, everything is the same). But after I reinstalled it, my database got damaged. It shows that I don't have tables in my database even though the tables still show when I open my database on the left sidebar. Trying to exporting and importing the database only creates an empty database. I sadly didn't create a backup because I reinstalled wamp multiple times before without it damaging any fields or databases.
Here's a screenshot (My database's name is asd) :
http://i.imgur.com/5PKKXgK.png
Is there any way to repair this database ?
The last time I had that, I had to change ownership. This is how I did it in Linux.
chown -R mysql:mysql /var/lib/mysql/
In windows you can right-click the mysql database folder, in you case
C:\wamp\bin\mysql\mysql5.6.17\data\asd
And then go to Security Make sure all permissions are OK.
Then you can go to Advanced > Owner and make sure ownership,
I just had this problem, and all I had to do was restart the database.

Manually placing MySQL database files in the data folder - WAMP - XAMPP

I recently switched from using XAMPP to WAMP on my Windows 7 machine so I can do fast switching of PHP versions.
I completely uninstalled XAMPP, but first I backed up my htdocs, apache and mysql directories just in case.
After I installed WAMP and had everything up and running, I figured I could just drop some of my databases from my old XAMPP install into the "data" directory of the mysql directory in WAMP.
So that worked and the database shows up in phpMyadmin, but there are no tables. Is this a permissions thing? Like maybe I don't have the same user in the new install of mysql? Or am I missing something?
Am I allowed to just copy MySQL databases from one data folder to another or does it not work that way?
Both instances are using MySQL 5.5 (at least that's what both README files say in both MySQL directories).
THANKS
When using phpMyAdmin out of the box so to speak in WAMP, MYSQL is installed as per its default installation with the root userid setup to have NO PASSWORD.
Some people seem to think they should make one up when they see the login screen, is that what you are doing?
When you do this phpmyadmin allows you to APPEAR to login but then as you do not have root's privilages you see almost nothing on its other screens and are allowed to do nothing.
Use
username = root
password = (leave this blank)
Then set a password, there is a link on the next page it presents. AND DONT FORGET IT!!!!
This generally isn't a good idea. RiggsFolly was asking about your table type because some table types are more forgiving than others. Other possible trouble spots include file system permission problems or MySQL permission problems (as RiggsFolly asked).
I'd suggest to do an export (as an SQL file) and import that for a complete solution.

How to to fix XAMPP after deleting too many MySQL databases?

I've been stupid enough to delete too many databases in XAMPP with PHPMyAdmin and now my sites on localhost don't run properly anymore. Please see this screenshot of the main errors
I guess entirely reinstalling XAMPP will fix the problem but that might take much more time than necessary. Preferably, I'd like to just reinstall the MySQL component or perhaps recreate/repair some databases required for XAMPP to function properly. However, it looks as if I can only reinstall XAMPP entirely instead of separate components (and if that's correct, it's probably for a reason...).
Do I have a better option here than a complete reinstall of XAMPP?
OK, fixed it with the kind help of scones.
1) By default (XAMPP 1.8.1 on Windows XP), there seems to be a folder C:\xampp\mysql\backup\phpmyadmin. Just copy-paste this entire folder into C:\xampp\mysql\data.
2) Stop and restart MySQL
3) If you're using WordPress, your pages may be blank since it may think there are no themes available. Go to [frontpage url]/wp-admin/. Now just reactivate the theme you'd like to use and all seems up and running again!
You dropped the database for PHPMyAdmin. If you can just restore that (with a command line mysql tool or any tool that does not rely on a web-interface), you can use phpmyadmin again.