Connect to MySQL

Discussion in 'Plugin Development' started by Reteckz, Mar 27, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Reteckz

    Hey guys,

    I'm pretty new to plugin developing, and I would like to know how I can get information from my server host their mysql database with Eclipse?

    I do know how to use the SELECT from mysql itself, but I have no clue how to connect.

    Thanks,

    ~ Reteckz
     
  2. Offline

    Nitnelave

    From Eclipse? What has it got to do with anything?
    Do you want the parameters to connect to the user's database? Then you need a config file where the user can specify his own values.
     
  3. Offline

    Reteckz

    No need actually, it's only for my own server ^^
    So I only need a code like in php:

    mysql_connect("host","name","pass");
    mysql_select_db("db");
    $result = mysql_query("query");
     
  4. Offline

    Nitnelave

Thread Status:
Not open for further replies.

Share This Page