cubrid shard with PHP driver

Hi,

I've done some tests with cubrid shard and it seems that I cannot use mysql driver for PHP and that I have to use cubrid driver for PHP. I've read that it was compatible with MySQL but it seems that it just means that it can be used to shard a MySQL database and that cubrid driver's functions have similar names to mysql driver's functions. My aim is to use cubrid shard with an existing PHP application that uses MySQL as its database. Here is my question :

In my tests, I realized that I MUST use cubrid driver for PHP and that prepared queries are mandatory. Am I true or is there anything wrong in my code ?

In order to use CUBRID SHARD you need to use CUBRID drivers. In your case it's PHP or PDO driver. This is because CUBRID and MySQL are two different software. They talk on different protocols, despite the fact that they both support SQL.

However, at this moment CUBRID PHP/PDO drivers do not support CUBRID SHARD Broker. Refer to this issue http://jira.cubrid.org/browse/APIS-546 for details. We will release a patch to PHP/PDO driver soon, and then you can use CUBRID SHARD in your PHP applications.

Since CUBRID supports SQL92 standard, the MySQL SQL queries in your application are likely to be compatible when you port your app to CUBRID, i.e. you may not be required to change your queries.

However, in order to use CUBRID SHARD you need to change your application to use CUBRID PHP driver.

CUBRID PHP/PDO drivers support similar functions as MySQL PHP driver does, i.e. you can find equivalent functions in CUBRID API.

Prepared queries are not mandatory. You can directly execute queries if you want. In depends on you.