Announcement

Collapse
No announcement yet.

how can i check mysql path ? /usr/local/mysql

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • how can i check mysql path ? /usr/local/mysql

    please php code

  • #2
    Try

    Code:
    phpinfo();
    There should be a "Configure command" part of the first table, and if mySQL is enabled for your PHP, it should tell you s/th like '--with-mysql=/usr/local/mysql' ...logical conclusion: if your mySQL works, this is the path.

    Hope this helps.

    Comment


    • #3
      that code will display all system vars , but i need only mysql path becouse i'm trying to write script to manage databases on server .
      Thank you

      Comment


      • #4
        telnet into your server and type

        Code:
        whereis mysql
        or create a php script like this

        PHP Code:
        <?php

        echo `whereis mysql`;

        ?>

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X