Hi,

I am trying to use mysql embedded. Following the QT documentation I built the QT plugin using -lmysqld .

Now, I have this code:

Qt Code:
  1. mydb = QSqlDatabase::addDatabase("QMYSQL","mydb"); //Add the database connector to MySQL
To copy to clipboard, switch view to plain text mode 

But I get the following message and the application cannot continue:

Qt Code:
  1. mysql_embedded: Table 'mysql.plugin' doesn't exist
  2. 111124 15:35:15 InnoDB: The InnoDB memory heap is disabled
  3. 111124 15:35:15 InnoDB: Mutexes and rw_locks use GCC atomic builtins
  4. 111124 15:35:15 InnoDB: Compressed tables use zlib 1.2.3
  5. 111124 15:35:15 InnoDB: Using Linux native AIO
  6. 111124 15:35:15 InnoDB: Initializing buffer pool, size = 128.0M
  7. 111124 15:35:15 InnoDB: Completed initialization of buffer pool
  8. 111124 15:35:15 InnoDB: Operating system error number 13 in a file operation.
  9. InnoDB: The error means mysqld does not have the access rights to
  10. InnoDB: the directory.
  11. InnoDB: File name /usr/local/mysql-5.5.18-linux2.6-x86_64/data/ibdata1
  12. InnoDB: File operation call: 'create'.
  13. InnoDB: Cannot continue operation.
To copy to clipboard, switch view to plain text mode 

Look like the the embedded driver is using /usr/local/mysql-5.5.18-linux2.6-x86_64/data/ibdata1 as the data directory and it does not have access. But how can I change it?

Many thanks,
Carlos.