Find the answer to your Linux question:
Results 1 to 4 of 4
Is there anyway I can detect if MySQL is working on a remote computer (Fedora) in which I have just access to /home/my_user_name/ through SSH2? Thanks!...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064

    MySQL detection


    Is there anyway I can detect if MySQL is working on a remote computer (Fedora) in which I have just access to /home/my_user_name/ through SSH2?

    Thanks!

  2. #2
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    You can use a utility like nmap to scan the ports and see if port 3306 (mysql) is open, or you can see if it's running with this:
    Code:
    ps aux | grep mysql
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

  3. #3
    Just Joined!
    Join Date
    Dec 2004
    Location
    localhost
    Posts
    56
    Here's a quick and dirty php script that might work for you:
    Code:
    <?php
    if (!extension_loaded('mysql')) {
     echo "MySQL not installed";
    }
    ?>

  4. #4
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    Thanks for your help I discovered it is enabled

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •