XAMPP with MySQL instead of MariaDB? - mysql

Basically I want to know where I can find a distribution of XAMPP that uses good ol' MySQL instead of MariaDB. I have a Drupal site that runs fine on MySQL 5.5.16, but when I run it on MySQL 10.1.0-MariaDB (which was what the newer XAMPP I downloaded came with), I can't clear the caches without it corrupting the database. I know MariaDB is supposedly the same as MySQL, but this error is happening with one and not the other, and nothing else is different. Where can I get that distribution?

I am presuming you are using Windows.
According to WikiPedia, MySQL 5.5.16 came installed with XAMPP 1.7.7 and the last version of XAMPP to come with MySQL (5.6.26) was XAMPP 5.6.12. (Source)
You can find all the older versions of XAMPP on Sourceforge.

Related

Xampp connects to MariaDB instead of mysql (KNP/SymfonyCasts tutorial "how to speak database")

I am following tutorial from KNP/SymfonyCasts and I have problem with connecting to mysql.
That's what tutor write in her terminal
And that is my output
I assume this matter so... How can I change this? They do not cover issue, just mention that if blank password doesn't work, I should use "root".
MariaDB comes with XAMPP.
Since you installed XAMPP and are using it, obviously it will connect to its MariaDB installation. MariaDB is Mysql.
Don't install the MySQL that comes bundled with XAMPP or just change the config and point it to your other MySQL installation if you have one (a community server, for example)
Or just use the MariaDB(Mysql) from XAMPP.

How to solve MySQL error which occurs while loading image

When I am opening a local connection in MySQL, an error occurring while loading image search_sidebar.png.How can I solve this problem in MySQL? I have attached a screenshot of error showing
I am using MySQL Server 5.7 and MySQL Workbench 6.3 version 6.3.8
To repair without completely re-installing MySQL:
ON Windows 10
Go to Control Panel
Uninstall a Program
Find MySQL (In My Case MySQL Workbench 8.0 CE)
Right Click and select "Repair"
Once installation is complete, please restart MySQL Workbench 8.0 CE
Hopefully this resolves the issue for you.
Fixed by reinstalling and choosing Repair option.
Background
Previously, i upgraded MySQL Workbench from earlier edition to latest version 6.3.10. It worked fine for many days but one fine day after Windows restart it started showing Error while loading image popup. I tried several times closing and starting MySQL Workbench but same popup appears each time.
Solution
I downloaded fresh copy of MySQL Workbench from https://dev.mysql.com/downloads/file/?id=474210 and chose Repair option during installation. My databases and everything else is intact and working as before. Additionally, it resolved popup issue.
Note
There is no need to remove MySQL Workbench, just choosing Repair option during install worked for me.
I have removed Workbench from MySql Installer and Reinstall version 6.3.7
Now working...

Is a migration from MySQL 5.5 to MariaDB 10 on cPanel possible?

I currently host around 400 websites and would like to migrate from MySQL 5.5 to MariaDB 10. The server is running WHM/cPanel 11.58 (CloudLinux).
I see the option to change the installation but, before I go ahead and do it, I would like to know whether it's a "straightforward" process. I am struggling to find any information online that is clear cut and explains whether MySQL databases/tables are compatible 100% with MariaDB.
Yes, it's possible to upgrade it but I will suggest you first upgrade your mysql version to 5.6 and then upgrade it to MariaDB, Also before upgrading your mysql verison I will suggest you please take backup of your all databases in .sql format.

MySQL Workbench incompatible/nonstandard server

I am new to using MySQL and I needed to download it for school, however, I keep getting this error message (picture below). I am using xampp and connecting using the username root. the port also matches what it is telling me. It will let me proceed but a lot of the features are missing. Any help at all would be appreciated.
Incompatible/nonstandard server version or connection protocol
detected (10.0.10).
A connection to this database can be established but some MySQL
Workbench features may not work properly since the database is not
fully compatible with the supported versions of MySQL.
MySQL Workbench is developed and tested for MySQL Server versions 5.1,
5.5, 5.6 and 5.7
As I can see, You are using latest XAMPP.
All you need to do is, after opening MySQL Workbench, and instead of setting up a new connection, Press CTRL+R or click on DATABASE tab in the top menu. Select Reverse Engineer and provide necessary information. You are good to go now.
The MySql workbench wont crash or show any compatibility issue now.
The current version of XAMPP uses MariaDB instead of MySQL.
Because MySQL Workbench is designed to work with MySQL and not with the very similar drop in replacement MariaDB, you are gonna have problems ...
So, if you want to use MySQL Workbench with XAMPP then a solution would be to try installing the last version of XAMPP that uses MySQL. That version is probably 1.8.3 from (August of 2014?). You can download it here:
XAMPP Sourceforge old versions
If you are using the latest XAMPP that uses MariaDB, in that case in your MySQL Workbench don't use 'Connect to Database' instead use 'Reverse Engineer' and provide the necessary credentials. That's all, No hassle.
I encounter the same message followed by a crash of MySQL Workbench, with version 6.3.7 (build 1199).
I didn't find a solution, but here is a work-around:
Once you press the button Continue anyway, just open a database use toto, and then wait a bit (a minute is enough in my case), and then you can call a query without a crash. I found this trick here.
I experimented the same with WAMP 3.2.0.
MariaDB was configured to listen to port 3306 (the usal MySQL port) and MySQL 8 was listening on port 3308. If you are in this case, don't be fooled by the fact you have 2 DBs.
To solve this, you have to choose the DB you want. I wanted MySQL and I just ask MySQLWorkBench to open a connection on port 3308 to MySQL.
You can ditch MySQL Workbench, and use the browser made for the MariaDB, they have a free version here: https://www.upscene.com/downloads/dbw
It's limited in its abilities, but I had no troubles connecting and browsing.
I had the similar problem because i was using Denwer at the same time.
To solve the problem:
Stop Denwer
Restart MySQL server
Profit! Now you can open your database in the Workbench
The idea is that denwer was starting its local server which didnt allow MySQL to start normally.
If you want to use denwer at the same time wth MySQL you can just start it after MySQL (Point 4).
In my case I already had MySql server and workbench installed and setup prior to my XAMPP installation. I wanted to continue with my existing setup.
I also installed MySql server with my XAMPP. I started mysql inside XAMPP and when I connected to MySql Workbench, I encountered the same error. Because Workbench was trying to connect with the server which was installed with XAMPP, apparently this was incompatible.
So I stopped mysql in XAMPP and started started mysql server manually(the previous setup and installed server).
Refer this to know how to start mysql manually in windows.
You can also config XAMPP to use your existing SqlServer.
So I had the same problem. For me none of the methods worked, but then I found out that my MariaDB was occupying the same port, so I uninstalled it and that solved the problem.
i had same issue, i changed the mysql server port from 3306 to 3308 in XAMPP config file.
[mysqld]
port=3308

Setup MySQL workbench with Xampp in Windows 8

I'm trying to get back into PHP and MySQL development since i've found out that MySQL now allows stored procedures. I work with these at work on an Oracle database and use PL/SQL developer to create them. I was looking for a similar sort of interface for MySQL and was pointed in the direction of MySQL workbench. I'm using Xampp as my test server setup and would like to link MySQL Workbench to MySQL on this server however I'm stuck at one of the stages in the installation. I'm trying to create a new server instance and have been successful as far as testing the database connection however on the next page it asks me to set the 'windows configuration parameters' for this machine and failes to discover a MySQL service. I have ensured that both the Apache server and MySQL services are running in Xampp but do not understand why a MySQL service cannot be found and is not being displayed. Has anyone else encountered this issue when trying to use MySQL Workbench and if so, how did you amanage to get it up and running? I'm using Windows 8 and don't know if this is the reason a service isn't being found. I apologise if this is a really simple question with a simple answer however I have only ever used PHPMyAdmin before which is relatively simple to setup.
I have found problems with the packaged *AMP systems. They don't always install things the way other applications expect. e.g. The MAMP system doesn't work well with Python. it's quite easy to install each of Apache, PHP and MySql on Windows (and two of them are already on the Mac and Linux)
If you use the standard MySql install you should have no trouble installing the Workbench, I've done it on both Windows and Mac.
I have found it a bit flakey at times, it won't connect to older server versions and tends to crash when running long scripts. It also doesn't have a great UI for queries, A good program like PLSQL Developer to TOAD would be nice.
The service detection is rather simple. It expects that the service contains "MySQL" in its name. This is planned to be improved later. For now rename your service to something like "MySQL Xampp".