How to upgrade MariaDB within Xampp - mysql

I want to upgrade to MariaDB 10.2 and I'm using xampp ( I like that mysqld.exe runs in the background and easy On/Off with a single click ). What happens is that the latest version as of now is 3.2.2 and it has MariaDB 10.1.29 comes with it.
I'm looking for a general healthy way to do it.
I've tried those steps that pretty much look good :
Unzipping/installing the new MariaDB then copying the data directory and the config|bat files + phpMyAdmin from the old to the new installation.
After starting for an instant, it shuts down complaining :
13:44:33 [main] Control Panel Ready
13:52:46 [mysql] Attempting to start MySQL app...
13:52:46 [mysql] Status change detected: running
13:52:49 [mysql] Status change detected: stopped
13:52:49 [mysql] Error: MySQL shutdown unexpectedly.
13:52:49 [mysql] This may be due to a blocked port, missing dependencies,
13:52:49 [mysql] improper privileges, a crash, or a shutdown by another method.
13:52:49 [mysql] Press the Logs button to view error logs and check
13:52:49 [mysql] the Windows Event Viewer for more clues
13:52:49 [mysql] If you need more help, copy and post this
13:52:49 [mysql] entire log window on the forums
Notes:
I'm not gonna try some random deletes that are very likely to
make my db tables corrupt (even though I did before and it didn't
work)
Please take notice that if I run the server itself using an unprivileged user
(not administrator) on the command line, it runs as expected.
Furthermore, the status in the Xampp control panel would change to green :
14:00:35 [mysql] Status change detected: running
And I could even shut down the MySQL server from it, by clicking on stop.
If I run Xampp as administrator (which could be a bad idea), I get the same error message above.
Please note also that running MySQL server as an administrator involves security risks.
I know I can run it as a service, but I'd rather like to have instant control over when to turn it On/Off.
The purpose :
Looking for a clean way to upgrade MariaDB within xampp, on windows (Windows7)

I had the exact same issue, how I resolved it was:
Re-installed MariaDB to the x32 version because I installed the x64 first
Copied "my-huge.ini" from "C:\xampp\mysql" to "C:\xampp\mysql\bin\my.ini"
Now everything works as expected, start/stop everything is smooth. I guess there is some specific setting that is not quite correct on the old "my.ini" from XAMMP.
Of course, all this was done after I did these steps:
Be sure all modules are stopped from the XAMPP Control Panel
Downloaded an installer of the latest stable version of MariaDB
Renamed "C:\xampp\mysql" to "C:\xampp\mysql_old"
Installed the downloaded MariaDB to "C:\xampp\mysql"
Copied the following directories to maintain my databases:
C:\xampp\mysql\data
C:\xampp\mysql\scripts
C:\xampp\mysql\share
Run Apache and MySQL module from the XAMPP Control Panel, and done.

For me, I would create dumps of existing databases and uninstall current xampp installation then download newest version of xampp which will of course contain a newer version of mariadb

Related

How to get MySql data from files without phpMyAdmin

My MySql was not working for 2 hours in xampp.
My logs are
01:37:11 [mysql] Error: MySQL shutdown unexpectedly.
01:37:11 [mysql] This may be due to a blocked port, missing dependencies,
01:37:11 [mysql] improper privileges, a crash, or a shutdown by another method.
01:37:11 [mysql] Press the Logs button to view error logs and check
01:37:11 [mysql] the Windows Event Viewer for more clues
01:37:11 [mysql] If you need more help, copy and post this
01:37:11 [mysql] entire log window on the forums
I have tried almost everything and nothing is working for me and I think I have also made my xampp settings even worse.
So now I will delete xampp and install again.
But wait, my databases are very important.
So is there by which I reinstall xampp and also I have all the databases I need.
I can't start MySql
I can't access phpMyAdmin
So how can I save my data from files?
Good luck trying "open your SQL files" (whatever those are).
The answers as to why MySQL is not running are in your log files.
Yes, you can back up the data files and restore them into a new installation.
We can't tell you where those files are - it depends on how you installed MySQL. This might be defined in C:\Windows\my.ini (you're looking for files named .ibd and .frm).
Make sure the MySQL service is stopped. Move the directory containing these file out of the way, then remove and reinstall MySQL. After that stop the (newly installed MySQL service) edit C:\Windows\my.ini to set the datadir to the ,oved files, and start mysql.
You should open your sql files and look at the data, if it looks fine you can copy your backup folder into a recovery disk like F and reinstall it than copy the backup into your new data and replace new data with your backup you just copied, if the data is corrupt, well you need to go and try: https://dev.mysql.com/doc/mysql-backup-excerpt/5.7/en/myisam-table-maintenance.html But the thing is if it does not work than most likely you need to force INNODB reboots......

mysqld.exe - application error on Laragon start

I just installed Laragon but when it wants to start its services, it "freezes" when mySQL have to be launched, then shows me that message :
mysqld.exe - Application Error
This application was unable to start correctly (0xc000007b). Click OK to close the application.
After that, Laragon's window writes "initialize data..." then does not change until I stop all services.
I wanted to check the log files but... zero log. So impossible to have some details...
I've tried to uninstall and reinstall.
I've tried another version of mySQL.
None of them works. WAMP is also installed on my computer, but I don't really want to uninstall it (and I don't think that's problem since I have both at work).
I think MySQL 5.7 is not compatible with your OS.
You can try two options:
Copy your MySQL in WAMP to laragon\bin\mysql\
Use MariaDB

XAMPP Mysql won't start

I've been using XAMPP for a couple of months and suddenly I'm getting an error in XAMPP that I haven't been able to find a solution.
12:07:28 [mysql] Problem detected: MySQL Not Found!
12:07:28 [mysql] Disabling MySQL buttons
12:07:28 [mysql] Run this program from your XAMPP root directory!
This is the error I'm getting from the XAMPP control panel.
When I go to the XAMPP root directory and try to run the mysql_start.bat file it says
mysql\bin\mysqld is not recognized as an internal or external command operable program or batch file
I'm not sure what to do from here to get everything working again.
You have not specified the OS in which you are working. Most possible solution is to install the xampp application as admin and disable anti virus during the installation process. Also disable UAC if in windows. Run the application as administrator. This post is taken from a previously asked question on the same topic. You can find it here
apache and mysql start button are disabled in xampp control panel

XAMPP MySQL port 3306 keeps reseting itself

I am attempting to setup XAMPP on my PC, but I keep getting the famous:
17:07:22 [mysql] Problem detected!
17:07:22 [mysql] Port 3306 in use by "D:\mysql\bin\mysqld MySQL"!
17:07:22 [mysql] MySQL WILL NOT start without the configured ports free!
17:07:22 [mysql] You need to uninstall/disable/reconfigure the blocking application
17:07:22 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
17:07:22 [mysql] Attempting to start MySQL service...
I have had mysql already installed on PC for educational purposes, and not it seems to create this problem.
I have tried:
Renaming the ports in my.ini
Checking the netstat, finding the PID and disabling it in the task manager
Disabling the mySql in services
Ending its process in the task manager
In the last three options, mysql would always turn itself back on whenever I tried to start it. I mean it's logical, but every time with that damn error.
So, does anybody know a way to fix this error?
And if not, anybody know a different soft to get me a localhost without many problems?
Try the running the installator again.
When using WAMP, whenever some weird/random configuration failed, usually running the installer with administrative rights fixed the issue.
However, on XAMP, some details may differ.
Check for the following service: xampmysqld64 kill that service. then restart your WAMP
There is a very good tutorial by Rachel Andrew who recommends installing PuPHPet, VirtualBox and Vagrant to solve your development environment woes:
https://rachelandrew.co.uk/presentations/deploy/puphpet

Xampp Mysql wont start

I have read all the posts about this none fix it? please help ive even tryed re-installing my computer and reinstalling xampp
Errors:
00:33:43 [mysql] Problem detected!
00:33:43 [mysql] Port 3306 in use by ""C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="C:\Program Files (x86)\MySQL\MySQL Server 5.1\my.ini" MySQL"!
00:33:43 [mysql] MySQL WILL NOT start without the configured ports free!
00:33:43 [mysql] You need to uninstall/disable/reconfigure the blocking application
00:33:43 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
00:33:43 [mysql] Attempting to start MySQL service...
Then i get a user account control to allow changes when i try to start mysql? something to do with net.exe? in C:\Windows, im not sure of the rest of the directory
If i say no to the user account cocntrol then it says this
00:33:49 [mysql] There may be an error, return code: 1223 - The operation was cancelled by the user.
If i say yes nothing happens? Apparently its windows 5.1 erroring? but the directory doesnt even exist? i deleted it all from Program Files and Program Files (x86), Also uninstalled all mysql components? Any thoughts
I had the same problem. I was using standalone MySQl for Java, and then I install XAMPP even after uninstalling stand-alone MySQL, XAMPP MySQL wouldn't start.
The problem is even after uninstalling MySQL MySQL service is normally still in the registry. The solution is to remove MySQL service from registry. The easiest way to do this, run XAMP-control in Administrator mode, and remove MySQL from service list and start MySQL again. That's it
Here is the way to know the program, use netstat -ao
You have the port and the associated pid.
Get the pid for 3306.
Then launch taskmgr
Show column pid (Menu > Select > Column selection > check PID)
You know the program which uses this 3306 port.
Kill it
Restart your XAMP
Then for not starting this "3306 port" program, launch services.msc.
It is certainly a MySQL, search for it and desactivate it at startup.
close Xampp server
go to C:\xampp\mysql\data
delete the ibdata1 file
restart xampp server
yes i already get this, the problem is that you already install MySQL as standalone version OR with VM i guess , and then you install xampp, the solution for that, is open process monitor, and close MySQL, MySQL Server 5.1 then you can start xampp and will work fine ^^
I just uninstall the register service using
sc delete MySQL
and restart my xmapp service; then it works OK.