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
Related
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
I am trying to upgrade my mysql in XAMPP.
PHP Version => 5.6.3
old mysql version => 5.6.21 Need to upgrade =>5.7.22(Which was only available to download in 5.7 series)
I followed these steps to upgrade:
Download latest MySQL but download the zip file not the MSI
Unzip the zip file to a location.
Shutdown Mysql process (no need to remove service) from XAMPP control panel.
Go to XAMPP folder, rename mysql folder to mysql_old
Copy the new unzipped mysql folder to XAMPP folder, in it delete the data folder.
Copy over the data folder from the mysql_old to the new mysql folder.
Copy over the my.ini file under mysql_old/bin to mysql/bin.
Copy over other ini and executable files from mysql_old root folder to mysql (XAMPP ini files, my-huge.ini, my-small.ini, etc..). in my case i copied my-default.ini
Run mysql process from XAMPP control panel. Should work. (You may need
to kill XAMPP first).-->Here I struck out and facing mysql shutdown error.
(OPTIONAL) Run mysql/bin/mysql_upgrade.exe -u USERNAME -p to update tables in the local databases that may have problems due to the version change.
I tried
1.change port as 3307,3306,8111 in my.ini file as others suggested.
2.Go to mysql/data/ directory
delete the ibdata1 & ib_logfile*(ib_logfile0,ib_logfile1,ib_logfile101) file
restart xampp server
mysql_error.log shows Following :
2018-05-04T06:31:04.062353Z 0 [Note] c:\mysql-upgradexampp\sm3\xampp\mysql\bin\mysqld.exe (mysqld 5.7.22) starting as process 9428 ...
I ran XAMPP Control Panel as Administrator,but still it shows
Error: MySQL shutdown unexpectedly.
[mysql] This may be due to a blocked port, missing dependencies,
[mysql] improper privileges, a crash, or a shutdown by another method.
[mysql] Press the Logs button to view error logs and check
[mysql] the Windows Event Viewer for more clues
[mysql] If you need more help, copy and post this
[mysql] entire log window on the forums
With Command Prompt ,I am getting following Error
\mysql\bin>mysql -u root -p
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
Please Some one give advice to resolve .Thanks
After the successful installation of Xampp on my Windows 8.1 64-bit system, the Apache server is starting fine but MySQL is not starting.
There is no error showing in the control panel log. I changed the port 3306 to 3307 in the my.ini file in the lib folder, but no change has occurred.
This is the screenshot of xampp control panel log when I click on the mysql start button
let xampp run as administrator and open the services make sure you stopped running the mysql service and uninstall the mysql under service in xampp control and install and start.
So I looked at this question Find out where MySQL is installed on Mac OS X
I have MAMP installed and when I run: /Applications/MAMP/Library/bin/mysql --version It gives me correct output for mysql version.
But if I run type -a mysql it says that it wasn't found, as if I don't have mysql installed.
If I want to run mysql from the terminal I can start my MAMP server, then go to MAMP's library and run ./mysql which will start a mysql session.
HOWEVER: I do NOT want to run it using the current MAMP's server I have. i.e Is there a way to run mysql from any directory, like without using MAMP at all?
I downloaded mysql from mysql site http://www.mysql.com and I can run either the one on my MAMP'S server or the one locally on my machine. I just need to decide which of the two since both are running locally.
you should run the daemon manually but you need to setup the data before that by doing something like data directory initialization mysqld
I'm having a hard time trying to get PhpMyAdmin to work on Mavericks.
I have enabled PHP in apache by uncommenting the LoadModule directive in /etc/apache2/httpd.conf, I have downloaded and installed MySQL 5.6.17, I have changed the root password, I have downloaded and installed PhpMyAdmin 4.1.13, but when I try to login into phpmyadmin, I'm getting the error:
#2002 Cannot log in to the MySQL server
I can connect to mysql from the terminal without problem, but not from PhpMyAdmin.
Can anyone help me fix this?
Thanks in advance
my problem was that I configured phpmyadmin for a tcp connection, but mysql uses Unix sockets by default.