Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I heard someone asking how to start Windows service from a Linux box, but how to do vice-versa? I have my database on a Linux box (Fedora/Ubuntu), from another Windows box, I want to check if mysqld status and start if needed. May telnet help? Please give me a hint.
You should listen to gruby12's warning. Telnet is not secure. If you have the telnetd service running on the server, you should stop it. Even uninstall it. Using ssh you can do the same thing; they both give you access to your account and you can enter the same commands you would had you used telnet. One popular ssh client for windows is putty. I would recommend installing Cygwin/X. That will give you an x server terminal as well. You could then login using ssh and use a graphical program on the server as well.
On Fedora you could use chkconfig to check if a service is running. You can use the "service" command instead as well to check on the service or start it if need be. I've never used Ubuntu, so I don't know if it uses the same type of scripts & controls when they start with "chkconfig" but it should have the service command to control the scripts. You can also start the service by calling the mysql script in /etc/init.d/.
You probably want to download the mysql manual. There may be a safe_mysql or mysql_safe command that you should use to start the server manually. Also, a chapter in the manual deals with securing the server. There is a test database you might want to drop, and you will want to give the root user a password. Since you mentioned that the mysql server will be installed either on Fedora or Ubuntu, I'm assuming it hasn't been installed yet.
C:\putty> plink 10.0.0.1 -l test -pw test /etc/init.d/mysqld status
It works, jschiwal! Thank you very much!
I'll take a look at MySQL manual.
Have a nice day!
Quote:
Originally Posted by jschiwal
You should listen to gruby12's warning. Telnet is not secure. If you have the telnetd service running on the server, you should stop it. Even uninstall it. Using ssh you can do the same thing; they both give you access to your account and you can enter the same commands you would had you used telnet. One popular ssh client for windows is putty. I would recommend installing Cygwin/X. That will give you an x server terminal as well. You could then login using ssh and use a graphical program on the server as well.
On Fedora you could use chkconfig to check if a service is running. You can use the "service" command instead as well to check on the service or start it if need be. I've never used Ubuntu, so I don't know if it uses the same type of scripts & controls when they start with "chkconfig" but it should have the service command to control the scripts. You can also start the service by calling the mysql script in /etc/init.d/.
You probably want to download the mysql manual. There may be a safe_mysql or mysql_safe command that you should use to start the server manually. Also, a chapter in the manual deals with securing the server. There is a test database you might want to drop, and you will want to give the root user a password. Since you mentioned that the mysql server will be installed either on Fedora or Ubuntu, I'm assuming it hasn't been installed yet.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.