Manual |
UltraScan supports an SQL database interface for managing the AUC data, such as experimental scans, buffer files, peptide files, investigator information, and so on. MySQL is an open source, very capable database engine available for all hardware platforms, and has been tested to perform well with UltraScan. Please follow these instructions to get MySQL properly initialized to work with UltraScan on your system:
Getting MySQL onto your computer:
safe_mysqld --user=mysql -O key_buffer=16M -O \ table_cache=128 -O sort_buffer=4M -O record_buffer=1M -O max_allowed_packet=24M &
systemprompt#: mysql -u root
mysql>
mysql> CREATE DATABASE mydata mysql> quit
systemprompt#: mysql -u root mydata mysql> GRANT ALL PRIVILEGES ON *.* TO sqluser@mycomputer.private.net IDENTIFIED BY 'secret_word' WITH GRANT OPTION; mysql> quit
Repeat for each additional user for which you want to grant access. MySQL will not use the system password, "secret_word" in this case will go with the database, not the user name.
systemprompt#: mysql -u root mydata mysql> GRANT ALL PRIVILEGES ON *.* TO user@"%" IDENTIFIED BY 'secret_word' WITH GRANT OPTION; mysql> quit
PLATFORM SPECIFIC INFORMATION:
Check to see if you already have an older version of MySQL installed:
rpm -qa |grep MySQL
If you do, then remove each of them with:
rpm -e MySQL-something
Install these MySQL packages:
MySQL-client-4.0.18-0.i386.rpm
MySQL-server-4.0.18-0.i386.rpm
MySQL-devel-4.0.18-0.i386.rpm
MySQL-shared-4.0.18-0.i386.rpm
MySQL-Max-4.0.18-0.i386.rpm
At this address (scroll down to Linux x86 RPM downloads): http://www.mysql.com/downloads/mysql-4.0.html
Create a file called /etc/my.cnf with these contents:
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
set-variable = key_buffer=16M
set-variable = max_allowed_packet=24M
set-variable = thread_stack=64K
set-variable = table_cache=128
set-variable = sort_buffer=4M
set-variable = net_buffer_length=2K
set-variable = record_buffer=1M
server-id = 1
_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
innodb_log_arch_dir = /var/lib/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
set-variable = innodb_buffer_pool_size=16M
set-variable = innodb_additional_mem_pool_size=2M
# Set .._log_file_size to 25 % of buffer pool size
set-variable = innodb_log_file_size=5M
set-variable = innodb_log_buffer_size=8M
innodb_flush_log_at_trx_commit=1
set-variable = innodb_lock_wait_timeout=50
Restart MySQL with:
/etc/init.d/mysql
Make MySQL start at boot time:
chkconfig mysql on
Change directory to /usr/lib/mysql. Now we need to make a shared library
with this command:
ld --whole-archive -shared -o libmysqlclient.so.11 libmysqlclient.a
Add /usr/lib/mysql to /etc/ld.so.conf and run ldconfig.
Now, the Qt plugin will work with your new install of MySQL.
shell> chcap "CAP_SCHED_MGT+epi" /opt/mysql/libexec/mysqld
Note: The mysql software may be installed in a different place on your computer
Please keep in mind the following security considerations:
UltraScan provides these tokens to the MySQL database from the configuration files.
This document is part of the UltraScan Software Documentation
distribution.
Copyright © notice.
The latest version of this document can always be found at:
Last modified on January 12, 2003.