Register
Results 1 to 7 of 7
  1. #1
    Newbie
    Join Date
    Jan 2009
    Posts
    8
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default mysql & Plugins development

    Hi there,
    I am developing a plugin to connect to mysql database and retrieve some data based on each box mac address.

    I am done with the mac address side and password protection and generation side.

    Now, i am trying to connect to mysql using the same plugin, however it gives me some errors (mysql_init() not valid or initialiezed) when executing the plugin in the box.

    anyone have any idea about how to connect to mysql using cdk? or if it doesnt support mysql, is there any other database engine that it does support???

  2. #2
    Newbie
    Join Date
    Jan 2009
    Posts
    3
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Quote Originally Posted by baderh View Post
    Hi there,
    I am developing a plugin to connect to mysql database and retrieve some data based on each box mac address.

    I am done with the mac address side and password protection and generation side.

    Now, i am trying to connect to mysql using the same plugin, however it gives me some errors (mysql_init() not valid or initialiezed) when executing the plugin in the box.

    anyone have any idea about how to connect to mysql using cdk? or if it doesnt support mysql, is there any other database engine that it does support???

    Hmmm is database in box or on server? If on server, you must create special user that have rights for that ...

  3. #3
    Newbie
    Join Date
    Jan 2009
    Posts
    8
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    the database is on server and the user have all the rights..

    actully the plugin doesnt work at all... when i press on the to start it... it gives the error "undefined symbol: mysql_init"

  4. #4
    Newbie
    Join Date
    Jan 2009
    Posts
    3
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Quote Originally Posted by baderh View Post
    the database is on server and the user have all the rights..

    actully the plugin doesnt work at all... when i press on the to start it... it gives the error "undefined symbol: mysql_init"
    Try to put mysql libs in /var/lib folder...

    If I use curl, I put libcurl.so.2 in /var/lib for same reason If I don't put this file, plugin breaks on error undefined symbol.

    My advice is use scripts for storing and retrieving data from mysql...

  5. #5
    Newbie
    Join Date
    Jan 2009
    Posts
    8
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    I am going to try this...

    I will arrange everything after I get connected to mysql and see my data.

    so you mean I have to put the files in var/lib folder in dreambox?

  6. #6
    Dreambox Guru osborne82's Avatar
    Join Date
    Mar 2008
    Location
    any dreambox development forum
    Posts
    133
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Quote Originally Posted by baderh View Post
    I am going to try this...

    I will arrange everything after I get connected to mysql and see my data.

    so you mean I have to put the files in var/lib folder in dreambox?
    enable sql via the prepare file in your cdk m8 enigma will be built with sql support then hopefully your plugin will get there follow fergys advice aswell m8 (seen your post on my dev forum )

    cheers

    osborne82

  7. #7
    Newbie
    Join Date
    Feb 2009
    Posts
    1
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    s


    1234567890 dfdfio


    Quote Originally Posted by baderh View Post
    Hi there,
    I am developing a plugin to connect to mysql database and retrieve some data based on each box mac address.

    I am done with the mac address side and password protection and generation side.

    Now, i am trying to connect to mysql using the same plugin, however it gives me some errors (mysql_init() not valid or initialiezed) when executing the plugin in the box.

    anyone have any idea about how to connect to mysql using cdk? or if it doesnt support mysql, is there any other database engine that it does support???

 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.