Will I have mysqltcl (version 3 or newer) on shell account?

Support for services available to Shell account users.

Moderator: Moderators

Will I have mysqltcl (version 3 or newer) on shell account?

Postby Alex'a X Spirit » Tue Nov 08, 2005 1:32 am

I'm not a registered user at that moment so I'm asking before ordering because mysqltcl library is critical for my cgi scripts.

Will I have it?

BTW, what Tcl version are you using on FreeBSD server?

(Sorry for my terrible English)
Alex'a X Spirit
Newbie
 
Posts: 5
Joined: Tue Nov 08, 2005 1:17 am
Location: Ukraine, Kiev

Postby zoli » Tue Nov 08, 2005 8:20 am

hi,

tcl version is 8.4, but I haven't found any mysqltcl library (in fact never heard about) Is this some standard library that comes with mysql or tcl?
Regards,
Z
---
Zoltan Arpadffy
zoli
Forum Admin
Forum Admin
 
Posts: 785
Joined: Mon Sep 30, 2002 1:27 am
Location: Stockholm, Sweden

Postby Alex'a X Spirit » Tue Nov 08, 2005 4:11 pm

zoli wrote:Is this some standard library that comes with mysql or tcl?


From MySQL documentation:

"`MySQLtcl' is a simple API for accessing a MySQL database server from the Tcl programming language. It can be found at `http://www.xdobry.de/mysqltcl/'."

It even exists in FreeBSD ports collection.
Alex'a X Spirit
Newbie
 
Posts: 5
Joined: Tue Nov 08, 2005 1:17 am
Location: Ukraine, Kiev

Postby Alex'a X Spirit » Tue Nov 08, 2005 4:42 pm

You can check if mysqltcl library is already installed by such script:

-----------------
#!/usr/local/bin/tclsh8.4

if [catch {package require mysqltcl} cause] {
puts stderr $cause
} else {
puts "* mysqltcl [package versions mysqltcl] installed"
puts "\n* mysqltcl commands list:\n[info commands ::mysql::*]"
}
-----------------

The output (if everything is fine) must be like this:

-----------------
* mysqltcl 3.01 installed

* mysqltcl commands list:
::mysql::commit ::mysql::state ::mysql::escape ::mysql::moreresult ::mysql::rollback ::mysql::autocommit ::mysql::receive ::mysql::shutdown ::mysql::setserveroption ::mysql::info ::mysql::use ::mysql::exec ::mysql::nextresult ::mysql::map ::mysql::col ::mysql::encoding ::mysql::baseinfo ::mysql::result ::mysql::seek ::mysql::insertid ::mysql::connect ::mysql::fetch ::mysql::sel ::mysql::newnull ::mysql::changeuser ::mysql::endquery ::mysql::ping ::mysql::query ::mysql::close ::mysql::isnull ::mysql::warningcount
-----------------
Alex'a X Spirit
Newbie
 
Posts: 5
Joined: Tue Nov 08, 2005 1:17 am
Location: Ukraine, Kiev

Postby DenisF » Tue Nov 08, 2005 8:01 pm

Not related to the subject at all, but..

Location: Ukraine, Kiev


That's where i was born ^_^

Zdarov Alex ;)
Image
[ FAQ ] :: [ Policy ] :: [ Port Forwarding Guide ] :: [ Search ]
User avatar
DenisF
Forum Admin
Forum Admin
 
Posts: 679
Joined: Mon Dec 16, 2002 9:09 pm
Location: Israhell

Postby zoli » Tue Nov 08, 2005 10:45 pm

ok... I instaled it from ports:
# ./test
* mysqltcl 2.14 installed

* mysqltcl commands list:


please note freebsd server will be very soon upgraded to 6.0
I can imagine that dring upgrade some of the ports will not be upgraded or missed... ths is an usual behaviour of BSDs after binary upgrade.
Regards,
Z
---
Zoltan Arpadffy
zoli
Forum Admin
Forum Admin
 
Posts: 785
Joined: Mon Sep 30, 2002 1:27 am
Location: Stockholm, Sweden

Postby Alex'a X Spirit » Wed Nov 09, 2005 12:48 am

zoli wrote:ok... I instaled it from ports:


You've installed a very old version of mysqltcl :(

Up from version 3.0 all mysql commands are declared in ::mysql namespace. That is why the test script in your case puts nothing about command names. Similar to it, my scripts cannot co-operate with version 2.14.

On freebsd ftp exits version 3.01 for all current versions of FreeBSD (4.x, 5.x, 6.0). Here are links to the packages (they required mysql-client-4.x and tcl-8.4.x):

ftp://ftp.freebsd.org/pub/FreeBSD/ports ... l-3.01.tgz

ftp://ftp.freebsd.org/pub/FreeBSD/ports ... l-3.01.tbz

ftp://ftp.freebsd.org/pub/FreeBSD/ports ... l-3.01.tbz
Alex'a X Spirit
Newbie
 
Posts: 5
Joined: Tue Nov 08, 2005 1:17 am
Location: Ukraine, Kiev

Postby Alex'a X Spirit » Wed Nov 09, 2005 12:51 am

DenisF wrote:Zdarov Alex ;)


Tebe toje privet, Denis :)
Alex'a X Spirit
Newbie
 
Posts: 5
Joined: Tue Nov 08, 2005 1:17 am
Location: Ukraine, Kiev

Postby zoli » Wed Nov 09, 2005 7:59 am

hi,

This version is default in ports...
I will not put more effort to this version of FreeBSD.
Very soon it will be upgraded to 6.0 and we'll see what can we do then.
Regards,
Z
---
Zoltan Arpadffy
zoli
Forum Admin
Forum Admin
 
Posts: 785
Joined: Mon Sep 30, 2002 1:27 am
Location: Stockholm, Sweden


Return to Shell accounts

Who is online

Users browsing this forum: No registered users and 0 guests

cron