pomoc so startom mysql
pri starte mysql mi pise nieco taketo
[root@localhost mysql]# bin/mysqld_safe --user=mysql &
[1] 4644
[root@localhost mysql]# Starting mysqld daemon with databases from /usr/local/mysql/var
STOPPING server from pid file /usr/local/mysql/var/localhost.pid
070523 14:40:26 mysqld ended
[1]+ Done bin/mysqld_safe --user=mysql
a pravdepodobne to ani nenastartuje,co s tim?
Pre pridávanie komentárov sa musíte prihlásiť.
potrebne kniznice
libtermcap
libtermcap-devel
mozno ich aj mas :))
cd /usr/local/src
tar -zxvf mysql-5.x.x.tar.gz
cd mysql-5.x.x
./configure \
--prefix=/usr/local/mysql \
--with-unix-sock-path=/tmp/mysql.sock \
--with-charset=utf8
make
make install
groupadd mysql
useradd -g mysql mysql
cp support-files/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql
bin/mysql_install_db --user=mysql
chown -R root .
chown -R mysql var
chgrp -R mysql .
a nakoniec
/etc/my.cnf
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
net_buffer_length = 2K
thread_stack = 64K
skip-networking
server-id = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[isamchk]
key_buffer = 8M
sort_buffer_size = 8M
[myisamchk]
key_buffer = 8M
sort_buffer_size = 8M
[mysqlhotcopy]
interactive-timeout