MySQL Forums
Forum List  »  Backup

Re: How to get mysql installation path ?
Posted by: Jay Alverson
Date: February 02, 2009 12:14PM

Can you build it from these ?

mysql> select @@datadir
    -> ;
+------------------------------+
| @@datadir                    |
+------------------------------+
| C:\Program Files\MySQL\data\ |
+------------------------------+
1 row in set (0.00 sec)

mysql> select @@basedir
    -> ;
+-------------------------+
| @@basedir               |
+-------------------------+
| C:\Program Files\MySQL\ |
+-------------------------+
1 row in set (0.00 sec)

mysql>

See if Java will let you retrieve the values of MySQL's variables (you can also dump them using MYSQLADMIN VARIABLES).

>

Thanks, Jay

Options: ReplyQuote


Subject
Views
Written By
Posted
18610
February 02, 2009 12:03PM
Re: How to get mysql installation path ?
9775
February 02, 2009 12:14PM
4757
February 03, 2009 11:53PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.