Uninstalling XAMPP and its services - mysql

I have installed xampp while port 80 wasn't free. As a result one of the services wasn't able to run. Then I tried to reinstall the program as I thought it would replace any services that I had already installed. I ended up with having the other port being used from the previous MySQL service that had been downloaded when I firstly installed XAMPP.
I decided to uninstall xampp completely and reinstall it from the beginning. I've uninstalled XAMPP successfully, however when I check my program files the MySQL service is still there. I tried to delete it along with the other files but it says that I cannot complete the action because MySQL is in use.
How do I delete MySQL so that I can download XAMPP again from the beginning without any problems?

To stop the Windows services, go to Start, Run, and type services.msc . Then, locate the Apache and MySQL services and stop them. If the XAMPP Control Panel is running close it.
To uninstall the Apache service, open a Command Prompt window with administrative privileges and execute the command:
C:\xampp\apache\bin\httpd -k uninstall
To uninstall the MySQL service, execute the command:
sc delete mysql
If you used the ZIP archive to get XAMPP, you should be able to simply delete the XAMPP directory. If you used the installer, uninstall XAMPP from Programs in the Control Panel.

If MySQL is running, you can access it via the command line interface:
Start -> Type "Cmd" in the Search box -> click on program (Windows 7)
Then in the command window you can use MySQL commands. If you want to manage MySQL databases via a graphic UI you have to use phpMyAdmin, which ships with XAMPP.
To Delete MySQL, first stop the windows service (if it's actually running as a service). You can view the running services by opening the management console:
Start -> Type "View Local Services" in the search box -> Click on the program
You can also view the services via the control panel. Find the MySQL service in the list and disable it, you should then be able to delete the program
If MySQL isn't running as a service but you still can't delete it you can either shut it down via the command line: mysql> quit or by killing the task in the windows task manager.

For you to get rid of the xampp folder in your (c:) drive, Go to Start, type msconfig in the search bar and enter. In the start up program, disable mysql services and the Apache program. Restart your computer.you are now good to go.

To delete the whole Xammpp on your computer you get probably an error that not all the files can't be deleted. To delete the files without any problems go to
task manager -> services -> services (with admin rights). Once you are their go and find
mysql service and the Apache service. Stop those two servers and you can delete the other files at your xampp to get xampp deleted.

Related

how to make local mysql connection open at the start of computer(windows)?

am trying to create an standalone desktop application in flutter which uses mysql as local database.
my problem is when i need to use database from my application i need to open mysql command line client and enter my password to start service( or open connection).
In simple term whenever i open my desktop application mysql should be ready to use. how can i achieve this?
I have tried starting mysql as windows service . Is it the answer which i should follow?
I followed it. But it didn't work for me..
during installation of mysql in windows you'll get the option to start mysql as windows service. if you don't get you can follow starting myswl as windows service.
after this step open mysql installer-community from searchbar.
Look for "MySQL server" and click on Reconfigure
Click on "Next" until you reach the "Authentification Method" page
On the "Authentification Method" page check the second option "Use Legacy Authentication Method"
Then follow the steps given by the Windows installer until the end.
now you could directly connect to database and perform actions without creating it's local instance or without even opening mysql command line client or workbench.

Is there a way to start a MySQL server outside of the command line on Windows?

I am about to begin teaching a class on SQL to people with no programming experience. At the start of the class, I want to offer guidance on installing and using MySQL in the simplest way possible. I am using a Mac, but want to be able to help students with Windows computers as well. On Mac, to start the server I can simply go to System Preferences > MySQL > Start MySQL Server to start the server. Is there an equivalently similar way of doing things on Windows, or does it need to be done in the command line?
I have seen videos where people have gotten a server to run in MySQL Workbench just by clicking on a MySQL connection instance on the startup page, but I have not been able to do that unless I have already run the server from System Preferences first.
It has been difficult to figure this out without access to a Windows machine to try this on. So, is there a similar way of starting a MySQL server on Windows through some sort of system preferences GUI as can be done on Mac?
Enter Services in type here to search box, open,scroll down to find mysql right click and left click start,
for the long explanation https://dev.mysql.com/doc/refman/8.0/en/windows-start-service.html
We can start from the service available with the windows. To start from the service we can follow bellow steps.
METHOD #1: Access the Installed Service
Open up the Services icon in the Control Panel
Scroll alphabetically to the MySQL service
Right click the service
Click Start Service

Make MySQL accessible remotely, installed on a windows PC

I was wondering if someone could help showing detailed steps (if possible) to make MySQL accessible remotely. Example: PC 1 has MySQL installed (DB server) on it and PC 2 can now ask PC 1 for data using either PHP, Python etc.
First, I would like to give credits to the people who assisted me when doing this. I will outline how I managed to get this to work. This was done on a machine running Windows 10. The steps are outlined below:
Installing MySQL and Location my.ini file
After installing MySQL server and workbench. Windows store my.ini file on a hidden location other than that of the MySQL installation location.
C:\ProgramData\MySQL\MySQL Server 5.7
This location can be view only when you have enabled windows to show hidden files. This is achieved with the following steps:
Navigate to Control Panel
Click on Appearance and Personalization
Under File Explore Options, click on show hidden files and folders
Under the view tab, Advanced settings, look for the option hidden files and folder and select the show hidden files, folders and drives and click ok.
Navigate to C:\ and you should see the ProgramData folder
Copy this file onto MySQL installation folder
Navigate to
C:\ProgramData\MySQL\MySQL Server 5.7
and copy the file to
C:\Program Files\MySQL\MySQL Server 5.7
Configure MySQL for remote access
open my.in file using your preferred editor and look for the line and remove the # in front of it to uncomment it:
bind-address=0.0.0.0
if the line is not there then add it manually save and restart MySQL or the machine.
Activating Telnet
The computer must have the telnet activity-activated, to achieve this the do the following steps:
Navigate to Control Panel -> Programs -> Programs and Features and under this section click on Turn Windows features on or off
Look for Telnet Client and check it
Click Ok, and done now telnet is active.
On the MySQL, workbench creates a new SQL connection and use the IP address you used on my.in file and you should be set to go.
Now test this by writing a simple PHP or Python script to connect to your MySQL server.

Accessing git to install mysql on server on gandi.net

I purchased a Simple Hosting instance using node.js/mysql on gandi.net.
I'm trying to set up my database, but I'm having some issues with connectivity.
I found some sample code to connect and talk to the database (which I set up via PHPMyAdmin), but it requires the mysql module (which I assumed would already be installed on my instance, but since I don't know how any of this works, that's fine).
I get the error:
Error: Cannot find module 'mysql'
in my log file.
I'm at a loss though as to how to actually install the module.
I tried to use their SSH console (via a firefox plugin), but my SSH credentials don't have the permission to run 'npm install mysql' and sudo isn't installed.
I also tried to install Git for Windows from mysisgit but I have zero idea how to connect to my remote server from this tool.
I'm just looking for some advice on how to proceed. I'm totally new and am engaging in learning this for personal development, so I don't have a lot of info on where to turn. Thanks!
The problem was that I wasn't using SSH to install to the correct directory (I was just trying to run it directly when I logged into shell). I needed to navigate into my web/vhosts/default/ directory, then the 'npm install mysql' worked absolutely fine.

problems running xamp

I am using a open source document repositary kordil edbms which works fine in my windows 7 machine .
But when i installed it in windows small business server, xamp is not running. when i start task manager httpd itself is not getting shown. I went to xamp control panel and it says error running mysql busy.I have share point in that machine which also has localhost 80.
So I changed the apache port.
I changed the apache port in httpd.conf file in 2 places
listen
server name
It seems i need to change the port for mysql also. Now what is the option to change the port for xamp mysql or am i going wrong some where else. Please also look at the screenshot of xamp control panel.
Quit Skype and then restart all services from your XAMPP and let me know if its work or not.
Port conflict as Skype also consumes 80 by default
Click on SCM and manage services by starting and stopping.
EDIT
check this link for both to work with - http://www.binodranabhat.com.np/blog/using-xampp-and-iis-together/
MYSQL not working because xampp which path excepting that path not getting automatically .
that is reason behind xampp mysql not start
go to window +R press then open cmd with run as administration then type this command
sc delete mysql
then after start mysql problem resolved.
Fixing Apache Port Conflicts
Another error message that is pretty common to see when working with XAMPP is a notification in the XAMPP control panel that the ports Apache needs to use, ports 443 and 80, are already being used by another application.
A message from the XAMPP control panel letting us know Skype is using ports 443 and 80
In the case of the error message in the image above, this is a pretty easy fix. The offending application is Skype. If you see the same message, close Skype completely and restart XAMPP to solve the problem. Skype is a frequent-flier on the port-blocking scene and pretty easy to identify and remediate. Unfortunately, things aren’t always so simple.