how to check mysql location

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • usafshah
    New Member
    • Nov 2006
    • 104

    how to check mysql location

    Hi


    I have installed mysql from source file (tar.gz) which had some problem so i have to install again from rpm from CD.

    Now mysql is running i dont know which one is running... how can i check the information about running mysql and its location ?
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Originally posted by usafshah
    Hi


    I have installed mysql from source file (tar.gz) which had some problem so i have to install again from rpm from CD.

    Now mysql is running i dont know which one is running... how can i check the information about running mysql and its location ?
    The mysqladmin tool should be able to provide you with this information.

    Comment

    • vpmurdan
      New Member
      • Feb 2007
      • 25

      #3
      typing
      Code:
      \s
      in the mysql prompt gives you the location

      Comment

      • usafshah
        New Member
        • Nov 2006
        • 104

        #4
        Originally posted by vpmurdan
        typing
        Code:
        \s
        in the mysql prompt gives you the location
        [root@linuxserve r ~]# \s
        -bash: s: command not found

        Comment

        • usafshah
          New Member
          • Nov 2006
          • 104

          #5
          Originally posted by Motoma
          The mysqladmin tool should be able to provide you with this information.
          where in phpmyadmin i didn't find... and also how can i delete that mysql which i had installed from source tar.gz

          Comment

          • Motoma
            Recognized Expert Specialist
            • Jan 2007
            • 3236

            #6
            Originally posted by usafshah
            where in phpmyadmin i didn't find... and also how can i delete that mysql which i had installed from source tar.gz
            mysqladmin is a command line tool to get information and change settings of your mysql server.

            Comment

            • vpmurdan
              New Member
              • Feb 2007
              • 25

              #7
              Hi.

              In PHPMyAdmin, on the screen where you type sql commands type:

              Code:
              show variables like 'base%';
              the base dir will give you the location of your mysql installation.

              For re-installing (i am talking under reserve as I'm not so fluent on linux)

              something like 'rpm -q' to check the fileName of mysql
              something like 'rpm -u FileName' to uninstall

              Prakash

              Comment

              • bugmenot
                Banned
                New Member
                • Dec 2007
                • 5

                #8
                I would recommend ps -ef | grep mysql and checking the output. Good chance you will see it there.

                Comment

                Working...