A little different than ordinary case of MySQL and xampp - mysql

I've been struggling with this problem for quite some time, I downloaded
'MySQL server' and 'workbench' and installed them, later I downloaded xampp and now there is a problem that xampp comes with its own mysql and is not able to trace my already installed version, So I want to give xampp the path to my already installed MySQL. I tried installing xampp with its own mysql but there was a conflict for ports between the two - sql(that came with xampp) and my MySQL.

Related

MySQL installer only installs the Workbench, not the server

I have successfully downloaded the workbench and it works fine, however, in my C:/ProgramFiles/MySQL folder, only the workbench is there, and not the server itself. I can't add MySQL to my PATH, nor can I run any local server.
I downloaded it from https://dev.mysql.com/downloads/installer/, and I chose the 420.6M version for Windows, and ran it normally. Is it actually installed?
Uninstalled MySQL workbench and re ran the installer and it worked. The reason why, I'm guessing, is because I installed only the workbench awhile ago. When the new installer saw I had the workbench installed, it just stopped checking to install other products like MySQL server.

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 connect XAMPP to existing MySQL

I have just installed XAMPP, but in the installation process I unticked MySQL because I already have a previous version on my computer. A couple of months ago I installed MySQL with Workbench and I've been using it, and I want to keep all the databases I have. So, please as simple as possible, given that the service MySQL is currently completely disabled in the XAMPP control panel as I didn't install it with the installer and I can't either start it or stop it (the service), how can I connect the MySQL I already have to XAMPP, so it recognizes it and I can start it from the panel?

Cannot run XAMPP MySQL module with a MySQL server already installed?

I need to use both the XAMPP MySQL module and a seperate MySQL server for personal reasons. I run Windows 7 64-bit and I use MySQL 5.7.16 and XAMPP v5.6.24.
I have tried changing the port that the XAMPP MySQL module uses in the XAMPP control panel configurations, in the my.ini file, in the php.ini file, and in the config.inc.php file. When I click "Start" for the MySQL module in the XAMPP control panel, I get a message that says "[mysql] Attempting to start MySQL service..." but it never gets beyond that. It doesn't even give me an error message.
For now, I have to uninstall the MySQL server and wipe it completely from my computer every time I want to use the XAMPP module. This is proving to be a pretty daunting task, though. Any suggestions would be appreciated.

can i share the same mysql db between xampp and mamp (mac amp)?

i'm doing some test with xampp and mamp (on macos x snow leopard), sometime i switch between them just to play around , the issue that each of them have their own db in separated location :
xampp in /Applications/XAMPP/xamppfiles/var/mysql/
mamp in /Applications/MAMP/db/mysql/
I don't want to deal with 2 separated mysql db data, i just want to have one , so i can share it to both xampp and mamp (not at the same time). I can update my db without worrying to update another db. Is this implementation is possible ? Does anyone know how to do it without any conflict ?
i'm using mac (so it's mamp), but this can be implemented on other system as well.
THanX
I did something like this on Linux. I needed to run two different versions of PHP but use one MySQL database. I had Apache/PHP installed in Linux as normal and I also installed XAMPP to run a different version of Apache/PHP.
Your setup is similar so the following should work so that both MAMP and XAMPP use the MAMP MySQL database.
I changed the PHP config in XAMPP to use my main MySQL db. Like so:
Locate the file php.ini in XAMPP (mine was in the the etc/ folder of XAMPP).
Open the file in a text editor of your choice and find the default socket it uses for MySQL.
Change this to use the socket
provided by MAMP.
mysql.default_socket = /path/to/mamp/mysqld/mysqld.sock
Save the file and restart Apache in XAMPP.
There is no need to start MySQL in XAMPP anymore as PHP should use the socket connection from MAMP.
XAMPP should now use the database from MAMP.
This should work :)
I thinks it should be possible. Give a try to following technique.
You can start XAMPP. Now Your Apache and PHP of XAMPP will work with mysql of XAMPP.
You can start XAMPP then stop Apache and PHP service of XAMPP. Then start MAMP. Stop mysql service of MAMP. Now Yor Apache and PHP of MAMP will work with mysql of XAMPP.