Showing posts with label mysql. Show all posts
Showing posts with label mysql. Show all posts
Saturday, February 26, 2011
how many InnoDB rows are read per second in mysql
mysqladmin extended-status -i 1 -r -p -uroot | grep -e "Com_select"
Monday, November 17, 2008
How to set up Apache, MySQL and PHP on FreeBSD
# cd /usr/ports/www/apache13-modssl
# make install
# echo 'apache_enable ="YES"' >> /etc/rc.conf
# echo 'apache_flags ="-DSSL"' >> /etc/rc.conf
# echo 'mysql_enable ="YES"' >> /etc/rc.conf
# /usr/local/etc/rc.d/mysql-server start
# mysqladmin -u root password newpassword
# cd /usr/ports/www/mod_php4
# make install clean
# cd /usr/ports/lang/php4-extensions
# make install clean
# vi /usr/local/etc/apache/httpd.conf
AddType application/x- httpd-php . php
AddType application/x- httpd-php-source . phps
# /usr/local/etc/rc.d/apache.sh start
# whoami
root
# cd ~
# openssl genrsa -des3 -out server.key 1024
# openssl req -new -key server.key -out server.csr
# openssl x509 -req -days 365 \
-in /root/server.csr \
-signkey /root/server.key \
-out /root/server.crt
# cp ~/ ./server.key /usr/local/etc/apache/ssl.key/
# cp ~/ ./server.crt /usr/local/etc/apache/ssl.crt/
Labels:
apache,
freebsd,
mysql,
php,
system administration
Saturday, November 1, 2008
Purge Master Logs in MySQL
If the files '/var/log/mysql/server.bin.xxx' are large, you can manage them:
log into mysql as root. this is not the systems' root user, this is a different root user that is local to mysql.
# mysql -u root -p
mysql> purge master logs before 'xxxx-mm-dd 00:00:00';
To get today's date: `date +"%Y%m%d %H:%M:%S"`
log into mysql as root. this is not the systems' root user, this is a different root user that is local to mysql.
# mysql -u root -p
mysql> purge master logs before 'xxxx-mm-dd 00:00:00';
To get today's date: `date +"%Y%m%d %H:%M:%S"`
Subscribe to:
Posts (Atom)