If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > changing system variables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-25-03, 08:40
rexselin rexselin is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 109
changing system variables

hi ,

can I please know how to change a system variable ?
I gave a query like this :

set GLOBAL max_connections=500;

but this is not working out . The mysql front end that I use reports that I have an error in this statement . Am I missing any thing here ?

Selin
Reply With Quote
  #2 (permalink)  
Old 11-26-03, 01:07
deRusett deRusett is offline
Registered User
 
Join Date: Nov 2003
Posts: 8
should max_connections not be

MAX_CONNECTIONS or $max_connections
Reply With Quote
  #3 (permalink)  
Old 12-01-03, 07:44
rexselin rexselin is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 109
reply-system variables

Thanks pal,
I did try this one but it didn't work out . I am able to view these variables but I have a requirement that needs me to change the max_connections variable ..
Is it possible for me to directly go and edit it in some file ?
Reply With Quote
  #4 (permalink)  
Old 12-02-03, 10:53
asherh asherh is offline
Registered User
 
Join Date: Jul 2003
Posts: 34
Hi,

You could edit your /etc/my.cnf file (you may need to create this), adding something along the lines of (under the [mysqld] group of the file)...

[mysqld]
max_connections=500

Just change the 500 value to whatever you want.

http://www.mysql.com/doc/en/Option_files.html

Cheers,
Ash
Reply With Quote
  #5 (permalink)  
Old 12-04-03, 11:41
rexselin rexselin is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 109
edit-system variables worked

Hi,
It worked . Thanks a lot Pal .
Selin
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On