# Any possible way to restart Mysql service from Remote place

**URL:** <https://forum.inductiveautomation.com/t/any-possible-way-to-restart-mysql-service-from-remote-place/3876>\
**Category:** General Discussion\
**Created:** [January 18, 2012, 4:55am UTC](https://forum.inductiveautomation.com/t/any-possible-way-to-restart-mysql-service-from-remote-place/3876 "2012-01-18T04:55:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajay](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@ajay](https://forum.inductiveautomation.com/u/ajay)\
**Post date:** [January 18, 2012, 4:55am UTC](https://forum.inductiveautomation.com/t/any-possible-way-to-restart-mysql-service-from-remote-place/3876/1 "2012-01-18T04:55:55Z")

</div>

I face some times problem Mysql database and it stopped. In that case i ask plant engineers to come and restart mysql service. In that case if i want to restart mysql service from remote, is it possible.

I have given the remote access for Mysql and 3306 port is release from the firewall

Could somebody help me to restart Mysql Service from remote

---

<div class="post-metadata">

**Author:** ![mgross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mgross/32/3311_2.png) [@mgross](https://forum.inductiveautomation.com/u/mgross)\
**Post date:** [January 18, 2012, 5:49pm UTC](https://forum.inductiveautomation.com/t/any-possible-way-to-restart-mysql-service-from-remote-place/3876/2 "2012-01-18T17:49:42Z")

</div>

If MySQL is running on a Windows Server 2008 box (or maybe even Windows 7), you might be able to use Windows PowerShell to restart the MySQL service remotely. The PowerShell command looks like this:  
Invoke-Command {Restart-Service} “mysql” -passthru -ComputerName “mycomputername”

From what I read, it does require the server that runs the MySQL service to be configured to receive PowerShell requests like this.

---

<div class="post-metadata">

**Author:** ![ajay](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@ajay](https://forum.inductiveautomation.com/u/ajay)\
**Post date:** [January 19, 2012, 10:22am UTC](https://forum.inductiveautomation.com/t/any-possible-way-to-restart-mysql-service-from-remote-place/3876/3 "2012-01-19T10:22:49Z")

</div>

Thanks for the reply. I will try this and let you know

---

<div class="post-metadata">

**Author:** ![jantonevich](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@jantonevich](https://forum.inductiveautomation.com/u/jantonevich)\
**Post date:** [February 15, 2012, 9:34pm UTC](https://forum.inductiveautomation.com/t/any-possible-way-to-restart-mysql-service-from-remote-place/3876/4 "2012-02-15T21:34:41Z")

</div>

I have always had good luck restarting any service i need to remotely using RDP (assuming its a windows machine) or [logmein.com](http://logmein.com)
