Start XAMPP Control Panel Apache MySql from Python 2.7 script - mysql

I would like to automatically start Apache and MySql of the XAMPP Control Panel without having to make it to the users of the application. Using Python 2.7
The buttons are highlighted below.
Thanks in advance!

Open Windows Command Prompt as Administrator
Type 'net start' to see a list of running services windows.
locate the name for service e.g. "Apache2.4"
write python command to start/stop/restart service....
import win32serviceutil
win32serviceutil.StartService('Apache2.4')
win32serviceutil.RestartService('Apache2.4')
win32serviceutil.StopService('Apache2.4')

Related

Unable to install XAMPP services

I am currently using XAMMP v3.2.4 and i need to install apache and mysql service.
I was able to install these on pervious tries by running xampp-control.exe using Run as Administrator and then marking the check boxes. But now i am unable to mark those check boxes.
I also tried using command line to run xammp-control.exe but nothing changed.
xampp-control.exe screenshot by running as administrator

Auto start XAMPP version 7.1.4

how can I Automatically start Apache and MySql services without launch XAMPP version 7.1.4?
Auto starting Apache and MySQL as a service is quite easy,just follow the following steps.
1.open XAMPP Gui as an admin.
Search for XAMPP on windows apps search area then right click on XAMPP and open it as an admin
2.To your left hand side of the XAMPP GUI,Enable Apache and MySQL services.
3.Close the Gui
and that is basically it.
So the Next time you want to use Apache and MySQL on switching ON your windows system,the two services will be already running by default.
Enjoy!

Install msql in Mac Osx

so I'm trying to use mysql as my database in sails js instead of mongodb, and I'm currently having a hard time configuring / installing it.
So basically what I did was in my app folder I typed
npm install sails-mysql
then I fixed all my configuration for sails js and I'm having a 500(E_UNKNOWN) error when I open my application or I open a page that connects to mysql. It seems that I have not mysql running and installed. So following this, http://dev.mysql.com/doc/mysql-macosx-excerpt/5.5/en/macosx-installation-pkg.html I installed mysql. Now, I can't seem to locate mysql on my computer to start it. I know that it should be in /usr/local/bin but when I open it using the terminal
open -a Finder /usr/local/bin
the mysql installation directory is not there. Is there anything that I'm missing? Or should I just install MAMP?

How to start xampp v3.2.1 starts automatically in windows startup?

Hi all I am using xampp v3.2.1 in windows 7. I want to start it automatically as windows start, but not able to do it.
I tried the solution provided here but not find anything in services.
I have installed xampp in D drive is this the reason why apache and mysql is not showed in services when open the services.msc from run.
I have tried it from the xampp control panel from the config button I check the checkbox to autostart but it start the services when I start the xampp control panel, not when system start.
So how can I do this, is there any way to do this. Please let me know.
And I also want to do the same thing in windows server 2008 however right now it is installed it in the ** C Drive** of the server but i want to install it on the D drive on server also.
I'm also using xampp v.3.2.1 with windows 7. I have installed it on my C drive and I can see Apache and mysql in services.msc and both appear with auto start, maybe you should try to install in C drive.
Look at this response, It can be helpful to you: How to start Apache and MySQL Automatically when Windows 8 comes up
Start the control panel using "Run as administrator", then you can install apache, Mysql as a service.

how to open automatically MYSQL on start up of computer? or is there a downloadable software for it?

I'm using xampp to start my mysql server but i want to start it automatically on start up of
my computer. Is there anyway i could make my Xampp (MYSQL) opens automatically on start up?
You should add MySQL as one of your computer's services so it would run automatically on start-up. If you are using Windows OS, then probably, your XAMPP is installed on C:\XAMPP\. Now, go to your XAMPP directory and right click xampp-control.exe run it as administrator and the XAMPP control panel will pop-up. Check the box beside MySQL, that is the box under Service column and is beside the MySQL Module. Mostly, a UAC or user account control will pop-up asking you some stuff, just accept it and install the MySQL service to your PC. If everything is done correctly, your MySQL service should automatically start when your computer boot up.
you need to your xamp application to you startup item of windows/linux check the following link for windows
http://www.wikihow.com/Alter-Startup-Programs-in-Windows-XP
If you are using windows Operating system, then put xampp in your startup.
Startup will be available in your start menu -> all programs
1.Open your xampp-control panel in this folder path xampp\xampp-control.exe.
2. Just make a tick mark on service!
to see the image click here
OR
For Window: see the Links below
http://www.sevenforums.com/tutorials/12444-task-scheduler-create-new-task.html