PDA

View Full Version : Windows SQL startup


basa
Sun 26th Feb '06, 12:19pm
The mysql administrator says that the startup config is in C:\mysql\my.cnf. Two problems,

1) this is in red

and

2) I can't find the file!!

I am moving servers today and would really apreciate any help.

eva2000
Mon 27th Feb '06, 1:29am
if no file is there you need to create one yourself... look in mysql install directory there should be example my.ini

i.e. my local windows pc one looks like

[mysqld]
default-character-set=latin1
default-storage-engine=MYISAM
old_passwords

basedir=C:/mysql
datadir=J:/MySQLdatabases
skip-locking
server-id = 1
skip-bdb
skip-innodb
max_connections = 100
key_buffer = 16M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1500
thread_cache_size = 128
wait_timeout = 900
connect_timeout = 10
tmp_table_size = 32M
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
query_prealloc_size = 16384
query_alloc_block_size = 16384

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer = 8M
sort_buffer_size = 8M

[myisamchk]
key_buffer = 8M
sort_buffer_size = 8M

[mysqlhotcopy]
interactive-timeout

[WinMySQLadmin]
Server=C:/mysql/bin/mysqld-nt.exe
user=root
password=yourpass


you'd have to change

basedir=C:/mysql
datadir=J:/MySQLdatabases

to where your basedir = mysql install directory and datadir = your mysql data directory where mysql data files are stored