Web Tool Bag
Home · Articles · Downloads · Discussion Forum · Web Links · News Categories · Hosting information · Hosting ArticlesJanuary 06 2009 14:44:28
Navigation
Home
Articles
Downloads
Discussion Forum
Web Links
News Categories
Contact Me
Search
Site Partners
Users Online
Guests Online: 1
No Members Online

Registered Members: 124
Newest Member: Dannie_Larnach64f
viagra joke download us licensed pharmacies ketamine valium phentermine discount on-line no prescription best generic ultram cheap phentermine and xanax ambien long term side effects tramadol medication weight loss medicine meridia buy line viagra where danger of ambien cialis with purple pill paxil cr tablets paxil cr online from dreampharmaceuticals phentermine 37.5mg 90 pills ativan and flexeril tramadol serotonin dopamine buy cheap valium tramadol 58 93 generic phentermine india order ultram with out a prescription buy cheap discounted tramadol 20mg of ambien pharm phentermine buying viagra uk tramadol and flushed feeling order ambien from canada cheap phentermine about cheap phentermine mexico pharmacy ambien weight loss meridia lorazepam anxiety attack sleep insomnia picture of the pill viagra cheap cheap deal pill viagra viagra perscription drug stores ultram tramadol cheap ambien no prescription klonopin vers xanax can ambien cause a stroke zovirax pills pfizer sildenafil viagra counterfeit lorazepam effect phentermine 30mg blue no prescription viagra pulminary hypertension sildenafil citrate lowest cheap phentermine with no physician approval drug know maker need xanax ambien and breast pain tramadol detect urinalysis side effects of ultram free shipping on tramadol orders tramadol diazepam no prior prescription overnight delivery lunesta vs ambien soft pill cialis online and phentermine and cod pharmacy degree line buy tramadol cheap cod fedex tramadol very wellbutrin adhd phentermine sold without a prescription generic finasteride propecia order tadalafil and online fluconazole and alprazolam green white capsules phentermine phentermine drug indications buy xanax cheap medic affect phentermine side online pharmacy diflucan and clonazepam celecoxib and mesothelioma anaerobic infection atrophic rhinitis zithromax cod prozac cheap prednisone muscle weakness my fioricet fiorcet migraine is ambien gluten free cialis fee online cheapest xanax online female viagra alternate what is soma the drug nextday tramadol cash on deliver cod generic viagra money order weight loss and celexa withdrawal viagra online pharmacies glucophage help ovulation ambien as a date rape drug tramadol and kidneys weight glucophage hrt phentermine discount 30 mg phentermine 2737 amerimedrx herpes nexium zyban meridia better than phentermine meridia xenical and phentermine where to buy viagra ativan off re phentermine prescription viagra dosage 100mg cialis consultation delivery discount health man wellbutrin and lorazepam viagra sale pharmacy online cheap viagra new zealand buy xanax online us pharmacy picture of phentermine 37.5 12.5 ambien cr drug generic online pharmacy wellbutrin zyban wellbutrin information sildenafil viagra tablets bei hf6rsturz sildenafil viagra no presrciption what generic xanax look like lorazepam trip by glucophage generic equivalent of ambien lorazepam ld50 crushing tramadol for quick release cash on delivery fioricet mp 58 soma ambien sulfa diazepam no prescription next day delivery does ambien increase testosterone soma cubes phentermine scripts online herbal supplement contains sildenafil citrate adipex effects harmful side xanax grapefruit juice interaction phentermine hpen fen no dr required buring levitra online viagra baby what is best viagra cialis overnight phentermine no prescription hair loss and wellbutrin ambien bovine danger in using ambien viagra versus cialis espa ol viagra online canadiain effects of ambien on fetus what color is ambien acxess cialis usa mail buy sublingual cialis online sildenafil citrate us overnight delivery cheap phentermine 37.5mg buy tadalafil prescription medicine levitra duration of action ordering cheap phentermine cod cialis tadalafil canadian ultram more drug side effects metformin glucophage buy sildenafil citrate for sale online pharmacy overnight ativan 1mg finasteride propecia is tramadol a narcotic phentermine phentermine abuse eye from hemorrhage paxil phentermine and soma online pharmacy soma drug interaction tramadol seizures no script for cheap phentermine pliva tramadol buy keflex online can you get high on tramadol fosamax cancer splitting viagra 100 mg cheap online genric ambien buy evista cheap canada ambien levitra versus viagra tramadol as antidepressant search for fioricet when is valium perscribed ambien sleep pill atenolol fatigue generic meridia 10 mg discount hepsera hydrocodone soma wellbutrin allergic reaction pain medication tramadol fosamax weight loss side effects wellbutrin paxil valium accuretic ambien causing brain tumors add adult strattera vs wellbutrin appetite suppression drug sibutramine meridia phentermine levitra doseage order propecia pill atavan ativan tramadol drug guide order tadalafil canada online no rx cheap phentermine tramadol effects on dogs zoloft and valium together paxil or lexapro mix diazepam and vicoden avodart ciales clomid diflucan dostinex glucophage buy phentermine online without prescription cheap weight gain wellbutrin lexapro next day ambien adipex p lawsuits cialis the new viagra ativan withdrawl medical breakthrough of 1998 viagra diazepam experiment tramadol 100 er description id foreign phentermine pill sildenafil citrate tabletes buy phentermine costa rica buy viagra online in the uk viagra soft tabs next day buy xanax amex buy canadian prozac online danger levitra lexapro and xanax phentermine cod pharmacy online line tramadol cialis online from dreampharmaceuticals vrx v herbal viagra false positive for tramadol cheap soma usa tramadol and menstrual cycles tramadol cloridrato best herbal viagra viagra buy lamisil online generic cialis pills free sample tramadol and money order fluoxetine and norco fosamax weekly dose buy tramadol online pharmacy online online pharmacy phentermine xenical meridia ambien ativan klonopin dosage withdrawl detox diabetic diet vegetarian phentermine pill prescription drugs ambien free sample paxil and nursing buy xanax prescription require cheap phentermine through lighthouse phentermine yellow low dose prednisone low nexium price dysfunction erectile viagra alprazolam food effect valium stage fright interview generic viagra listings tramadol naproxin buy propecia online consultation lowest price tetracycline acne generic cialis soft viagra teddy bear phentermine no prescription 32 lorazepam for anxiety offender sex viagra buying viagra in canada ambien and price pharmacy online buy fioricet diazepam prilosec weight loss drugs phentermine clonazepam valium phentermine shipping celexa discount pharmacy purchase mixing ambien and vicodin cheap viagra pills buying phentermine without a prescription viagra online description chemistry ingredients sildenafil safe viagra alternatives switch from celexa to effexor ambien sleep talking find viagra free online search a buy phentermine online between difference levitra viagra glyburide metformin ambien online cheap phentermine discounts lexapro cause weight nexium delayed release capsule identify generic xanax phentermine free consultation no prescription addictive diazepam valium and alprazolam xanax fluoxetine hydrochloride as treatment information about danger of taking phentermine buy tramadol with paypal nexium online no prescription viagra and money order 5citrate generic sildenafil viagra 100 no prescription phentermine no topomax neurontin ritalin prozac ambien safe dose 5 sildenafil citrate warnings 67 flomax fluoxetine prescription writing for diazepam furosemide wellbutrin xl muscle relaxer drugs soma bontril xanax ambien day use cold sore valtrex mexican jumping bean viagra paxil pharmacy no prescription 1mg ativan vs xanax 0.5mg diazepam 2mg effects lowest price on phentermine 37.5 tetracycline antibiotic phentermine online overseas overnight express delivery generic cialis diet levitra ativan pdr diazepam drug information viagra perscription levitra drug cialis lawyer columbus ambien side effects tinnitus buy phentermine online u s pharmacy generic cialis pills doses discount online propecia lowest price phentermine gt can viagra delay ejaculation phentermine 37 5mg california ortho specialists newport beach ca buying phentermine with a money order tramadol recreational dose danger zithromax long term and liver viagra cll buy phentermine overnight online tramadol and depression meridia diet aie prednisone tablets side effects xanax xr generic ambien generic substitute soma discount code chicos generic ambien price crushing fosamax physical properties sildenafil citrate phentermine 90 pills no prescription buy tramadol where phentermine differences in pills info on tramadol living performance anxiety viagra propecia generic brand weight loss no prescription meridia western health levitra coverage tramadol 2bonline free tramadol delivery bontril ultram generic zanaflex cheap no prescription viagra order valium online drinking alcohol tramadol tramadol inducing withdrawl meridia cheap from india paxil pe online ambien zolpidem tartrate buy phentermine blue white capsuls online wellbutrin sr bupropion massachusetts christian cialis where can i buy phentermine cod synthroid more drug side effects xanax versus klonopin for chronic anxiety phentermine no prescription us pharmacy cheap ambien discount online pharmacy ambien table prednisone long term phentermine hcl diet pills dream online order pharmaceutical soma prevent effexor withdrawal with prozac discount valtrex fosamax 70 mg weekly phentermine hcl safe to take tramadol rls plmd iv iv sample viagra cheap evista online 6generic propecia alternative ambien cause numbness famvir buy prescription online valtrex viarga phentermine without prescription foreign online pharmacies lexapro xanax drug levitra viagra vs ambien rock opera mexican generic cialis trazadone and prozac interaction 180 cheap tramadol ativan drug interaction viagra erection attorneys dui ambien acyclovir 400 mg tablets order viagra buying viagra uk buy tetracycline no prescription valium shipped in u s fioricet drug phentermine tablets no rx buy phentermine online medipharm nexium discount permanent side effects ambien ambien and beer don't mix cut viagra pill ambien dose where can i buy cialis does herbal phentermine work gt generic overnight viagra pregnancy safety diazepam loss meridia pill weight switching from lexapro to zoloft online search tramadol cheap evista online cheap weight loss with paxil fda-approved prescribing ambien what type of medication is glucophage taking 5htp with prozac buy ambien without prescription information on cialis for erectile disfuntion ambien dreams online valium no prescriptions alternate uses for acyclovir tramadol drug medication tramadol cheap overnight inexpensive buy cialis dreampharmaceuticals online sildenafil chronic lung disease ambien shape buy viagra online u ambien cheapest paxil lawsuit canada plavix and cialis taken together what is metformin cheap adipex online cheap i us phentermine very buy fluoxetine hydrochloride india lorazepam seizure prophylaxis by dhl fioricet shipped overnight shipping phentermine without prescription phentermine 37.5 mg without primary doctor phentermine in stock overnight oxycontin taken with xanax sibutramine meridia and orlistat xenical generic viagra drugstore india lorazepam images diazepam manufacturer meridia buy without prescription phentermine 30mg without doctor prescription ambien side effects pulmonary tight chest ambien day next online drug soma manufacturer ultracet with aspirin lethal dose for lorazepam does it long paxil take work order viagra or levitra ambien yellow pills aciphex phentermine alprazolam online pharmacy cheap source viagra buy lexapro cheap ndice keflex oral soft tabs viagra canadian pharmacy for phentermine fentanyl patch and ultracet weight gain due to ambien lexapro more drug interactionslipitor dosage paxil lorazepam 1mg images pill splitter cialis glucophage tablets cheap genaric tramadol mix maxalt and valium cialis cost viagra pills online pharmacy 2b soma 100 mg tramadol what is chemical formula of tramadol no prior perscription tramadol health viagra woman ambien dangers tramadol drop drug tramadol ultram acid indigestion tramadol wetrack it fioricet 40 mg discount buy cialis doctor online 90 pills phentermine under 100.00 is klonopin or xanax better cheap online sales viagra ativan and celexa reactions buy cialis tadalafil at horizon drugs levitra online prescription augmentin side effects generic xanax 5 picture 1 meridia online contraindications information overdose tramadol ultracet buy tramadol online meridia pharmacy what is fioricet butalbital apap generic cialis uk fluoxetine drug info 10 panel drug tests and alprazolam fosamax osteonecrosis ambien and expire help vicoden effexor soma lexapro buying viagra in the united kingdom generic celexa problems viagra free gratis soma medication in florida tramadol for sale without a presription buy phentermine from study trial erope paxil weight loss tips prednisone weaning 37.5 mg phentermine tab cheap tramadol cod cheap valium with no rx canadian pharmacy for viagra when did prozac go generic uk viagra supplier side effects to ambien phentermine us pharmacy consultation xanax lortab adipex impurity related substance viagra depakote with tramadol take phentermine with xen soma on line cheap 6 finax hair loss generic propecia order finasteride online order phentermine safe viagra woman ambien articles cheap deal deal pill viagra viagra best quality lowest prices generic viagra available wellbutrin zyban difference cheap celecoxib buy phentermine 37.5 mgs morphine tramadol dosage equivalent tramadol dog dose tramadol cheap overseas fosamax mice thyroid difference between niravam xanax and alprazolam prednisone side effects in cats deal free viagra viagra free consultation us prednisone side effects in dog ambien overdose amount cheap no phentermine prescription required online catalog buy phentermine buy cheap xenical ambien and sinus smell discount phentermine 100 viagra ans levitra risk chest pain atenolol bush valium images of phentermine diet pills cialis wholesale online nexium drug tramadol and gos phentermine phentermine successful stories online pharmacy pill soma u s viagra buying phentermine online us licensed pharmacies leathal dose ambien information phentermine shortage ambien class action law suit viagra femenino cheap phentermine for sale cheap gerneric viagra valium equivalents for lorazepam 92 accepted cod phentermine mood disorder nos and prozac diet pill phentermine 37.5 meridia 15mg buy cheap cheap phentermine shipped by fedex buy viagra $8 per pill xanax and hydrocodone tadalafil vs generic viagra pill tramadol 180 ct tramadol cod delivery diazepam medication sildenafil and steroid use ativan generic lorazepam online soma drug information school finance what is tramadol discounted adipex meridia drug interaction cheap 15mg of meridia is lorazepam a truth serum inventor of lorazepam wyeth no rx phentermine 37.5 90 150 fioricet dosage ambien looks like ambien skin crawling phentermine to order weaning from ambien female free sample viagra minoxidil propecia phentermine online pharmacy's snorted valium buy cheap free online viagra viagra osteoporosis fosamax glucosamine glucophage pregnancy dose prozac impotence pill viagra phentermine fast no prescription nexium online phentermine 37.5mg no perscription fioricet medicine coupons ativan online no prescription articles about ambien cr phentermine no prescription fed-ex day where to puchase cialis online diazepam makes me depressed chlorhydrate de tramadol ingredients in phentermine original phentermine no rx diazepam dose in dogs phentermine adipex no prescripton necessary klonopin review rating xanax adipex buy online phentermine xanax cheap mexico buy tadalafil medicine online ambien fibromyalgia taking xanax lamisil and zoloft drugs tramadol ultram online diazepam no prescription meridia success pain meds and viagra is generic propecia fda approved sibutramin and phentermine and orlistat canadian pharmacy cialis deals cheap viagra nz recreation use of tramadol diazepam and gaba buy lexapro news imprint codes for tramadol medication pill ambien cr how supplied generic cialis pills levitra cialis generic versus brand name side effects of evista and fortical order tadalafil mexico online diazepam ip but phentermine without prescription soma conference san diego cheap soma canada buy generic ambien online drug fosamax osteoporosis treatment diet drug manufacturer meridia order phentermine free consultation buy viagra ambien 2baddiction tramadol chlorhydrate supply price history of valium buy ambien cr no rx finasteride vs dutasteride for steroids famvir zovirax valtrex phentermine diet pills no precription required tadalafil cialis from india cialis bestellen soma 350 flexeril meridia 10mg buy descrition of ambien cr buy 37.5 phentermine ambien cr while pregnant celexa and pregnancy glucophage buy diazepam from us pharmacy lorazepam 1mg picture buy cheap fioricet prescription nexium side effects phentermine with no prescription needed metformin insulin resista side effects if tetracycline vs sumycin foreign pharmacy buy hydrocodone xanax diet phentermine pill official store ups next day air tramadol celexa side effects 5cheapest sildenafil citrate alprazolam buy or xanax tramadol cod 50 states best buy deal online viagra viagra action ambien class suit lorazepam long acting benzodiazepine tramadol lead investigator viagra on-line drug testing ultram interaction tramadol and dalmane can glucophage cause a delayed period nursing article on ativan are ambien and tylenol safe together herbal i viagra is levitra as good as viagra cheap cod online sold tramadol celexa order online ambien patent expired cheap online viagra viagra viagra ultracet tab does paxil cause weight loss cheap diazepam 32 dream online pharmaceutical propecia hypertension pulmonar y sildenafil order phentermine online without perscription pharmacy cialis silagra fioricet migraine treatment ativan or xanax diazepam valium fedex online lorazepam and pregnancy buy ambien overnight what does viagra pill look like lamina propecia buy tramadol cod synthroid effect of fasting blood glucose klonopin to replace ativan klonopin rating xanax hycrococone phentermine viagra online in united states tramadol consult ambien where to buy ambien ambulance picture of viagra bottle tramadol proper doses for dogs phentermine no prescription 90 day order phentermine ativan by phone calcium fosamax asthma prednisone fosamax and teeth phentermine education genuine ham percussor reflex viagra what does viagra do to females buy generic cialis uk fioricet delivery on saturday buy adipex without prescription phentermine u s online physician how to go off paxil cialis zestril interactions lorazepam discovery free levitra sample discount phentermine blue phentermine no prescription online wellbutrin xl online headaches and migraine tramadol buy sildenafil citrate rxonline cialis pharmacy paxil viagra patanol online drug stores metrogel buy phentermine without a doctor's prescription
MySQL configuring, tuning, tips, tricks, config example

MySQL Fine Tunning Tips, examples, recomendations my.ini

MySQL's full-text search capability has few user-tunable parameters.
You can exert more control over full-text searching behavior if you have a MySQL source distribution because some
changes require source code modifications. See Section 2.4.15, “MySQL Installation Using a Source Distribution”.

Note that full-text search is carefully tuned for the most effectiveness. Modifying the default behavior in most cases
can actually decrease effectiveness. Do not alter the MySQL sources unless you know what you are doing.


Most full-text variables described in this section must be set at server startup time. A server restart is required
to change them; they cannot be modified while the server is running.

Some variable changes require that you rebuild the FULLTEXT indexes in your tables. Instructions for doing this are given at the end of this section.

The minimum and maximum lengths of words to be indexed are defined by the ft_min_word_len and ft_max_word_len system variables.
(See Section 5.1.3, “System Variables”.) The default minimum value is four characters; the default maximum is version dependent.
If you change either value, you must rebuild your FULLTEXT indexes. For example, if you want three-character words to be searchable,
you can set the ft_min_word_len variable by putting the following lines in an option file:


[mysqld]
ft_min_word_len=3
Then you must restart the server and rebuild your FULLTEXT indexes. Note particularly the remarks regarding myisamchk in
the instructions following this list.


To override the default stopword list, set the ft_stopword_file system variable. (See Section 5.1.3, “System Variables”.)
 The variable value should be the pathname of the file containing the stopword list, or the empty string to disable stopword filtering. 

 After changing the value of this variable or the contents of the stopword file, restart the server and rebuild your FULLTEXT indexes.

The stopword list is free-form. That is, you may use any non-alphanumeric character such as newline, space, or comma to separate stopwords.
Exceptions are the underscore character (“_”) and a single apostrophe (“'”) which are treated as part of a word. The character set of the
stopword list is the server's default character set; see Section 8.1.3.1, “Server Character Set and Collation”.


The 50% threshold for natural language searches is determined by the particular weighting scheme chosen.
To disable it, look for the following line in myisam/ftdefs.h:

#define GWS_IN_USE GWS_PROB
Change that line to this:

#define GWS_IN_USE GWS_FREQ

Then recompile MySQL. There is no need to rebuild the indexes in this case.

Note
By making this change, you severely decrease MySQL's ability to provide adequate relevance values for the MATCH() function.
If you really need to search for such common words, it would be better to search using IN BOOLEAN MODE instead, which does not observe
 the 50% threshold.


To change the operators used for boolean full-text searches, set the ft_boolean_syntax system variable.
This variable can be changed while the server is running, but you must have the SUPER privilege to do so.
No rebuilding of indexes is necessary in this case. See Section 5.1.3, “System Variables”, which describes the rules governing how to set this variable.


If you want to change the set of characters that are considered word characters, you can do so in two ways.
Suppose that you want to treat the hyphen character ('-') as a word character. Use either of these methods:

Modify the MySQL source: In myisam/ftdefs.h, see the true_word_char() and misc_word_char() macros. Add '-'
to one of those macros and recompile MySQL.

Modify a character set file: This requires no recompilation. The true_word_char() macro uses a “character type”
table to distinguish letters and numbers from other characters. . You can edit the <ctype><map> contents in one of the
character set XML files to specify that '-' is a “letter.” Then use the given character set for your FULLTEXT indexes.

After making the modification, you must rebuild the indexes for each table that contains any FULLTEXT indexes.

If you modify full-text variables that affect indexing (ft_min_word_len, ft_max_word_len, or ft_stopword_file),
or if you change the stopword file itself, you must rebuild your FULLTEXT indexes after making the changes and restarting the server.
To rebuild the indexes in this case, it is sufficient to do a QUICK repair operation:


mysql> REPAIR TABLE tbl_name QUICK;
Each table that contains any FULLTEXT index must be repaired as just shown. Otherwise, queries for the table may yield incorrect results,
and modifications to the table will cause the server to see the table as corrupt and in need of repair.

Note that if you use myisamchk to perform an operation that modifies table indexes (such as repair or analyze),
the FULLTEXT indexes are rebuilt using the default full-text parameter values for minimum word length, maximum word length,
and stopword file unless you specify otherwise. This can result in queries failing.


The problem occurs because these parameters are known only by the server. They are not stored in MyISAM index files.
To avoid the problem if you have modified the minimum or maximum word length or stopword file values used by the server,
specify the same ft_min_word_len, ft_max_word_len, and ft_stopword_file values to myisamchk that you use for mysqld.
For example, if you have set the minimum word length to 3, you can repair a table with myisamchk like this:


shell> myisamchk --recover --ft_min_word_len=3 tbl_name.MYI
To ensure that myisamchk and the server use the same values for full-text parameters, place each one in both the [mysqld] and [myisamchk]
sections of an option file:

[mysqld]
ft_min_word_len=3

[myisamchk]
ft_min_word_len=3
An alternative to using myisamchk is to use the REPAIR TABLE, ANALYZE TABLE, OPTIMIZE TABLE, or ALTER TABLE statements.
These statements are performed by the server, which knows the proper full-text parameter values to use.

After changing the stopword file it is not too wise to use the REPAIR TABLE tablename QUICK as mentioned
in the documentation when you have lots of records.
I had a table with ca 4 million records, and first I fell for this trap. The repair took more than 10 days.
After this I tried DROP INDEX and CREATE INDEX. That took only 40 minutes!


Query cache & min word length changes:

Using REPAIR ... QUICK after altering the min word length setting can make it appear that
the full text index is not working properly if the query cache is enabled.

After using REPAIR to rebuild the full text index I was confused to still get zero found rows
on some queries that should after have returned rows. After using DROP INDEX & CREATE INDEX I got the expected results.
My guess is that this is because of the query cache not being flushed for REPAIR as it is for ALTER TABLE (which is what DROP /
CREATE INDEX maps to).


I don't know whether this issue is a candidate for a bug report / feature request or just a documentation update though.

How I added '-' to the list of word characters:

The documentation is weak in two regards: (1) it doesn't explain how to modify the map and (2) it doesn't touch on
the implications of doing so. I'll try to solve (1), but cannot begin to speak to (2)


The charsets files exist at the location specified by the "character_sets_dir" system variable (use SHOW VARIABLES
to see this) and is typically compiled in as "/usr/share/mysql/charsets". The name of the file is given by the "character_set_...'
variables. Typically the default is "latin1". Thus the file I needed to change was /usr/share/mysql/charsets/latin1.xml

The <ctype><map> is the one we are after (other maps are "upper", "lower", "unicode" and the various collation maps).

The "ctype" map differs from the others in that is has a leading 0x00 before the character map, the meaning of which is unclear to me.

Each entry of the map appears to classify the corresponding character according to the following bitmask:

0x01 Upper-case word character
0x02 Lower-case word character
0x04 Decimal digit
0x08 Printer control (Space/TAB/VT/FF/CR)
0x10 Not-white, not a word
0x20 Control-char (0x00 - 0x1F)
0x40 Space
0x80 Hex digit (0-9, a-f, A-F)

In my case, I needed the dash '-', but nothing else, so I altered the corresponding character position (0x2D - third row,
third from the right) from 0x10 (Not-white, not a word) to 0x01 (Upper-case word).


There is little on the web to address this, but some commentary in the forums suggested that this was NOT the way to do this,
 but rather to write ones own full-text engine as the changing of the <ctype> map has implications for the SQL parser.
 This may be true, but I suspect SQL parsing would require a stricter classification of characters.
 The SQL statement "SELECT a-b FROM test" worked for me after this change.


Altering latin1.xml and restarting the server had the desired result.

Finally, there does not appear to be a way to create a new character set or collation without recompiling.
If this is true, it might be desirable for the standard distribution to include a "custom" character set for just this sort of thing.


Based on your example with the dash `-`, I had a look to make the single quote `'` (which is a word character by default), a non word character.

Thus,
I had a look on a ascii table, the single quote is corresponding to the hexadecimal value 27.
I opened the file share/mysql/charsets/latin1.xml, I went to the upper map (0x27 is actually on the 3rd rows, 8th col from the left).
I went to this position in the ctype map, and surprised !!! This character is already set to 0x10
Not-white, not a word whereas it is a word character during tests !

From there, I'm pretty lost. Why the single quote is not detected as a non word as it should be ?


Modifying the mysql source in myisam/ftdefs.h works.
I modified the line #define misc_word_char(X) ((X)=='\'')
Is it the only way ?


About BLOBs in the database. I'm guessing that they are images and I tried that once and abandoned it on grounds of it beeing to slow.
But that time I had the DB and the webserver on the same machine and in this case you might not want to store any dynamic data on the
webserver and hence your solution with storing images in the DB.

Else the general recommendation (unless you have some other good reason to have the BLOBs in the DB like maybe simpler replication or
something like that) with images is to give them a system specific name and store the image as a normal file with the system specific
name in a directory on the webserver and then you store the info and URL in the database. That way you avoid having a lot of data in the DB
(which speeds things up) and you also avoid the overhead in MySQL to retrieve and transfer the data which is more that if the
webserver just retrieved it form the file system.

Another tip which I used (this is mostly if you are using MyISAM tables) is to separate the BLOBs from the other info.
If my table looked something like:


table1:
id, name, description, comment, ... , myImageBLOB

And I regularily search on the other columns for example a word or frase in the description or comment fields and don't
need the blob all the time. I split the BLOB to a separate table:

table1:
id, name, description, comment, ... ,
table2:
id, myImageBLOB

This also sped up things.

But maybe you can't change anything in the application so we can concentrate on tuning the server.


It is recommended that for exact result after changing my.cnf parameter you will restart the mysql
server and wait for 48 hours. This is because after restarting mysql will clear all memory and allocate new memory.
Based on last 48 hours logs we could go for exact modification.

Regarding read_buffer_size, each thread that does a sequential scan allocates a buffer of this size for each table it scans.

If you do many sequential scans,you might want to increase this value.

Had to do some fine tuning of MySQL 4.1.9 and here is what my.cnf file looks like for a 2GHz machine with 1GB of memory.


[mysqld]
socket=/path/to/mysql.sock
datadir=/var/lib/mysql
skip-locking
skip-innodb
# MySQL 4.x has query caching available.
# Enable it for vast improvement and it may be all you need to tweak.
query_cache_type=1
query_cache_limit=1M
query_cache_size=32M
# max_connections=500
# Reduced to 200 as memory will not be enough for 500 connections.
# memory=key_buffer+(sort_buffer_size+read_buffer_size)*max_connections
# which is now: 64 + (1 + 1) * 200 = 464 MB
# max_connections = approx. MaxClients setting in httpd.conf file
# Default set to 100.
#max_connections=200
#interactive_timeout=180
interactive_timeout=100
#wait_timeout=180
#wait_timeout=100
# Reduced wait_timeout to prevent idle clients holding connections.
#wait_timeout=30
wait_timeout=15
connect_timeout=10
# max_connect_errors is set to 10 by default
#max_connect_errors=10
#table_cache=256
#table_cache=1024
# Checked opened tables and adjusted accordingly after running for a while.
table_cache=512
#tmp_table_size=32M by default
#thread_cache=128
# Reduced it to 32 to prevent memory hogging. Also, see notes below.
thread_cache=32
# key_buffer=258M
# Reduced it by checking current size of *.MYI files, see notes below.
key_buffer=128M
# Commented out the buffer sizes and keeping the default.
# sort_buffer_size=2M by default.
#sort_buffer_size=1M
# read_buffer_size=128K by default.
#read_buffer_size=1M
# read_rnd_buffer_size=256K by default.
#read_rnd_buffer_size=1M
# myisam_sort_buffer_size=8M by default.
#myisam_sort_buffer_size=64M
# thread_concurrency = 2 * (no. of CPU)
thread_concurrency=2
# log slow queries is a must. Many queries that take more than 2 seconds.
# If so, then your tables need enhancement.
log_slow_queries=/var/log/mysqld.slow.log
long_query_time=2

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
open_files_limit=8192


[mysqldump]
quick
max_allowed_packet=16M


[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M

[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M

[mysqlhotcopy]
interactive-timeout

[client]
socket=/path/to/mysql.sock
Below are notes on some of the important variables, I took down while tuning the config file.

query_cache_size:

MySQL 4 provides one feature that can prove very handy - a query cache. In a situation where the database has to repeatedly run the same queries on the same data set, returning the same results each time, MySQL can cache the result set, avoiding the overhead of running through the data over and over and is extremely helpful on busy servers.
key_buffer_size:

The value of key_buffer_size is the size of the buffer used with indexes. The larger the buffer, the faster the SQL command will finish and a result will be returned. The rule-of-thumb is to set the key_buffer_size to at least a quarter, but no more than half, of the total amount of memory on the server. Ideally, it will be large enough to contain all the indexes (the total size of all .MYI files on the server).

A simple way to check the actual performance of the buffer is to examine four additional variables: key_read_requests, key_reads, key_write_requests, and key_writes.

If you divide the value of key_read by the value of key_reads_requests, the result should be less than 0.01. Also, if you divide the value of key_write by the value of key_writes_requests, the result should be less than 1.
table_cache:

The default is 64. Each time MySQL accesses a table, it places it in the cache. If the system accesses many tables, it is faster to have these in the cache. MySQL, being multi-threaded, may be running many queries on the table at one time, and each of these will open a table. Examine the value of open_tables at peak times. If you find it stays at the same value as your table_cache value, and then the number of opened_tables starts rapidly increasing, you should increase the table_cache if you have enough memory.
sort_buffer:
The sort_buffer is very useful for speeding up myisamchk operations (which is why it is set much higher for that purpose in the default configuration files), but it can also be useful everyday when performing large numbers of sorts.
read_rnd_buffer_size:
The read_rnd_buffer_size is used after a sort, when reading rows in sorted order. If you use many queries with ORDER BY, upping this can improve performance. Remember that, unlike key_buffer_size and table_cache, this buffer is allocated for each thread. This variable was renamed from record_rnd_buffer in MySQL 4.0.3. It defaults to the same size as the read_buffer_size. A rule-of-thumb is to allocate 1KB for each 1MB of memory on the server, for example 1MB on a machine with 1GB memory.
thread_cache:


If you have a busy server that's getting a lot of quick connections, set your thread cache high enough that the Threads_created value in SHOW STATUS stops increasing. This should take some of the load off of the CPU.
tmp_table_size:
"Created_tmp_disk_tables" are the number of implicit temporary tables on disk created while executing statements and "created_tmp_tables" are memory-based. Obviously it is bad if you have to go to disk instead of memory all the time.


Posted by zdravko on December 26 2007 15:28:33 672 Reads · Print
Ratings
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Shoutbox
You must login to post a message.

godemo
15/11/2008 04:56
A demo for Simple Feedback ZDR would be nice

dot
29/07/2008 21:23
hey can anyone help me here with how to link Submit button to a thank you page

dolarat
10/03/2008 12:17
hey all

konv
21/02/2008 04:19
i may be in the wrong place but here goes ,i want to learn about shell/severs .as i am having problems staying connected to a irc chay room because of major lag from their saever any help would be app

Copyright © 2008 - www.webtoolbag.com