Big mess with databases on my local OSX server - mysql

I run mavericks and today i wanted to try and setup Sierra on another partition
I setup apache,mysql,phpmyadmin etc and i thought would be nice idea to use the mysql/data folder of my main mavericks so i can try the server on the Sierra partition by using my databases from Mavericks..
There were some issues related to pid so i thought ok that's enough and i restarted to Mavericks as normal.
From this point start my nightmare.. i had the common error ERROR! MySQL server PID file could not be found! etc.
I decided to update mysql version and the problems still continue, i manage to fix only by delete the _ibdata1 only then mysql started with "success"
But i cannot use the databases now, they are corrupted although i can see them as normal in phpmyadmin (not normal now that i check , the tables are empty)
I have all the old data folder in a backup as before, is there any magic way to bring everything back to normal?
Apart of the pid thing i did not delete anything else , so everything should be there.
The _ibdata1 is about 10GB cause i have a lot of databases (most of them i do not need to be honest.
Please advise

Related

MySQL 8.0 Deployment with Data Seperate

I have been running MySQL 5.X for several years. Just come to a new server and downloaded V8.0.11.0. I installed it and it asked me no questions about where to keep the data, it has put it all on the C: drive. I want to keep it separate to make backup easier. How do I make the data location move to another disk?
What I have tried:
The old 5.7 method of stopping the server, moving the files, updating
my.ini and restarting. You can't move the files (Access denied) and
the server doesn't start if you change the my.ini file.
mysqld --initialise --datadir="F:\MySQL\Data" (tried forward slashes and double slashes as well)
I can't find any documentation! It's a pretty basic requirement so I'm guessing it must be documented!
OK, I uninstalled MySQL and then ran the installer again. The first question is where do you want to put things! I take it all back, apologies for missing it!

LAMPP Error #1932 after update: Tables don't exist

I recently updated my Ubuntu server, and now all the tables in my database are telling me they don't exist.
I had some issues with phpMyAdmin after restarting the machine, so I reinstalled it and eventually got it working again. I can see the database and it lists all of the tables, but as soon as I click on any it says "Table xxx.xxxx doesn't exist in engine". I can see the files are still there in nautilus.
I have done a lot of research and I see some general information about rebuilding the tables, but I don't usually do anything in a LAMPP environment and I can't lose any of this data, so I've been wary about running some of the commands (especially the ones that include DROP).
I am running XAMPP for Linux 5.6.23 and phpMyAdmin 4.5.2 on ubuntu 16.04
I did end up solving this eventually. I used https://recovery.twindb.com/ to recover the frm files and rebuilt the database tables one at a time using the MySQL CLI. I removed and reinstalled XAMPP and phpMyAdmin and finally got it all working after dumping and then importing.

MYSQL hopelessly corrupted?

I am using xampp stack to create a website but recently had to upgrade my OS and xampp stopped working.
MySql server would not launch in the new OS. I looked around here for solutions and found a lot that said I should delete the Ibdata file.
I did and it solved my initial problem but now MYSQL is close to useless. Every database is giving an error and trying to create a new one just keeps on loading forever.
Is there any way to fix this? to reset MYSQL to initial state or something? I dont need to recover the databases as they were only tests I just need to be able to create new ones but nothing works anymore.

MySql not working in Wamp

Last week my WAMP not working properly when I start it, it goes yellow.. and local host working fine but when I go though phpmyadmin its not working...
After that I try to go on mysql data folder in wamp and delete following files
ib_logfile0
ib_logfile1
ibdata1
And the restart all service it working and goes green but my all database not working.. daily I do that for starting the service and import all the database daily for working
please suggest me the solution of this....
if you are using the wampserver 2.5 uninstall it and
try to follow the instruction on the video (click here) better to understand and follow the instruction carefully
still got error's? I suggest use wampserver 2.2 because wampserver 2.5 has lots of bugs and errors
HOPE it helps you.
You deleted the files that MySQL uses to store the database -- of course your databases aren't going to work. I suggest you restore your databases from a backup. There's no way around it; as long as you are deleting the database files, you're going to have trouble using the database.
About the problems logging in through phpMyAdmin, you can search here for the actual error message or open another question and perhaps get that problem resolved as well.

homebrew: MySQL not starting, Can't update PID file

I am a new Mac user and trying to set up the development environment with Apache, PHP and MySQL. Initially, after a lot of installs and reinstalls i succeeded in installing MySQL (Apache and PHP came bundled with Mac) but now again mysql refuses to start up and gives the error, The server quit without updating PID file (/usr/local/var/mysql/Nikhils-MacBook-Pro.local.pid).
I have literally gone through entire SO questions regarding this problem but have not found a way to fix this and i mean i have done everything to start this but in vain. I have created the PID file too but it disappears in moments, i did a cleanup and reinstall using this SO Question but it has failed YET again. Please, i need to get my server started, i am really losing on to serious work and time.
Is there any other miraculous way to fix this unattainable feat? Also, if anyone asks what is the error in the log files, please don't as there is no log being registered as the server hasn't started yet.
I’ve got a similar problem with MySQL on a Mac (Mac Os X Could not startup MySQL Server. Reason: 255 and “ERROR! The server quit without updating PID file”) and after a long trial and error process, finally in order to restore the file permissions, I’ve just do that:
launch the Disk Utilities.app
choose my drive on the left panel
click on the “Repair disk permissions” button
This did the trick for me. Hoping this can help someone else.
brew install mysql on mac os
These instructions helped me. There was a my.cnf in /usr/local/opt/mysql/ which seems to have been the problem for me. YMMV.