Download and run CSQL on Linux -Only two commands will be used to start the server
2010-01-20 10:07
826 查看
from Jitendra's CSQL Blog :http://it.toolbox.com/blogs/jitendras-blog/download-and-run-csql-on-linux-only-two-commands-will-be-used-to-start-the-server-31646
If you ever wanted to start using the Enterprise CSQL MMDB on your computer, this article is for you. It will show how to download, configure and test the CSQL on your computer.
The released binary trial version csqlmmdb2.5 is ready to be used for 30-days by the CSQL users. The first order of business is to drop by the official CSQL web site (http://www.csqldb.com/download.html) and get a copy of the last stable release of the software. This is as easy as it sounds. The version of CSQL is licensed and may be freely downloaded and used under the terms of that license.
jdk1.6
Follow the section "Download and Setting up JDK1.6" at end of this chapter for download, and setting up the path. Before start the csql server in your machine, it is recommended that you should install and set the path of jdk1.6 to work with JDBC Driver.
2. find the file named license under the CSQL root directory
3. Copy the provided key value and paste it into this file.
http://csqldb.com/download.html
2.Change to the directory that has the TAR download
3.Type the following command at the prompt
$tar zxvf csqlmmdb2.5-x86.tar.gz
This will extract the files under csqlmmdb2.5-x86 directory in the current directory.
4.Change the directory to csqlmmdb2.5-x86 and Copy the provided key value and paste it into the file named 'license'.
5.Type the below command at the command prompt.
$. ./setupenv.ksh
This will build and set all the environmental variables defined in setupenv.ksh file present in directory.
6.Start the csql server using below command at the prompt
$csqlserver
7.You should now get the display similar to:
ConfigValues
getPageSize 8192
getMaxProcs 100
.
.
.
sysdb size 1048576 dbsize 10485760
System Database initialized
Database server started
All right, the database has been successfully configured and its time to play with some SQL statements.
NOTE: To stop the csql server just presses Ctrl+c.
8.Open up another terminal and type the following command to starts the csql client.
$. ./setupenv.ksh
$csql
9.Once the client is running, you should get the CSQL> prompt. Type the below command at this prompt.
CSQL>show tables;
10.Display should be similar to:
========TableNames=======
No table exist
========================
Now, you will be creating tables and feeling happy with CSQL.
After download the package, follow the steps for path set up:
1.To know the path of your jdk installation, type the below command in your prompt.
$locate javac
2.You may get the similar output where the installation path would be different in your machine.
/opt/java/jdk1.6.0_04/bin/javac
/opt/java/jdk1.6.0_04/man/ja_JP.eucJP/man1/javac.1
/opt/java/jdk1.6.0_04/man/man1/javac.1
/opt/java/jdk1.6.0_04/sample/javac
/usr/share/vim/vim70/compiler/javac.vim
/usr/share/vim/vim70/syntax/javacc.vim
3.Now set the directory which has JDK1.6 compiler
$export JDK_HOME=/opt/java/jdk1.6.0_04
$export PATH=$JDK_HOME/bin:$PATH
If you ever wanted to start using the Enterprise CSQL MMDB on your computer, this article is for you. It will show how to download, configure and test the CSQL on your computer.
The released binary trial version csqlmmdb2.5 is ready to be used for 30-days by the CSQL users. The first order of business is to drop by the official CSQL web site (http://www.csqldb.com/download.html) and get a copy of the last stable release of the software. This is as easy as it sounds. The version of CSQL is licensed and may be freely downloaded and used under the terms of that license.
Required Package to work with JDBC Driver:
jdk1.6Follow the section "Download and Setting up JDK1.6" at end of this chapter for download, and setting up the path. Before start the csql server in your machine, it is recommended that you should install and set the path of jdk1.6 to work with JDBC Driver.
How to get the trial key ?
1. Contact at address : sales@csqldb.com2. find the file named license under the CSQL root directory
3. Copy the provided key value and paste it into this file.
Follow the steps to download CSQL MMDB:
1.Download csqlmmdb2.5-x86.tar.gz from Official web site.http://csqldb.com/download.html
2.Change to the directory that has the TAR download
3.Type the following command at the prompt
$tar zxvf csqlmmdb2.5-x86.tar.gz
This will extract the files under csqlmmdb2.5-x86 directory in the current directory.
4.Change the directory to csqlmmdb2.5-x86 and Copy the provided key value and paste it into the file named 'license'.
5.Type the below command at the command prompt.
$. ./setupenv.ksh
This will build and set all the environmental variables defined in setupenv.ksh file present in directory.
6.Start the csql server using below command at the prompt
$csqlserver
7.You should now get the display similar to:
ConfigValues
getPageSize 8192
getMaxProcs 100
.
.
.
sysdb size 1048576 dbsize 10485760
System Database initialized
Database server started
All right, the database has been successfully configured and its time to play with some SQL statements.
NOTE: To stop the csql server just presses Ctrl+c.
8.Open up another terminal and type the following command to starts the csql client.
$. ./setupenv.ksh
$csql
9.Once the client is running, you should get the CSQL> prompt. Type the below command at this prompt.
CSQL>show tables;
10.Display should be similar to:
========TableNames=======
No table exist
========================
Now, you will be creating tables and feeling happy with CSQL.
Download and Setting up JDK1.6:
By click on this link (http://csqldb.com/download.html) you will be downloading the package along with CSQL MMDB.After download the package, follow the steps for path set up:
1.To know the path of your jdk installation, type the below command in your prompt.
$locate javac
2.You may get the similar output where the installation path would be different in your machine.
/opt/java/jdk1.6.0_04/bin/javac
/opt/java/jdk1.6.0_04/man/ja_JP.eucJP/man1/javac.1
/opt/java/jdk1.6.0_04/man/man1/javac.1
/opt/java/jdk1.6.0_04/sample/javac
/usr/share/vim/vim70/compiler/javac.vim
/usr/share/vim/vim70/syntax/javacc.vim
3.Now set the directory which has JDK1.6 compiler
$export JDK_HOME=/opt/java/jdk1.6.0_04
$export PATH=$JDK_HOME/bin:$PATH
相关文章推荐
- CommandError: App 'article' has migrations. Only the sqlmigrate and sqlflush commands can be used wh
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
- HOW TO RUN YOUR WEB SERVER AND MQTT WEBSOCKETS BROKER ON THE SAME PORT
- [原]Error while trying to run project: Unable to start debugging on the web server. 内存分配访问无效
- Cannot connect to WMI provider.You do not have permission or the server is unreachable.Note that you can only manager SQL Server 2005 and later version with SQL Server Configuration Manager.Invalid namespace [0x8004100e]
- Unable to start debugging on the web server. The project is not configured to be debugged.
- HOW TO RUN YOUR WEB SERVER AND MQTT WEBSOCKETS BROKER ON THE SAME PORT
- 解决Azure “Failed to start Storage Emulator: the SQL Server instance `.\' could not be found.”
- Unable to start the Domino 8.5 server as a service and run the Java Cont...
- In order to run a trace against SQL Server you must be a member of sysadmin fixed server role or have the ALTER TRACE permission.
- Unable to start debugging on the web server. The project is not configured to be debugged.
- iOS:Class Foo is implemented in both MyApp and OtherApp. One of the two will be used. Which one is u
- How to use Trusted Connection when SQL server and web Server are on two separate machines.
- [Graphics] UIColor created with component values far outside the expected range, Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once.
- An explicit value for the identity column in table can only be specified when a column list is used and IDENTITY_INSERT is ON
- iOS9 getting error “an ssl error has occurred and a secure connection to the server cannot be made”
- Unable to start debugging on the web server. A debugger is alreddy attached.问题原因
- Class JavaLaunchHelper is implemented in both … libinstrument.dylib. One of the two will be used. Wh
- Class JavaLaunchHelper is implemented in both … libinstrument.dylib. One of the two will be used. Wh
- How to build and run ARM Linux on QEMU from scratch