Fail to start mysql xampp after installing mysqld - mysql

I have installed xampp and managed to start up both Apache and MySQL. However, after I've installed MySQL as a service by using the first answer to the question, whenever I start MySQL through the XAMPP control panel, it failed. Is there any way to revert the installation of the "mysqld" service or just configure something to make MySQL able to start by XAMPP?

Why did you install Mysql after you install XAMPP (which already installed Mysql)?? It does not make any sense.
Options
1st Option: uninstall Mysql
2nd Option: Stop Mysql services and start XAMPP
3rd Option: Change port 3306 to other port (4406)
Windows (Win7)
Windows > Programs and Features > Click on Mysql Server > Uninstall button
Windows > services.msc > Mysql x.x (version) > Stop
Edit my.ini and change port from 3306 to 4406 and Restart Mysql from XAMPP

Related

Do I need to uninstall mysql workbench to work with the xampp server as mysql server is already running on the same port?

Do I need to uninstall MySQL workbench to work with the XAMPP server as the MySQL server is already running on the same port?
MySQL workbench itself is fine. One way to solve this is indeed to uninstall the other MySQL server in order to run the XAMPP one. Another way is to adjust the MySQL server that comes with Workbench (stop it/change the port it binds). Alternatively, you can change the XAMPP MySQL server binding port (this might require further adaptations…). To do so, open the my.ini from the “Config” dropdown for MySQL in the XAMPP control panel and change the port value in the [client] and [mysqld] sections to some other free port.

XAMPP MySQL failing to start on Windows7

MySql is failing to run on my XAMPP v3.2.2 software. This is running on Windows 7.
I have tried changing the port for XAMPP MySql in my.ini to 3307 and also changed the port in the XAMPP MySql config to 3307 but that has not helped.
I also have tried to disable service.msc from the command prompt but when I start XAMPP MySql service, I get a User Account Control pop-up which I click on "Yes" to allow.
It the gives me "Attempting to start MySQL service..." on the XAMPP Control Panel but never connects. Where do I go from here?

MySQL Server 5.7 and WAMPServer in the same machine wamp can't run

I have installed mysqlserver 5.7 and after that I can not run wampserver it's orange icon never turn to green. any body please help.
WAMPServer also has a MySQL Server installed as part of it.
By default MySQL Server talks with the outside world using a TCP port (3306) and only one app can be using a TCP port at any one time.
So basically you have 2 people both trying to use the same phone line, which is not possible.
If you have WAMPServer installed you have no need to install another MySQL Server instance, so I suggest you uninstall the independant MySQ Server that you have installed. It is quite possible for one MySQL Server to run 100's of seperate databases, so if you thought you needed ONE MYSQL PER DATABASE that is not the case.
You can edit the configurations and make them run on different ports. For me I installed MySQL server 5.7 first and after I tried to install wamp, but it couldn't run. Go to C:\wamp\bin\mysql\mysql5.6.17 and edit the following lines in the file my.ini
[client]
#password= your_password
port= 3308
[wampmysqld]
port= 3308
[mysqld]
port=3308
I also edited the file:mysql_config.pl in C:\wamp\bin\mysql\mysql5.6.17\bin
$port = '3308';
save changes and restart WAMP, it should launch normally.

Installing xampp but phpmyadmin doesn't connect

So I installed xampp on my Linux machine running Ubuntu 14.04LTS. Now all of a sudden turns out when I try to connect to phpmyadmin it refuses to connect. I have already installed mysql separately as well but it doesn't seem to work. Any workaround for this?
The error that I get is :
MySQL said:
Cannot connect: invalid settings.
Connection for controluser as defined in your configuration failed.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
Any reason why this happens and solution to it?
Go to http://localhost/security/ and then click on the link http://localhost/security/xamppsecurity.php.
After that change password for superuser to 'root'.
After that open your http://localhost/phpmyadmin/
As per the comment by RiggsFolly I was running two instances of MySQL
So both mysql servers do end up messing with phpmyadmin and this is how you shutdown the external mysql server while using xampp's inbuilt mysql server to connect successfully using phpmyadmin:
Use whichmysql to find the utility that is running
Navigate to the directory where the external MySQL service is running:
$ cd /usr/bin
$ mysqladmin shutdown
This shuts down the MySQL service running if at all it is running.
$ sudo service mysql stop
This helps as well if at all it will tell you the status of the service if it is already shut down.
Now we need to stop the Xampp mysql server so we navigate to /lampp/bin and again execute the same command to shut mysql server down.
$ cd /opt/lampp/bin
$ mysqladmin shutdown
Simply restart xampp and you should be good to go.
$ sudo /opt/lampp/lampp restart
I just fell into the same error. The solution I used was, stopping all the servers of xampp, exiting the program. Starting and stoping mysql then starting xampp again
Initial procedure before starting xampp:
sudo service mysql stop
sudo /etc/init.d/apache2 stop
If it bring the error as stated in this question, then follow the procedure below.
That is:
sudo /opt/lampp/lampp stop
sudo service mysql start
sudo service mysql stop
sudo /opt/lampp/lampp start

Mac OS Yosemite : How to start mysql and connect Sequel Pro?

I have just installed MySQL using the installation documentation.
MySQL is installed in the directory /usr/local as indicated in the documentation.
I attempted to start MySQL using the following command on the command line:
/Library/StartupItems/MySQLCOM/MySQLCOM start
Is it normal that I did not receive a message in the terminal that MySQL has started.
Where is the configuration file location (where do I find the root user account)?
After running the MySQL start command, I launched Sequel Pro, but I cannot connect to 127.0.0.1. How can I connect to this? Here is a screenshot of what happens when I attempt to connect:
I would just like to to start mysql and connect a gui client, what am I missing?
you need to be root to start the service.
type sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
MySQL is configured to listen to port 3307 when installed on Yosemite. After you verify that effectively you started the service, change the Port parameter on your Sequel Pro access window and try again.