Last Tuesday I read the post from Dave where he encouraged people to give drizzle a shot. It got me thinking “why on earth have I not tried it before?” and so Wednesday night, having the options of watching criminal minds or dexter on tv or compiling drizzle, i figured, lets do the right thing for once and get on with it.
I must say, I was not too eager to compile a new tool but the guys at drizzle have done a good job (at least as regards Ubuntu (Lucid) since thats where I installed it) at documenting what is needed. I only needed to improvise a couple of times but that was it.
So here go the commands I used:
sudo apt-get install -y python-software-properties
sudo add-apt-repository ppa:drizzle-developers/ppa
sudo add-apt-repository ppa:bzr/ppa
sudo apt-get update -y
sudo apt-get install -y drizzle-dev
sudo apt-get upgrade -y
#here you download drizzle from launchpad
cp /home/dcassar/drizzle7-2010.09.1802.tar.gz .
ls
gunzip drizzle7-2010.09.1802.tar.gz
tar -xvf drizzle7-2010.09.1802.tar
ln -s drizzle7-2010.09.1802 drizzle
cd drizzle
./configure --prefix=/mysql/drizzle/
cd drizzled/
make
make install
cd /mysql/drizzle
mkdir var
./sbin/drizzled --no-defaults --datadir=$PWD/var >> $PWD/var/drizzle.err
I didn’t use the recommended
./sbin/drizzled --no-defaults --datadir=$PWD/var >> $PWD/var/drizzle.err 2>&1 &
only because this was the first run so I wanted to see what came out, but you should start it using the latter command once you know it’s all good.
Once it is started I did the following (just like mysql!)
[dcassar@malta-desktop /mysql/drizzle/bin 09:39:30]$ ./drizzle
Welcome to the Drizzle client.. Commands end with ; or \g.
Your Drizzle connection id is 1
Connection protocol: mysql
Server version: 2010.09.1802 Source distribution (drizzle)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
drizzle> \s
--------------
Drizzle client 7 build 2010.09.1802, for pc-linux-gnu (i686) using readline 5.2
Connection id: 1
Current database:
Current user: @::1
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 2010.09.1802 Source distribution (drizzle)
Protocol: mysql
Protocol version: 10
Connection: localhost
TCP port: 3306
--------------
drizzle> show databases;
+--------------------+
| Database |
+--------------------+
| DATA_DICTIONARY |
| INFORMATION_SCHEMA |
+--------------------+
2 rows in set (0 sec)
drizzle> create database preacher;
Query OK, 1 row affected (0 sec)
drizzle> show databases;
+--------------------+
| Database |
+--------------------+
| DATA_DICTIONARY |
| INFORMATION_SCHEMA |
| preacher |
+--------------------+
3 rows in set (0 sec)
drizzle> ?
List of all Drizzle commands:
Note that all text commands must be first on line and end with ';' or \g
? (\?) Synonym for `help'.
clear (\c) Clear command.
connect (\r) Reconnect to the server. Optional arguments are db and host.
delimiter (\d) Set statement delimiter. NOTE: Takes the rest of the line as new delimiter.
ego (\G) Send command to drizzle server, display result vertically.
exit (\q) Exit drizzle. Same as quit.
go (\g) Send command to drizzle server.
help (\h) Display this help.
nopager (\n) Disable pager, print to stdout.
notee (\t) Don't write into outfile.
pager (\P) Set PAGER [to_pager]. Print the query results via PAGER.
print (\p) Print current command.
prompt (\R) Change your drizzle prompt.
quit (\q) Quit drizzle.
rehash (\#) Rebuild completion hash.
source (\.) Execute an SQL script file. Takes a file name as an argument.
status (\s) Get status information from the server.
tee (\T) Set outfile [to_outfile]. Append everything into given outfile.
use (\u) Use another database. Takes database name as argument.
warnings (\W) Show warnings after every statement.
nowarning (\w) Don't show warnings after every statement.
drizzle> prompt drizzle \D >
PROMPT set to 'drizzle \D > '
drizzle Thu Oct 07 09:40:25 2010 > select "Wahoooo this is sweet :)" as message;
+--------------------------+
| message |
+--------------------------+
| Wahoooo this is sweet :) |
+--------------------------+
1 row in set (0 sec)
drizzle Thu Oct 07 09:40:51 2010 >
Well, I guess this is a good start for the morning and hope you give drizzle a shot too!
Because Sharing Is Caring
PlanetMySQL Voting: Vote UP / Vote DOWN