Cannot get Xampp to access existing MySQL

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Cannot get Xampp to access existing MySQL

Postby pzh20 » 23. September 2022 16:55

I've had MySQL running on my machine for many years, and used to use ISS for local development, especially when developing in .ASP
Now I only develop in PHP so have moved to Xampp. However, I want it to connect to my existing MySQL install and have spent days trying to get it to work.

Doesn't matter what I do, I cannot get the Xampp control panel to recognise that MySQL is already running. It seems to be trying to start MySQL from it's directory as follows

"10:13:45 [mysql] Attempting to start MySQL app...
10:13:45 [mysql] Executing ""c:\xampp\mysql\bin\mysqld.exe" --defaults-file="c:\xampp\mysql\bin\my.ini" --standalone"
10:13:45 [mysql] Return code: 0
"
If I open localhost, and phpmyadmin, it accesses MySQL fine
I'm trying to use the Bitnami wordpress install, but it fails with "The installer was not able to connect to the MySQL server. Check it is running"

Any ideas I might not have tried, excluding, changing the port, done it, stopping and starting the services manually, done it etc etc.
pzh20
 
Posts: 2
Joined: 23. September 2022 16:41
XAMPP version: 3.3.0
Operating System: Windows 10 Pro

Re: Cannot get Xampp to access existing MySQL

Postby Nobbie » 23. September 2022 19:21

pzh20 wrote:Doesn't matter what I do, I cannot get the Xampp control panel to recognise that MySQL is already running.


Yes, of course NOT.

Do NOT(!) start Xampps MySQL, if you already have another MySQL installation. Simply start your existing MySQL installation and Xampps Apache. The MySQL Server is connected via TCPIP (Port 3306). Anyway, do not use the Bitnami WordPress installer. Instead download the normal WordPress package from WordPress and run the installation procedure as documented. Your servername is "localhost".
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Cannot get Xampp to access existing MySQL

Postby pzh20 » 25. September 2022 09:50

ok, thanks
pzh20
 
Posts: 2
Joined: 23. September 2022 16:41
XAMPP version: 3.3.0
Operating System: Windows 10 Pro


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 205 guests