Databases :: MySql :: Changing the installation path for MySQL in Win |
|||
| By: Squibi |
Date: 31/03/2003 00:00:00 |
Points: 100 | Status: Answered Quality : Excellent |
|
How can I change the path (basedir and datadir variables) that appears in the variables tab of WinMySQLadmin. I suppose they are stored in a file that's written when the installation of MySQL on windows ocurrs. I would like to find where it is so I can move the Installation freely without having to reinstall. |
|||
| By: VGR | Date: 31/03/2003 08:58:00 | Type : Comment |
|
| my.ini (or my.cnf) usually in %WINNT% (c:\WINDOWS for example) change those to reflect your wishes : basedir=H:/mySQL datadir=I:/MySQLdata |
|||
| By: Squibi | Date: 31/03/2003 10:13:00 | Type : Comment |
|
| Well, i've already tried that, I've no my.cnf file on my computer, but i've the my.ini on my c:\windows folder, but my file only contains two lines: [WinMySQLAdmin] Server=C:/mysql/bin/mysqld-nt.exe I tried adding the lines you mentioned, with a new MySQL location but it did not work either, the variables shown in the WinMySQLadmin are still the same, I suppose those values are stored somewhere else, but I can't imagine where... |
|||
| By: VGR | Date: 31/03/2003 16:49:00 | Type : Answer |
|
| the section name to put before those lines is : [mysqld] My full file : #This File was made using the WinMySQLAdmin 1.3 Tool #20/09/2002 0:15:25 #Uncomment or Add only the keys that you know how works. #Read the MySQL Manual for instructions [mysqld] basedir=H:/mySQL #bind-address=169.254.217.36 datadir=I:/MySQLdata #language=H:/mySQL/share/your language directory #slow query log#= #tmpdir#= #port=3306 #set-variable=key_buffer=16M #VGR08102002 MODified this (was 100) set-variable=max_connections=200 #VGR08102002 MODified this (was 50) set-variable=back_log=100 [WinMySQLadmin] Server=H:/mySQL/bin/mysqld-nt.exe user=root password=[snip] |
|||
| By: Squibi | Date: 01/04/2003 01:30:00 | Type : Comment |
|
| Thanx, it worked fine. Changes are reflected only after restarting the service. |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








