I downloaded dbslayer to use, but ran into a problem and I could use
some help.
* I'm using mac osx 10.6.2 snow leopard. ARP is pre-installed.
* I've installed dbslayer and can run the service using:
dbslayer -c /etc/my.cnf -s localhost
In mysql I have a database named "learn"...
From terminal:
mysql> use learn;
Database changed
mysql> select * from tb1;
+------------+-----------------------+--------------+----+
| name | email | phone_number | ID |
+------------+-----------------------+--------------+----+
| Daisy Duck |
car...@blackstag.com | 5554321 | 1 |
| Daffy Duck |
car...@blackstag.com | 5554320 | 2 |
+------------+-----------------------+--------------+----+
2 rows in set (0.00 sec)
So I run:
http://localhost:9090/db?{"SQL":"select%20*%20from%20tb1;"}
and get:
{"MYSQL_ERRNO" : 1046 , "MYSQL_ERROR" : "No database selected" ,
"SERVER" : "localhost"}
how in the URL do I specify which database to use?
or any other ideas would be appreciated.
Please & Thanks