![]() |
|
#1
|
|||
|
|||
|
HOWTO: Optimize MySQL 4.x
Tweak MySQL
I've found that these configuration options posted by "aussie" on the Rackshack forums work well with MySQL 4.x on my machines. I suggest implementing them to alieviate the load MySQL may cause when you run big SQL sites on your server: Code:
vi /etc/my.cnf [ENTER] Quote:
Code:
/etc/rc.d/init.d/mysqld restart [ENTER] |
|
#2
|
|||
|
|||
|
thanks, this helps. How can I enable certain other host maks to access the server? I don't want all TLDs to be able to access, just ones on server and 2 other TLDs
|
|
#3
|
|||
|
|||
|
Directadmin can handle host access in the database area of the user control panel. You can also control this through phpMyAdmin under your MySQL root user.
Hope this helps. |
|
#4
|
||||
|
||||
|
log into phpmyadmin with the username da_admin and your admin password (the original one)
__________________
Mark Harris mharris@octane-design.biz |
|
#5
|
|||
|
|||
|
Hello,
DirectAdmin does have the mysql hosts feature.. Just click your database name, and the "Access Hosts" table should be at the bottom. John |
|
#6
|
|||
|
|||
|
i'm sorry but i don't find "/etc/my.cnf" in my server, is that how to compatible with DA?
do i just creat a new file and copy the content there? btw, i've nothing at /var/log/mysql.log is there anything wrong here at my server? Last edited by neorder; 04-11-2004 at 08:44 PM. |
|
#7
|
||||
|
||||
|
The my.cnf it not added during the default install. You can search the forums for more information about this but you can basically add what was posted as a new file called my.cnf.
|
|
#8
|
||||
|
||||
|
MySQL simply runs on defaults unless the my.cnf exists, there are actually 3 places it looks for the config with /etc/my.cnf just being the first... add them and it will override the default settings..
Chris
__________________
OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon! ProWebUK - Quality Web Services DirectAdmin Server Checklist |
|
#9
|
|||
|
|||
|
thanks, i will read more.
|
|
#10
|
|||
|
|||
|
Hello, I need some help:
[root]# /etc/rc.d/init.d/mysqld restart Killing mysqld with pid 2812 Wait for mysqld to exit\c .\c .\c .\c .\c .\c done [root]# /etc/rc.d/init.d/mysqld restart No mysqld pid file found. Looked for /var/lib/mysql/purple.nemesis.net.pid. [root]# Starting mysqld daemon with databases from /var/lib/mysql 040423 18:18:11 mysqld ended [root]# service mysqld restart No mysqld pid file found. Looked for /var/lib/mysql/purple.nemesis.net.pid. [root]# Starting mysqld daemon with databases from /var/lib/mysql 040423 18:40:31 mysqld ended any idea on how to fix it? Last edited by Anzix; 04-23-2004 at 07:42 PM. |
|
#11
|
|||
|
|||
|
Have you modified this my.cnf file at all? I think mysqld is looking for the pid file in one location that you have specified, but it is non-existant.
|
|
#12
|
|||
|
|||
|
i had a problem with mysql server going down, because google bots tried to login a lot, causing many many cookies etc
we now blocked google from entering the forums, that solved it, but will this maybe prevent mysql going down? |
|
#13
|
|||
|
|||
|
in what way is this cnf better then the default 1?
|
|
#14
|
|||
|
|||
|
Quote:
|
|
#15
|
|||
|
|||
|
they recommand
Quote:
anyway, i did this optimization, it was a WOW when i see the out come, i have one site used to have 0.2 page generate speed, now it's only 0.08! a small question is Quote:
|
|
#16
|
|||
|
|||
|
to m it seems this config is best suited if you have 1.5 gb ram
key_buffer_size = (record_buffer + sort_buffer)*max_connections = 1500 |
|
#17
|
|||
|
|||
|
on what thread is this onfo based upon? on ev1 servers
|
|
#18
|
||||
|
||||
|
Quote:
)
__________________
OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon! ProWebUK - Quality Web Services DirectAdmin Server Checklist |
|
#19
|
|||
|
|||
|
no, i mean, i wanted to know the link to the thread on rack shack forums where this info comes from, so i can check what peoples replys are there
|
|
#20
|
|||
|
|||
|
any idea of the values to change for a dual processor ?
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mysql / Ownership (wrong) | Zoner | CustomBuild | 6 | 10-28-2007 10:34 AM |
| How to delete all temp and waste files !! ? | rahulw | Admin-Level Difficulties | 10 | 06-02-2007 03:38 PM |
| Lots of MySql sessions open | chartmusic | MySQL / PHP | 4 | 03-13-2007 06:28 AM |
| Mysql Error | bigboy | MySQL / PHP | 0 | 05-20-2006 01:27 AM |
| HOWTO: Convert to courier imap using mysql | ballyn | How-To Guides | 81 | 12-26-2005 06:55 AM |