Not start mysql in xampp 7.4 - php

I have a problem with xampp.. I tried many things but it does not work.

You have already installed MySQL server. You have the mysql server started already and it occupies the 3306 port, so xampp cant use it.
Try:
Stopping the mysql server located at C:\Program Files\MySQL\MySQL Server 5.1\
Uninstall the MySQL server if its not needed
Change port of the MySQL server

Related

PHP with NGINX can't connect to MySQL on Mac

I'm having some difficulty setting up Nginx with PHP and MYSQL on mac, where I cannot make any connection to the database. If I spawn a server using php -S, I can connect without problem. However Nginx running on port 8080 is unable to connect at all.
I've installed (and now uninstalled) php with brew, which might be an issue because it looks like PHP comes installed on mac. Running php -v shows me running on 7.1.16, but the brew installed version was 7.2+. I have PHP-FPM running on localhost:9000.
I've checked my php.ini files, but I only see extensions for mysqli and pdo_mysql, which I've tried to enable but still no luck.
Thanks for any help.

Wrong Path of Mysql in Xampp

I am using Mysql for long time via xampp software and it is working fine. Now i installed Mysql software, While configuring Mysql software i give port 3307, to run it independently from Mysql in Xampp which is using 3306. But it is not working , I got following error when i run xampp I got screen with following error saying
MySQL Service detected with wrong path
Change XAMPP MySQL and Control Panel settings or
Uninstall/disable the other service manually first
Found Path: "C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld" --defaults- file="C:\Program Files\MySQL\MySQL Server 5.1\my.ini" MySQL
Expected Path: c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
Simple if you using windows Go to Administrative cmd and type the following command
sc delete MySQL
Try with windows command prompt with administrative mode
sc delete MySQL .
from above commands

phpmyadmin in xampp not working on windows 10

I'm getting below error when I type in localhost/phpMyAdmin after starting apache and mysql server in Xampp in Windows 10.
Is there a way I can fix this issue?
MySQL said: Documentation
#2002 - No connection could be made because the target machine actively refused it.
The server is not responding (or the local server's socket is not correctly configured).
Connection for controluser as defined in your configuration failed.
If you are using the Bitnami version of Xampp you will have issues with Windows 10. Download and install an older version from sourceforge.net and it should work. I used version 1.7.3 and so far so good.
http://sourceforge.net/projects/xampp/files/XAMPP%20Windows/
I had the same problem but fixed it by replacing localhost with 127.0.0.1 in the config.inc.php file.
My problem was probably because i had installed bitnami and then later installed xampp. I deleted bitnami, xampp and my temp folder C:\Users\Default\AppData\Local\Temp. It worked fine after reinstalation. thats the only way it worked for me

WAMP is not starting completely

I have latest version of wamp i.e WAMPSERVER (64 bit & PHP 5.5) 2.5 installed. It's not starting completely, not turning to green and so MySQL is not starting even though the port is used by Apache itself.
I have also installed Visual Studio 2012 VC 11 vcredist_x64/86.exe for my Windows 8.1 64bit OS.
Very weird, all the paths are configured in paths and also extensions enabled.
Below image specifies the sufficient ports in use:
#RiggsFolly - Thanks for the neat explanation. As per your questionnaires, I wanted to confirm that I have just installed 64 bit Wamp version and not 32bit. But installed Visual Studio 2012 VC 11 vcredist_x64 and x86 thinking.
FYI: As I had stated earlier in my question I have installed MySQL_Workbench in my system. But i have disabled its services to run on startup. May I know is that causing problem?
Please find the image of errors as per the MySQL Errors logs
And please find this for windows application MySQL error logs
My last question is: can't we have both MySQL_Workbench & Wamp together?
after you installed vcredist_x64/86.exe ,
you need to reinstall the wampserver. because the instalation of mysql services are not completed without vcredist_x64/86.exe and runtime
Your first image, I assume is the result of running
wampmanager -> Apache -> Test port 80
This tests the port that Apache should be using i.e. port 80. It should report
Your port 80 is not actually used.
But only if you have not started Apache!!! If you have started the Apache service in WAMPServer, it will of course report that port 80 is being used by Apache 2.4.9 etc etc...
This looks like what you have done! So its not a problem.
One thing though You say you installed WAMPServer 64bit, but the image reports that Apache 32bit is running ??? What do you really have installed ??? Or do you have both 32bit and 64bit WAMPServer installed?
If you have installed both 32bit and 64bit I suggest that you pick one or the other. I suggest the 32bit WAMPServer as the 64bit PHP is still not a complete port and considered Experimental until PHP7.
Now you appear to be saying already that the reason the wampmanager icon is not green is that MySQL has not started, so all the above is irrelevant. MYSQL runs on port 3306 and not 80, only one program can use a port, they cannot share ports.
So to see why MySQL has not started, look at the MySQL error log.
wampmanager -> MYSQL -> Error log
If that is empty, as it is sometimes if the error is so serious that MYSQL has not had time to open its log file before the error causes it to terminate, look at the Windows Event Log
To launch Windows Event Viewer do :
Windows Key + R to launch the run dialog
then enter eventvwr.exe and press the OK button
On the left side of the windows click 'Windows Logs -> Applications'
Look for the names 'Apache Service' or 'MySQL' in the Source column which have a error symbol in the first column.
The error messages in here are normally very descriptive and will normally lead you to a speciic line number in the my.ini file where the error exists. Alternatively, they will idedntify what the issue is.
Reply to additional info
Your MySQL error log is basically saying that it cannot start MYSQL as something is already listening on port 3306 (3306 is the default MYSQL port). Almost definitely the MySQL Server that you installed with the Workbench.
I see the installer for "MYSQL Workbench" has changed since I installed "MYSQL Workbench". I expect you chose to install MYSQL Workbench and a MySQL Server. As you have MYSQL Server installed with WAMPServer, can I suggest that you uninstall "MYSQL Workbench" or at least the "MYSQL Server" that came with workbench. This should stop the other MYSQL Server from getting port 3306 before the MYSQL Server installed with WAMPServer.
Remember to backup any databases that you may have created before uninstalling.
You can then install "MYSQL Workbench" again after WAMPServer starts working and this time dont install another instance of MYSQL Server.

why php win32 on windows7 64 cannot connect to mysql 32 or 64 installed on the same machine?

I've installed Apache 2.2 and PHP 32bit on a Windows 7 64bit.
I configured properly PHP to run as a module and works like a charm.
Then I've installed MySQL Server 5.1 64bit.
After activating mysql or mysqli, php runs as expected but when I connect to localhost with the browser, the php script cannot connect to the database using mysql_connetc() and it generate a timeout error.
Running phpinfo() it says that the mysql modules are running with no errors.
I've tried to uninistall mysql server win64 and reinstall the same version but for win32.
The same happens.
Googling around I found this post on the mysql forum
http://forums.mysql.com/read.php?11,366955,366962#msg-366962
http://forums.mysql.com/read.php?11,366955,378099#msg-378099
Basically if you do not set in the host file that localhost is 127.0.0.1 windows 7 uses IPV6 address by default for localhost resulting in a connection error.
Adding this to the host file solve the problem:
127.0.0.1 localhost
Have you added appropriate firewall exceptions? can you connect to mysql using the command-line tool or similar?

Categories