mysql - configuration file

pop

Member
Oct 11, 2003
7
0
151
Hello,

1. what is the mysql upload limit ? are there any restrictions ?

2. where is the mysql configuartion file located ? to change any configurations ?
 

mickalo

Well-Known Member
Apr 16, 2002
782
5
318
N.W. Iowa
Originally posted by pop
Hello,

1. what is the mysql upload limit ? are there any restrictions ?

2. where is the mysql configuartion file located ? to change any configurations ?
what upload limit... this is controlled by your application, like Perl or PHP that is uploading data too MySQL :rolleyes:

the configuration file is normally located either in the /etc/my.cnf or on most RH/Linux RPM default installs, in the /var/lib/mysql/my.cnf

when MySQL starts, it'll look first in the /etc folder, then the /var/lib/mysql folder for the configuration file, if none found, it will use all the default settings.

If your using a Cpanel box, then there is a my.cnf file in the /usr/local/cpanel/whostmgr/ folder also.

Hope this helps :)
Mickalo
 

SarcNBit

Well-Known Member
Oct 14, 2003
1,001
3
168
Re: Re: mysql - configuration file

Originally posted by mickalo
what upload limit... :rolleyes:
You may need to adjust the max_allowed_packet value in your my.cnf (at the location mickalo provided) if you are running into errors.
 

mickalo

Well-Known Member
Apr 16, 2002
782
5
318
N.W. Iowa
Re: Re: Re: mysql - configuration file

Originally posted by SarcNBit
You may need to adjust the max_allowed_packet value in your my.cnf (at the location mickalo provided) if you are running into errors.
I've found that on a med to med/heavy DB system, about 1M usually does the trick... or should :)

Mickalo
 

ehpsubrat

Member
Dec 19, 2003
15
0
151
India
In one of my server the my.cnf file shows only two lines of configuration
This my.cnf file is exist in the /etc and in the /usr/local/cpanel/whostmgr/ directory

[mysqld]
set-variable = max_connections=500
safe-show-database

Where I can edit the rest of the option. Any Idea ??
 

zenpig66

Active Member
Nov 16, 2002
43
0
156
One place to check is /usr/share/mysql/ which will have a few example .cnfs from my-huge.cnf to my-small.cnf which in my opinion work well 'out of the box'. They are well commented to give you an idea of what is going on and if you want to try one, you'd need to copy it as /etc/my.cnf, replacing the default my.cnf in the /etc directory. I wouldn't use my-huge.cnf unless you are pretty much running a server dedicated to mysql but it is trial and error to see what works best. Once you replace it, you'd need to stop mysql and kill all mysqld processes then start mysql back up again for the new my.cnf to 'take effect'.

This is probably a good place to start.....once you become comfortable with it all, you may find you want to play with it more and optimize my.cnf further.