visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Databases :: MySql :: Changing the installation path for MySQL in Win


By: Squibi U.S.A.  Date: 31/03/2003 00:00:00  English  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 English  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 English  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 English  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 English  Type : Comment
Thanx, it worked fine. Changes are reflected only after restarting the service.

Do register to be able to answer

EContact
browser fav
page generated in 339.946990 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page