• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[Databases] group to discuss various database issues and drivers

james_nak
26-Apr-2012
[126]
Arnold, I just know enough to get myself connected so these instructions 
might not be too good. As Endo and I are suggesting, perhaps you 
can only accept connections from 127.0.0.1 (localhost). So, you have 
to Grant privileges to the user from your IP. 

Go to http://whatismyipaddress.comand then click on "IP details." 
You will find "Hostname." It is that hostname that you will grant 
privileges to along with the user such as  [user'-:-'hostname]. I imagine 
right now it only accepts [user'-:-'localhost]
Arnold
26-Apr-2012
[127]
I guess my hosting provider is not supporting the GRANT options in 
database user screens and their supplied phpmyadmin. I think I have 
a trick on my sleeve though with a self installed phpmyadmin. No. 
More luck maybe tomorrow....
Endo
26-Apr-2012
[128]
try to get support for that, they can easily do that.
james_nak
26-Apr-2012
[129]
Arnold look for "Prvileges" tab in phpMyadmin. BTW, what type of 
control panel do you have?
Arnold
27-Apr-2012
[130x3]
Hi I found something in the config.inc.php  file and documentation 
that says "$cfg['Servers'][$i]['AllowDeny']['order'] string
If your rule order is empty, then IP authorization is disabled."
There is a Plesk control panel where I can create databases and add 
users/passwords (but no GRANT options) and a webadmin which is a 
PHPMyAdmin screen, that is almost identical to my self installed 
phpMyAdmin 2.6.0-pl2
Most of the time the support of my provider is really good, I'll 
ask them too.
james_nak
28-Apr-2012
[133]
Arnold, so you have the same set-up as I do. Plesk as the main control 
panel and phpadmin (via Plesk and self-installed). It's within phpadmin 
that I am able to grant rights to my host's IP as described above. 
Before this, I had some sites that had cPanel and I did the granting 
from there.
Arnold
28-Apr-2012
[134x3]
James, what phpmydmin version is your self installed phpmyadmin?
I need to upgrade i think.
Upgraded to 3.5, but no privileges for users tab.
Arnold
29-Apr-2012
[137]
Where does open-proto come from in the mysql-protocol.r in the mysql 
driver from softinnov? Word has no value in the version I am using. 
Strange. No complaints when using the script from a location on my 
webspace, trouble when used to connect from my local machine to the 
web MySQL.
Endo
29-Apr-2012
[138]
I still think that it is because your mysql server does not accept 
connections except localhost.

Did you try to connect your database using mysql command-line tools? 
or MySQL Workbench from a remote PC?
ddharing
30-Apr-2012
[139]
What version of mySQL are you using?
Arnold
30-Apr-2012
[140x2]
MySQL 5.0.45, Protocol version 10.
Endo, possible, still I expect the open-proto to be defined somewhere.
james_nak
30-Apr-2012
[142x2]
Arnold, I am using 3.4.5
And when you are in the "Home" Page, do you not have a "priviledges" 
tab?
Arnold
30-Apr-2012
[144]
That is correct. Just Databases, SQL, Status, Export, Import, Settings, 
Synchronize, Variables, Charsets, Engines.
james_nak
30-Apr-2012
[145]
Perhaps you can check the config file and make sure you are logged 
in as the admin.
Arnold
30-Apr-2012
[146]
Possibly the true admin is hidden by the plesk. I hope tomorrow I 
get an answer from my provider. Today is a holiday here, tomorrow 
a working day, just opposite to most of Europe.
Endo
30-Apr-2012
[147]
you can connect from local and configure your server using SQL commands.
did you try TELNET to your server's 3306 port?
Arnold
30-Apr-2012
[148x2]
No, never used TELNET. tried to open a connection to the host. Timed 
out.
Agree with Maxim in the SDK discussion. The app itself was no problem 
but realising the connection to the external database to be managed 
by it is sending me back to TELNET. :)
Arnold
1-May-2012
[150]
Got an answer from the provider. connection not from the website 
are blocked for safetyreasons. Only reachable by scripts on the website. 
The "admin" user for adjusting tables etc is not the admin user for 
granting access etc to users.
james_nak
1-May-2012
[151]
Arnold, thanks for the update. At least you know now what the issue 
is.
Arnold
2-May-2012
[152x2]
This is not possible due to safety reasons
 "That is not the answer I wanted to hear" --no reaction :)
I am now going to experiment with interacting with a script on the 
website that can do what I want remotely. Talking about safety risks 
:)
TomBon
9-May-2012
[154]
if you are looking for a fultext/searchengine don't miss elasticsearch. 
scales well, based on lucene, very fast, simple to use.

the interesting part is the compact rest api the storage model and 
the number of different analysers, tokenizer (snowball, ngram, etc). 

you can use elasticsearch also as a standalone nosql database with 
rebol. speaks completly json. 

working currently with 1.2 m documents + datastorage on a single 
machine.  runs very smooth. 

evaluated other components before (sphinx, xapian, tokyo etc.) elasticsearch 
has it all and is much cleaner to handle than solr.
Gregg
9-May-2012
[155]
Thanks for the analysis Tomas.
GiuseppeC
16-May-2012
[156]
About RebDB:
Is there a way to update multiple fields at the same time ?
I read in the documentation:

db-update/where my-table id 0 [id < 6]

This sets only one filed.
Endo
16-May-2012
[157x2]
In rebdb.r file, db-update function takes columns parameter as word! 
or block! and says "Columns to set".
So I think it supports updating multiple columns at once.
db-update/where my-table [id colA colB] [0 "a" "b"] [id < 6] ;works
GiuseppeC
17-May-2012
[159x3]
I have also read the 2.0.4 version supports JOINs but there is no 
example how to use it with db-* style commands
Do you know the way ?
I whish to use ODBC to manipulate ACCESS 2007 databases.

Where I could find some documentation about REBOL and ODBC and ODBC 
itself ?
Endo
17-May-2012
[162]
Well, I didn't use it much, but I this works:

;create table tbl [a b c]
>> db-insert tbl [1 2 3]
>> db-select/joins [a b c] tbl [select [a c] from tbl] b
== [1 2 3 1 3]
GiuseppeC
17-May-2012
[163x2]
Thanks Endo
Your are very helpful to me
Endo
17-May-2012
[165]
for ODBC:
http://www.rebol.com/docs/database.html
http://www.connectionstrings.com
GiuseppeC
17-May-2012
[166]
Yes, reading about REBOL. I was to quicky.
Endo
17-May-2012
[167]
Well, the whole community was very helpful to me, now I'm trying 
be.
GiuseppeC
17-May-2012
[168]
I have read in the REBOL3 world about incompatibility with ODBC in 
the latest icarnations. Do you know anything about this ?
Endo
17-May-2012
[169x2]
I still use R2, didn't use R3 yet. Just a few tests etc.
As I know, there is no direct ODBC support in R3, but there is an 
ODBC extension which is stable if I'm not mistaken.
GiuseppeC
17-May-2012
[171]
I meant "in the latest icarnations of ODBC"
Endo
17-May-2012
[172]
BrianH and Kaj can answer more correctly about R3 && ODBC.
GiuseppeC
17-May-2012
[173]
R2 and ODBC
Endo
17-May-2012
[174x2]
R2 & ODBC is quite stable & useful.

There are just a few small problems which can be solved some work 
arounds.
such as, R2 doesn't support new SQL Server datatypes. You should 
CAST & CONVERT your values in your SQL to be able to get those values 
into R2 app.