RE: How to set trabnsaction isoloation in my.ini file

2005-05-17 Thread Adam Lipscombe
>> It may not be.  Do you specify this file when you start the server on 
>> the command line?  If you don't then you need to move my.ini to the 
>>windows directory:


You are quite right. When I moved the my.ini file to c:\windows it worked.
I assumed that it would work 'cos the mySQL installer created the file in
the installation dir.



Many thanks - Adam


-Original Message-
From: Kristen G. Thorson [mailto:[EMAIL PROTECTED] 
Sent: 17 May 2005 17:23
To: Adam Lipscombe
Cc: mysql@lists.mysql.com
Subject: Re: How to set trabnsaction isoloation in my.ini file


Adam Lipscombe wrote:

>I have MySql 4.1.12 installed on an XP box in C:\mysql.
>
>I have the settings below in my C;\MySql\my.ini file:
>
>I have the transaction-isolation set to READ-COMMITTED but the server 
>seems to ignore this. When the server starts up the tx_isolation as 
>reported by mysqladmin extended-status is REPEATABLE-READ.
>
>I can set it manually from the mysql command line and that works. The 
>tx_isolation is then reported as  READ-COMMITTED.
>
>
>Its almost as if the server is not reading the my.ini file.
>
>  
>

It may not be.  Do you specify this file when you start the server on 
the command line?  If you don't then you need to move my.ini to the 
windows directory:



"When the MySQL server starts on Windows, it looks for options in two 
files: the `my.ini' file in the Windows directory, and the `C:\my.cnf' 
file. The Windows directory typically is named something like 
`C:\WINDOWS' or `C:\WinNT'. You can determine its exact location from 
the value of the |WINDIR| environment variable using the following command:

C:\> echo %WINDIR%

MySQL looks for options first in the `my.ini' file, then in the `my.cnf' 
file. However, to avoid confusion, it's best if you use only one file. 
If your PC uses a boot loader where the |C:| drive isn't the boot drive, 
your only option is to use the `my.ini' file. Whichever option file you 
use, it must be a plain text file."





-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: How to set trabnsaction isoloation in my.ini file

2005-05-17 Thread gerald_clark
Adam Lipscombe wrote:
I have MySql 4.1.12 installed on an XP box in C:\mysql.
I have the settings below in my C;\MySql\my.ini file:
I have the transaction-isolation set to READ-COMMITTED but the server seems
to ignore this.
When the server starts up the tx_isolation as reported by mysqladmin
extended-status is REPEATABLE-READ.
I can set it manually from the mysql command line and that works. The
tx_isolation is then reported as  READ-COMMITTED.
Its almost as if the server is not reading the my.ini file.
transaction-isolation = READ-OMMITTED
 

Have you tried leaving out the spaces?
transaction-isolation=READ-OMMITTED
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: How to set trabnsaction isoloation in my.ini file

2005-05-17 Thread Kristen G. Thorson
Adam Lipscombe wrote:
I have MySql 4.1.12 installed on an XP box in C:\mysql.
I have the settings below in my C;\MySql\my.ini file:
I have the transaction-isolation set to READ-COMMITTED but the server seems
to ignore this.
When the server starts up the tx_isolation as reported by mysqladmin
extended-status is REPEATABLE-READ.
I can set it manually from the mysql command line and that works. The
tx_isolation is then reported as  READ-COMMITTED.
Its almost as if the server is not reading the my.ini file.
 

It may not be.  Do you specify this file when you start the server on 
the command line?  If you don't then you need to move my.ini to the 
windows directory:


"When the MySQL server starts on Windows, it looks for options in two 
files: the `my.ini' file in the Windows directory, and the `C:\my.cnf' 
file. The Windows directory typically is named something like 
`C:\WINDOWS' or `C:\WinNT'. You can determine its exact location from 
the value of the |WINDIR| environment variable using the following command:

C:\> echo %WINDIR%
MySQL looks for options first in the `my.ini' file, then in the `my.cnf' 
file. However, to avoid confusion, it's best if you use only one file. 
If your PC uses a boot loader where the |C:| drive isn't the boot drive, 
your only option is to use the `my.ini' file. Whichever option file you 
use, it must be a plain text file."




How to set trabnsaction isoloation in my.ini file

2005-05-17 Thread Adam Lipscombe
I have MySql 4.1.12 installed on an XP box in C:\mysql.

I have the settings below in my C;\MySql\my.ini file:

I have the transaction-isolation set to READ-COMMITTED but the server seems
to ignore this.
When the server starts up the tx_isolation as reported by mysqladmin
extended-status is REPEATABLE-READ.

I can set it manually from the mysql command line and that works. The
tx_isolation is then reported as  READ-COMMITTED.


Its almost as if the server is not reading the my.ini file.



How can I set the tx isolation level on startup?
Does anyone have any ideas?


Thanks -Adam





[mysqld]

# The TCP/IP Port the MySQL Server will listen on
port=3306


#Path to installation directory. All paths are usually resolved relative to
this.
basedir="C:/MySQL/"

#Path to the database root
datadir="C:/MySQL/Data/"

# The default character set that will be used when a new schema or table is
# created and no character set is defined
default-character-set=latin1

# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB

# The maximum amount of concurrent sessions the MySQL server will
# allow. One of these connections will be reserved for a user with
# SUPER privileges to allow the administrator to login even if the
# connection limit has been reached.
max_connections=100

# Query cache is used to cache SELECT results and later return them
# without actual executing the same query once again. Having the query
# cache enabled may result in significant speed improvements, if your
# have a lot of identical queries and rarely changing tables. See the
# "Qcache_lowmem_prunes" status variable to check if the current value
# is high enough for your load.
# Note: In case your tables change very often or if your queries are
# textually different every time, the query cache may result in a
# slowdown instead of a performance improvement.
query_cache_size=0

# The number of open tables for all threads. Increasing this value
# increases the number of file descriptors that mysqld requires.
# Therefore you have to make sure to set the amount of open files
# allowed to at least 4096 in the variable "open-files-limit" in
# section [mysqld_safe]
table_cache=256

# Maximum size for internal (in-memory) temporary tables. If a table
# grows larger than this value, it is automatically converted to disk
# based table This limitation is for a single table. There can be many
# of them.
tmp_table_size=13M


# How many threads we should keep in a cache for reuse. When a client
# disconnects, the client's threads are put in the cache if there aren't
# more than thread_cache_size threads from before.  This greatly reduces
# the amount of thread creations needed if you have a lot of new
# connections. (Normally this doesn't give a notable performance
# improvement if you have a good thread implementation.)
thread_cache_size=8

#*** MyISAM Specific options

# The maximum size of the temporary file MySQL is allowed to use while
# recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE.
# If the file-size would be bigger than this, the index will be created
# through the key cache (which is slower).
myisam_max_sort_file_size=100G

# If the temporary file used for fast index creation would be bigger
# than using the key cache by the amount specified here, then prefer the
# key cache method.  This is mainly used to force long character keys in
# large tables to use the slower key cache method to create the index.
myisam_max_extra_sort_file_size=100G

# If the temporary file used for fast index creation would be bigger
# than using the key cache by the amount specified here, then prefer the
# key cache method.  This is mainly used to force long character keys in
# large tables to use the slower key cache method to create the index.
myisam_sort_buffer_size=26M

# Size of the Key Buffer, used to cache index blocks for MyISAM tables.
# Do not set it larger than 30% of your available memory, as some memory
# is also required by the OS to cache rows. Even if you're not using
# MyISAM tables, you should still set it to 8-64M as it will also be
# used for internal temporary disk tables.
key_buffer_size=8M

# Size of the buffer used for doing full table scans of MyISAM tables.
# Allocated per thread, if a full scan is needed.
read_buffer_size=64K
read_rnd_buffer_size=256K

# This buffer is allocated when MySQL needs to rebuild the index in
# REPAIR, OPTIMZE, ALTER table statements as well as in LOAD DATA INFILE
# into an empty table. It is allocated per thread so be careful with
# large settings.
sort_buffer_size=256K


#*** INNODB Specific options ***


# Use this option if you have a MySQL server with InnoDB support enabled
# but you do not plan to use it. This will save memory and disk space
# and speed up some things.
#skip-innodb

# Additional memory pool that is used by InnoDB to store metadata
# information.  If InnoDB requires more memory for this purpose it will
# start to allocate it from