Before You Start
Learn what you need to know before getting started with BioStar X. BioStar X supports 64-bit operating systems. Check the system requirements of the PC before you install BioStar X, and then install it.
Pre-installation notes
Before installing BioStar X, check the following and proceed with the installation.
-
BioStar X can only be installed on a 64-bit operating system.
-
If you are using MS SQL 2012 Express, install Service Pack 3.
-
If you are using MS SQL 2014 Express, install Service Pack 2.
-
If you are using MS SQL Server, set the
Collationoption for the server and each table to CI (Case-insensitive). -
When you back up a database from an earlier version of BioStar X, disable all services before you proceed. Also, back up and restore the AC database and the TA database together, or you cannot use the TA database.
-
To back up the BioStar X database, also back up the enckey file in the \Program Files\BioStar X\util folder and the system.conf and setting.conf files in the \Program Files\BioStar X folder. Otherwise, you cannot use the database.
-
For the default values for the ports used by BioStar X, see Service Settings. If another program occupies the same port, BioStar X may not work properly.
Check the database
If you are using a database that you set up yourself, check the following before installing BioStar X.
MariaDB
-
In the my.cnf file, change the options under the
[mysql]section as follows.my.cnfcharacter-set-server=utf8collation-server=utf8_unicode_cimax_connections = 600 -
In the my.cnf file, add the following options under the
[mysql]section.my.cnflog_bin_trust_function_creators = 1group_concat_max_len = 102400 -
Connect to MariaDB with root privileges, and run the command below.
SQLGRANT SUPER ON . TO user_id@'localhost' IDENTIFIED BY "password";GRANT SUPER ON . TO user_id@'%' IDENTIFIED BY "password";
MS SQL Server
-
Set the
Collationoption for all databases and tables to CI (Case-insensitive). -
Database names can contain only numbers, English letters (case-sensitive), and the special symbols
-and_.
Set up ports
-
After you run SQL Server Configuration Manager, set the TCP/IP Protocol under Protocols for SQLEXPRESS to the port number to use.
-
Restart the SQL Server service to apply the settings.
Create a user and database
-
Log in to SQL Server Management Studio with the sa account using SQL Server Authentication.
-
Right-click Security, and then click New Login.
-
Enter a name in the Login name field, and then select SQL Server Authentication.
-
Enter the password to use in the Password and Confirm password fields, and then clear Enforce password policy.
-
Click OK.
-
Right-click Databases, and then click New Database.
-
Enter a name in the Database name field.
-
Enter the login name set in step 3 in the Owner field.
In the Database Files section, set the following recommended values. Set Autogrowth to a fixed size (MB/GB) rather than a percentage, and avoid very small increments that cause frequent growth events.
Small organizations (10 GB or less)
-
Data: Initial Size 1 to 5 GB, Autogrowth 100 to 512 MB
-
Log: Initial Size 512 MB to 2 GB, Autogrowth 100 to 512 MB
-
TempDB: Initial Size 512 MB to 1 GB
For example: Data 2 GB (Autogrowth 256 MB) / Log 1 GB (Autogrowth 128 MB) / TempDB 512 MB
Medium organizations (10 to 500 GB)
-
Data: Initial Size 10 to 50 GB, Autogrowth 512 MB to 1 GB
-
Log: Initial Size 5 to 10 GB, Autogrowth 512 MB to 1 GB
-
TempDB: Initial Size 2 to 8 GB
For example: Data 20 GB (Autogrowth 1 GB) / Log 5 GB (Autogrowth 512 MB) / TempDB 4 GB
Large organizations (500 GB or more)
-
Data: Initial Size at least 100 GB, Autogrowth 1 to 4 GB
-
Log: Initial Size 20 to 100 GB, Autogrowth 1 to 4 GB
-
TempDB: Initial Size 8 to 32 GB
For example: Data 100 GB (Autogrowth 2 GB) / Log 50 GB (Autogrowth 2 GB) / TempDB 16 GB
-
Don't set Autogrowth to very small increments or set Maxsize to Unlimited; set appropriate limits based on expected growth, or monitor it.
-
In environments with high transaction volume, back up the log regularly to prevent the log file size from increasing.
Set up the Windows Authentication database
Preliminary settings
If you use Microsoft Windows Active Directory, complete the prerequisites below before you set up the Windows Authentication database.
-
Log in to SQL Server Management Studio with an administrator account.
-
Right-click Security, and then click New Login.
-
Select Windows Authentication, and then click Search.
-
Click on the location in the Select a user or group window, select the Active Directory path, and click OK.
-
Enter the user name in the Enter object name to select field, then click Check Names > OK.
-
Under Select a page, click Server Roles.
-
Select sysadmin and then click OK.
-
Under Select a page, click User Mapping.
-
Select ac, master, ta, and ve, and set Default Schema to dbo.
-
To save the settings, click OK.
Set up MS SQL Windows Authentication with an Active Directory account
-
Run services.msc.
-
In the SQL Server database Properties > Log On window, select Specify account, and then log in with a domain user account.
-
Add port 1433 as an exception in Windows Firewall.
-
Create empty ac, ta, and ve databases in SQL Server using sysadmin authentication.
-
Set the domain user to use Windows Authentication for SQL Server, and assign all permissions except sysadmin to the ac, ta, and ve databases.
-
In services.msc, connect to all services except Local Computer.
-
Set the domain user as an administrator on the local service computer.
-
Connect to MS SQL ODBC.
Set up the database
-
Run SQL Server Configuration Manager, and then click Client Protocols under SQL Native Client.
-
Select TCP/IP, and then check the default port.
-
Under SQL Server Network Configuration, click Protocols for SQL EXPRESS.
-
Make sure the ODBC port in TCP/IP is set to the same value as the default port.
-
Log in to SQL Server Management Studio with an administrator account.
-
Click Security > Logins, and then double-click NT AUTHORITY\SYSTEM.
-
Under Select a page, click Server Roles.
-
Select public and sysadmin, then click OK.
-
Under Select a page, click User Mapping.
-
Select the ac, ta, ve database and click OK to save.