Phonegap, iPhone and SQLite database

Hi there,
I'm trying to develop my first iPhone app using Phonegap and SQLite database. My app is simple but don't know how to get started. My app has 2 dropdown list. When the user selects one of them the other dropdown list will reset.  Then user will click on Submit button and I want to search the database and display the result.
I've never used the SQLite database and I would like to know in which folder should I keep the database file. The database file is small and will be stored on the device. The database is already populated. User will not add,edit or delete data but only search based on what value was selected using dropdown list.
Can someone tell me how to do this using JavaScript.
Thanks,
Joe Green

PhoneGap is something that cross-platform developers use to avoid the native frameworks. The people on this forum are more familiar with the native frameworks. You would have to find a PhoneGap forum to ask about that product.

Similar Messages

  • SQLITE database has no tables on device?

    Hello -
    When I try to run my app on my iPhone, the sqlite database is found, etc., HOWEVER, when I query it, it says the table doesn't exist. In fact none of the tables do.
    Do I have to do something special to get the database and its tables over to the phone itself?
    Thanks

    Is the database that's part of the application bundle populated, or is it only the database that was created in the simulators Documents folder that is populated?

  • I have 2 iphones and 1 ipod touch. how do i use the same itunes on the home computer for each? all we use the home computer for is one big music database.

    i have 2 iphones and 1 ipod touch. i want to use the same itunes music database for each device. we did this before with our older ipods, by just sycing what was checked. does this work the same way with the new devices?

    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    http://support.apple.com/kb/HT1495

  • How to connect to and communicate with an SQLite database in AIR/Flex

    Hey guys,
    I recently decided I would try programming a vocabulary-training program in AIR, so I could use it on Linux as well. I got stuck pretty soon. I am trying to connect to a local SQLite database and I obviously fail epically. Posting the source code of the application here:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
       <mx:Script>
          <![CDATA[  
               import flash.filesystem.File;
              import flash.data.*;
             import mx.controls.Alert; 
                      private var dbFile:File;
                   private var conn:SQLConnection;
                   // -- AUTO INIT FUNCTIONS --------------------------------------------------- /
                   private function init():void {
                        // Create a File Reference to the Included DB
                        dbFile = File.applicationDirectory.resolvePath( "../slovniky.db" );
                        // Create SQL Connection
                        conn = new SQLConnection();
                        // Event Listener that will tell us when the DB is opened
                        conn.addEventListener(SQLEvent.OPEN, openSuccess);
                        // Event Listener that will tell us if an error occurs
                        conn.addEventListener(SQLErrorEvent.ERROR, openFailure);
                   // -- EVENT HANDLERS -------------------------------------------------------- /
             private function starter() :void {
                  slovickoEn.enabled = true;
                  nazor.enabled = true;
                  odeslat.enabled = true;
                  zrusit.enabled = true;
                  start.enabled = false;
                  // Otevírám spojení s databází v asynchroním módu
                   conn.openAsync( dbFile );
             private function openSuccess( event:SQLEvent ):void {
                        // Pokud se spojení povede!
                        Alert.show("Spojení se zdařilo!");
               private function openFailure( event:SQLEvent ):void {
                        // Pokud spojení selže!
                        Alert.show("Spojení se nezdařilo!")
             private function kontrola() : void {
                  if (nazor.text != "") {
                       if (nazor.text == "Pes") {
                       Alert.show("Správně!");    
                       else {
                       Alert.show("Špatně!! " + "Napsané slovíčko bylo " + nazor.text);     
          ]]>   
       </mx:Script>
       <mx:VBox width="400" height="200"
                   horizontalCenter="0" verticalCenter="0" backgroundColor="#FFFFFF"
                   paddingBottom="20" paddingLeft="20" paddingRight="20" paddingTop="20"
       >
          <mx:HBox width="100%" verticalAlign="middle" horizontalAlign="center">
             <mx:Label text="Anglicky:"/>
             <mx:TextInput id="slovickoEn" editable="false" text="Dog" enabled="false"/>
          </mx:HBox>
          <mx:HBox width="100%" verticalAlign="middle" horizontalAlign="center">
             <mx:Label text="Česky:"/>
             <mx:TextInput id="nazor"  enter="kontrola()" enabled="false"/>
          </mx:HBox>
          <mx:HBox width="100%" horizontalAlign="center">
             <mx:Spacer width="50" height="10"/>
             <mx:Button id="odeslat" label="Odeslat" color="#0D8401" click="kontrola()" enabled="false"/>
             <mx:Button id="zrusit" label="Zrušit" color="#0D8401" enabled="false"/>
          </mx:HBox>
          <mx:HBox width="100%" horizontalAlign="center">
             <mx:Spacer width="50" height="10"/>
             <mx:Button id="start" label="Start" color="#0D8401" click="starter()" enabled="true"/>
          </mx:HBox>
       </mx:VBox>
    </mx:WindowedApplication>
    The Run of the program tells me this:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at pes/starter()[C:\air\projects\pes\src\pes.mxml:45]
         at pes/__start_click()[C:\air\projects\pes\src\pes.mxml:93]
    I would appreciate any help or a how-to. I am an absolute beginner with some experience from HTML, CSS, PHP and rarely JS. What am I doing wrong? File attached for easier manipulation as well.
    Erthy

    Hi,
    Here is the complete example for the same with the code.Let me know if you have any issue with this.
    http://shardulbartwal.wordpress.com/2008/04/14/adobe-air-and-sqlite-connectivity/
    with Regards,
    Shardul Singh Bartwal

  • SQLite Database and TLF Text in Flash CS5

    I encountered the following problem when working with the built-in sqlite database and using TLF TextFields in Flash CS5
    When I tried to use TLF TextFields alone, I don't face any probelem,
    but when I start using a database connectivity code, the TLF TextFields placed on the stage are not shown, but instead, the SWF file is showing the built-in preloader with five dots looping.
    I tried changing the default Linkage in ActionScript 3 Settings to Merge Mode, but in this case nothing is shown, not the textfields, neither the preloader.
    I think the problem is related to loading the TLF Text Engine, but I couldn't figure out what to do.
    The following is my code placed in first frame:
    ==========================================
    import flash.data.SQLConnection;
    import flash.events.SQLErrorEvent;
    import flash.events.SQLEvent;
    import flash.filesystem.File;
    var conn:SQLConnection = new SQLConnection();
    conn.addEventListener(SQLEvent.OPEN, openHandler);
    conn.addEventListener(SQLErrorEvent.ERROR, errorHandler);
    // The database file is in the application directory
    var folder:File = File.applicationDirectory;
    var dbFile:File = folder.resolvePath("DBSample.db");
    conn.openAsync(dbFile);
    function openHandler(event:SQLEvent):void
        trace("the database was created successfully");
    function errorHandler(event:SQLErrorEvent):void
        trace("Error message:", event.error.message);
        trace("Details:", event.error.details);
    stop();
    ==========================================
    and I am using one TLF TextField on the stage for later use.
    Publish Settings>> Player: AIR 2.6
    and not to forget, when I test the file using Contol Panel >> Test in Air Debug Launcher (Desktop), the file is working correctly.
    but when I open the generated SWF file, the problem appears.
    I hope that I find some help
    Thanks.

    http://www.flashandmath.com/flashcs5/rsltip/

  • SQLite database on iPhone

    I done all my development for my SQL on the simulator, and I have my app writing and reading from my DB seamlessly.
    In fact, very few lines of code go quite far. In my Apple computer I am able to find my database and verify that all is working properly (under library/application support/iphone simulator/user/applications/myapp/documents)
    BUT...
    I know have moved the identical code to the iphone, and my app is UNABLE to read my database for its default configuration.
    My code to find the DB in question comes from the Apple demos:
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *path = [documentsDirectory stringByAppendingPathComponent:@"MyDB.sql"];
    Questions:
    1) When I "build" my app for the iphone, and not the simulator, and my default DB is part of my project, is it copied to the iphone?
    2) How can I see where it goes?
    3) Why is it that what works on my simulator, does not work on the iPhone?
    Thanks!

    In fact the following code works on my MAC iphone simulator, but not on my iPhone:
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *path = [documentsDirectory stringByAppendingPathComponent:@"MyDB.sql"];
    if (sqlite3_open([path UTF8String], &database) == SQLITE_OK){
    sqlite3_stmt *statement;
    strcpy (gMyAlQuery,"SELECT * FROM SysDefaults WHERE PK = 1");
    if (sqlite3preparev2(database, gMyAlQuery, -1, &statement, NULL) == SQLITE_OK)
    THE ABOVE "if" is the one failing on the iPhone, not the first "if" so that means that my code IS finding the DB on the iphone but failing on the sqlite3preparev2 line on the iPhone.
    Has anybody seen this as a bug - or am I getting away with something on the simulator that is not kosher on the iPhone?

  • How to compress (or cleanup) Sqlite database after delete?

    Is there a way to compress (or cleanup) a Sqlite database after a large number of rows have been deleted?
    For example, if I have a database file around 1Mb and delete all the rows the database file remains at 1Mb (despite being empty). If I then open this file in Sqlite Administrator and click on "CleanUp" the size goes down to 4kb.
    Is this functionality available from inside my app?
    Thanks

    I'm finally getting some time to look at this but not doing too well.
    Running the following code gives the below error message:
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *path = [documentsDirectory stringByAppendingPathComponent:@"myDB.sql"];
    int success;
    if (sqlite3_open([path UTF8String], &database) == SQLITE_OK) {
    // My first delete statement
    // My second delete statement
    // My third delete statement
    // VACUUM STATEMENT
    const char *sql4 = "VACUUM";
    sqlite3_stmt *statement4;
    if (sqlite3preparev2(database, sql4, -1, &statement4, NULL) != SQLITE_OK) {
    NSAssert1(0, @"Error: failed to prepare vacuum with message '%s'.", sqlite3_errmsg(database));
    success = sqlite3_step(statement4);
    sqlite3_reset(statement4);
    if (success != SQLITE_DONE) {
    NSAssert1(0, @"Error: failed to execute vacuum with message '%s'.", sqlite3_errmsg(database));
    sqlite3_finalize(statement4);
    sqlite3_close(database);
    error:
    Error: failed to execute vacuum with message 'unable to open database file'.
    I know the database file is open ok because the rows are being deleted fine. The problem is just cleaning up the database file with the VACUUM command.
    Has anyone successfully run this statement on the iPhone?

  • Swapping between client database and web database

    Hi i have completed tutorials etc so can now create the
    sqlite database for my application which is downloaded by the user
    and will run on thier desktop so i am calling it the "client
    database" which contains data they are working with but there is
    another database containing identical tables which i am calling the
    "global database" the idea of this is to transfer data between the
    different clients and backup that information.
    so i am looking for a tutorial or a sample app where the app
    takes information from a web based database and copy's that rob
    into a sqlite database on the clients machine?
    this is the main problem im having and seen people mentioning
    blaze DS and stuff like that, ideally i wouldn't like to use PHP
    but atm is looking like i may have to.
    i will sell my soul to anyone who can help with this lol
    (also i am using FLEX 3.0)

    Hi,
    Yes, if you use LCDS everything is there already for you, so
    that you can complete this application in very less time. Since you
    want to use PHP, you can use Zend PHP, which will support Remoting
    using AMF. Using Zend PHP, write PHP classes which will help you to
    synchronize data between server and client and just invoke those
    from your Flex application when required.
    Hope this helps.

  • Image not storing in SQLite Database

    Hi All
    I am creation an application in WPF C# in which i have created an Ink Canavs 
    now i want to insert the InkCanvas  Data or stockes in SQLite Database for that i hv created an folder in my application
    and on"btnSaveCanvasImg" button Clicked i am saving the image of InkCanvas in a folder and on "btnSaveImgInDatabase" button clicked The saved image stored in the database 
    But when i clicked on"btnSaveCanvasImg" button image saved in folder , but when clicked on "btnSaveImgInDatabase" button the image doesn't store in the database.
    following is my code
    XML:-
    <Window x:Class="InkCanvasInDatabase.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Title="MainWindow" Height="800" Width="600">
        <Grid>
            <InkCanvas Name="MainInkCanvas" HorizontalAlignment="Left" Height="500" VerticalAlignment="Top" Width="595">
                <InkCanvas.Background>
                    <ImageBrush ImageSource="C:\Testimonial_Project\Assets\Images\notePaper.png"/>
                </InkCanvas.Background>
            </InkCanvas>
            <Button x:Name="btnSaveCanvasImg" Content="Save Canvas Image" HorizontalAlignment="Left" Margin="33,599,0,0" VerticalAlignment="Top" Width="200" Height="51"
    FontSize="20" Click="btnSaveCanvasImg_Click"/>
            <Button x:Name="btnSaveImgInDatabase" Content="Save Image In Database" HorizontalAlignment="Left" Margin="281,599,0,0" VerticalAlignment="Top" Width="238" Height="51"
    FontSize="20" Click="btnSaveImgInDatabase_Click"/>
        </Grid>
    </Window>
    C# Code:-
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;
    using System.Windows.Ink;
    using System.Windows.Ink.AnalysisCore;
    using Microsoft.Win32;
    using System.IO;
    using System.Data.SQLite;
    namespace InkCanvasInDatabase
        /// <summary>
        /// Interaction logic for MainWindow.xaml
        /// </summary>
        public partial class MainWindow : Window
            string imagename;
            public MainWindow()
                InitializeComponent();
            public void loadInkAnalyzer()
                InkAnalyzer theInkAnalyzer = new InkAnalyzer();
                theInkAnalyzer.AddStrokes(MainInkCanvas.Strokes);
                AnalysisStatus status = theInkAnalyzer.Analyze();
                if (status.Successful)
                    saveInkCanvasBitmap();
                else
                    MessageBox.Show("Recognition Failed");
            public void saveInkCanvasBitmap()
                RenderTargetBitmap rtb = new RenderTargetBitmap((int)MainInkCanvas.Width, (int)MainInkCanvas.Height, 0,0, PixelFormats.Default);
                rtb.Render(MainInkCanvas);
                BmpBitmapEncoder encoder = new BmpBitmapEncoder();
                encoder.Frames.Add(BitmapFrame.Create(rtb));
               // FileStream fs = File.Open(@"C:\inkCanvas_Images\test.jpg", FileMode.Create);
                FileStream fs = File.Open(@"C:\Users\xeniun1\Desktop\24.02.2015 Xenium_Project\23.02.2015 InkCanvas\InkCanvasInDatabase\InkCanvasInDatabase\InkCanvas_Images\.jpg", FileMode.Create);
                encoder.Save(fs);
                fs.Close();
            public void insertImgInDatabase()
                byte[] signature;
                using (MemoryStream ms = new MemoryStream())
                    MainInkCanvas.Strokes.Save(ms);
                    signature = ms.ToArray();
                string stConn = @"Data Source=inkCanvas_DB.db;Version=3";
                SQLiteConnection sqliteConn = new SQLiteConnection(stConn);
                sqliteConn.Open();
                string sql = "INSERT INTO User_Details (User_Text) VALUES (@Sig)";
                SQLiteCommand comm = new SQLiteCommand(sql, sqliteConn);
                comm.Parameters.AddWithValue("@Sig", signature);
                comm.ExecuteNonQuery();
           private void btnSaveCanvasImg_Click(object sender, RoutedEventArgs e)
                loadInkAnalyzer();
                //MainInkCanvas.Strokes.Clear();
                MessageBox.Show("Ink Canvas Save as Image");
            private void btnSaveImgInDatabase_Click(object sender, RoutedEventArgs e)
                insertImgInDatabase();
                MainInkCanvas.Strokes.Clear();
                MessageBox.Show("Ink Canvas Image saved in Database");
    Plz provide solution for this 
    Regards

    Please close your previous threads by marking helpful posts as answer before you start a new one.
    The type of the image columns should be BLOB. And make sure that you are looking at the inkCanvas_DB.db in the output folder of your .exe ([your_project_foder]/bin/Debug or [your_project_foder]/bin/Debug) because it is this database that the data gets written
    to unless you specify an absolute path in the connection string:
    string stConn = @"Data Source=C:\Your_Project_Folder\inkCanvas_DB.db;Version=3";
    Please upload a reproducable sample of your issue to OneDrive and post the link to it here for further help.
    And please remember to close your threads by marking helpful posts as answer.

  • TS4268 One of my contacts had an IPhone and we iMessage successful but now he switched to an android and now he can't receive my messages. He still has an iPod that receives them. How can I get my text changed to regular text instead iMessage? Thanks

    One of my contacts had an iPhone and we iMessage fine. Now he switched to a samsung galaxy note III and I need to switch his contact from iMessage so he can receive my text. He still has an iPod so iMessage still works for that but will that be effected by changing for android? How do I make the change? Thanks

    It isn't your issue, it is his. He needs to make sure he has turned of iMessage and removed his number from the iMessage database. If he does not still have the device, he needs to contact Apple Care to take care of it.

  • How can I sync "On My Mac" iCal calendars on Snow Leopard with iPhone and Google Calendar?

    Hi,
    (I've done a lot of searching for a clear answer but without success.)
    Can someone please advise how I can get the "On My Mac" calendars on iCal v4.0.4 (running under Snow Leopard 10.6.8) to sync with an iPhone and Google Calendars,  'over the air' (i.e. not via iTunes) and both ways (two-way syncing).
    There was a great bit of software called Spanning Sync which did it all but it's now discontinued. I'm running Snow Leopard and do NOT want to upgrade to OS Lion.
    I've tried the iCloud route but it just creates an extra set of "@me.com" calendars under the "On My Mac" calendars - it is not syncing the "On My Mac" calendars themselves (and I want to use the "On My MAc" calendars as the master dataset (the 'Truth database' to use an Apple term!).
    ... And the same happens when I try to sync my Google Calendars: another set of "@google.com" calendars appear.
    Now instead of 2 calendars in iCal I have 6: 2 On My Mac calendars, 2 iCloud ones, and 2 Google ones. (This is not progress Apple!)
    Hope someone can advise.
    Many thanks.

    Thanks Winston.  I'm aware that the 'on my mac' calendar doesn't get picked up by iCloud.  I'm wondering whether anyone can help with the best alternative solution for synchronisation of phone and Outlook.

  • Upon syncing my iPhone and mac all of my ical and iPhone calendar events have duplicated. how can i fix this and avoid it in the future?

    upon syncing my iPhone and mac all of my ical and iPhone calendar events have duplicated. how can i fix this and avoid it in the future?

    Greetings,
    Questions:
    1. What version of the Mac OS are you running (Apple > About this Mac)?
    2. What version of the iOS are you running (Settings > About)?
    3. Do you backup your computer (http://support.apple.com/kb/HT1427)? 
    --- If you don't regularly backup your computer, now is the time to start.
    4. Do you backup your iPhone (http://support.apple.com/kb/ht1766)?
    Check the calendar list on the left hand side of iCal.  Is it that the individual events are duplicated or is it just that you have the same calendar listed more than once?  If its that you have more than 1 copy of each calendar, you can delete one of the duplicate calendars to eliminate the duplicates.
    If you find that it is the individual events that are duplicated then there are 2 options:
    1. Restore your computer iCal database or iPhone from a backup made before the duplication occurred.
    2. Use a duplication removal program (or do it by hand) to remove the duplicates: http://www.nhoj.co.uk/icaldupedeleter/
    If you have a backup made before the duplication occurred, reply back with what kind of backup you have and I'll suggest how to recover the calendars.
    To avoid this issue in the future:
    Keep regular backups.  They are your best defense against data anomalies which are a fact of life in computers (although hopefully rare).
    Keep your computer and iPhone software fully up to date (Apple > Software Update / Settings > General > Software Update).
    Make sure the date and time on your computer and iPhone are correct before you sync the two devices.
    Make sure the cable connections between the two is solid and that the cable shows no signs of physical damage.
    Hope that information helps.

  • How to determine the connection string to a SQLite database, in C# code

    Hello. I'm trying to figure out how to specify the connection string to a SQLite database, I would like to access using the following code:
    string connectionString = null;
    SqlConnection connection;
    SqlCommand command;
    SqlDataAdapter adapter = new SqlDataAdapter();
    DataSet ds1 = new DataSet();
    string sql = "SELECT DataName, Data, Id, UserId, DateLastUpdated FROM MainTable";
    connectionString = "Data Source=C:\\SQLITEDATABASES\\SQLITEDB1.sqlite;Version=3;";
    connection = new SqlConnection(connectionString);
    try
    connection.Open();
    command = new SqlCommand(sql, connection);
    catch
    The value I assigned to the variable connectionString, in the code above, I obtained somewhere from the Internet. It does not work. I'm using Visual Studio 2013, against the file sqlite-netFx451-setup-bundle-x86-2013-1.0.96.0.exe, which
    I installed, and got from
    here.
    My application's App.config file looks as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <configSections>
    </configSections>
    <connectionStrings>
    <add name="DC_Password_Saver.Properties.Settings.DC_Password_SaverConnectionString" connectionString="data source=&quot;C:\Users\patmo_000\Documents\Visual Studio 2013\Projects\DC Password Saver\DC Password Saver\DC Password Saver.db&quot;" providerName="System.Data.SQLite.EF6"/>
    </connectionStrings>
    <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/>
    </startup>
    </configuration>
    I tried to use the value assigned to connectionString in the XML settings above, replacing single backslash characters with double backslash characters, because the Visual Studio editor flagged them as unrecognizable, and wound up with the
    following.
    SqlDataAdapter adapter = new SqlDataAdapter();
    DataSet ds1 = new DataSet();
    string sql = "SELECT DataName, Data, Id, UserId, DateLastUpdated FROM MainTable";
    connectionString = "data source=&quot;C:\\Users\\patmo_000\\Documents\\Visual Studio 2013\\Projects\\DC Password Saver\\DC Password Saver\\DC Password Saver.db&quot;";
    connection = new SqlConnection(connectionString);
    The above code however does not work either. So again, does anyone know how I can specify in C# code, a connection string to access my SQLite database? Thanks in advance for your reply.

    What does SQLite connection strings has to do with WPF?
    You will find some valid connection strings here:
    https://www.connectionstrings.com/sqlite/
    But you cannot use the SqlConnection class to connect to a SQLite database. You will need to download and add a reference to the System.Data.SQLite library and then use the SQLiteConnection class:
    connection = new System.Data.SQLite.SQLiteConnection(connectionString);
    try
    connection.Open();
    command = new System.Data.SQLite.SQLiteCommand(sql, connection);
    catch
    Please refer to the following article for more information and an example of how to connect and read and write data from an SQLite database using C#:
    http://blog.tigrangasparian.com/2012/02/09/getting-started-with-sqlite-in-c-part-one/.
    There is contains a link where you can download the required assemblies.
    Hope that helps.
    Please remember to mark helpful posts as answer to close your threads and then start a new thread in an approproate forum if you have a new question.

  • [SOLVED] PowerDNS (pdns) - SQLite database '...' does not exist yet

    PowerDNS 3.2-5 is having some issues connecting to my backend database (sqlite3).
    beta powerdns # tail /var/log/errors.log
    May 7 20:12:41 localhost pdns[19098]: Caught an exception instantiating a backend: Unable to launch gsqlite3 connection: SQLite database '/etc/powerdns/database.sqlite' does not exist yet
    But when i do:
    beta powerdns # sqlite3 /etc/powerdns/database.sqlite
    SQLite version 3.7.16.2 2013-04-12 11:52:43
    Enter ".help" for instructions
    Enter SQL statements terminated with a ";"
    sqlite> select * from domains;
    1|<myhostname>|||NATIVE||
    sqlite>
    sqlite3 It fetches the records and domains to my liking but not PowerDNS.
    Same thing goes for a blank db without any domains or records, i can query it but not PowerDNS.
    Followed this guide in order to setup the proper tables and columns: http://doc.powerdns.com/html/gsqlite.html#idp9379264
    (without the DNSSEC part, i'll give that a go later on)
    It obviously loads the sqlite3 module, and tries to connect to the backend, which doesn't work, so the ArchLinux package is fine i'm guessing.
    More info:
    * Link to package: https://www.archlinux.org/packages/comm … 6_64/pdns/
    * chmod == 777
    * chown == nobody:nobody (and tried root:root as default)
    * running as root (not pdns)
    Last edited by Torxed (2013-05-08 10:52:05)

    Solved it.
    The guides are vague in this regard but once you've just read the config twice you'll understand the logic.
    First of all, no absolute paths for sqlite3, it should be:
    launch=gsqlite3
    gsqlite3-database=database.sqlite
    Secondly, find your chroot, and point it to your database location or put your database here (whichever):
    chroot=/var/empty
    The folder structure should be:
    /var/empty/database.sqlite
    And this py pointing to ./database.sqlite when starting sqlite3 in pdns, it should be able to lock on to the database.
    Peachy!

  • The photos that I better (improves automatic) are saved on the iphone, but when I transfer them to my PC improvements appear no more, only on iphone. I do not understand why the improvements are just the iphone, and not continue when I transfer the photos

    The photos that I better (improves automatic) are saved on the iphone, but when I transfer them to my PC improvements appear no more, only on iphone. I do not understand why the improvements are just the iphone, and not continue when I transfer the photos to my PC.
    Thanks.

    Chicky, I have searched my computer for "iPod Photo Cache" and 51 folders pop up, plus 3 files (iPodInfo.plist, Photo Database and Image DB Temp.tmp). How do I know which to delete and which to keep? The Apple website page tackling this issue doesn't go into any detail. Thanks yet again.

Maybe you are looking for

  • How to call to another form declare in different class ???????

    hi, i'm beginner in j2me... I was wondering how to call to other form(class) in the current form... For example, public class A extends MIDlet implements CommandListener public void commandAction(Command d,Displayable s) if (d==*OKCommand*) if press

  • RFC to JDBC(Insert) async scenario

    Hi Experts, In RFC to JDBC(Insert) async scenario  we are getting the the response from JDBC as <insert_count>1</insert_count> after inserting in to DB . Is there any way to stop getting response? Regards, Raj

  • Multiple Computers and iPhone and iPods

    I have 3 computers Desktop PC-XP at work, Laptop PC-Vista, and Desktop PC-XP at home. I also have an iPhone, 2 iPod touches (for each of my sons) and an iShuffle. I want to copy/share any music/video/apps with each device wherever i am. I have author

  • [svn:fx-trunk] 10881: Rewrote comments in MXFTEText.css.

    Revision: 10881 Author:   [email protected] Date:     2009-10-05 16:55:22 -0700 (Mon, 05 Oct 2009) Log Message: Rewrote comments in MXFTEText.css. QE notes: None Doc notes: None Bugs: SDK-23588 Reviewer: Ryan Tests run: ant checkintests Is noteworthy

  • Surface Pro 3 restarting after a series of blank screens!

    Hi, I installed the Windows 10 Technical Preview (Build 9926) on my Surface Pro 3. I was not a part of the Windows Insider Program before that. After installation, my Surface has not worked for more than five minutes after which it restarts. During t