Use SQLite with Java

In order to use SQLite 3 with Java, you need to do the following steps on your Linux or Windows box. I have deliberately kept off specific commands. Install SQLite3 from your Linux distribution repository. You can also download the Windows edition if you use Windows. Visit https://bitbucket.org/xerial/sqlite-jdbc and download the JDBC driver. I downloaded … Continue reading Use SQLite with Java

Dump MySQL tables to text file for backup

$ mysqldump address --add-drop-database --add-drop-table --add-locks --complete-insert --flush-privileges -R --triggers > /home/user/addressdump.mysql Repeat above for every table in your system. You can also put it in a batch file for a series of tables. This is the only way to restore databases if you upgrade to MySQL to a major version. This was an exception, … Continue reading Dump MySQL tables to text file for backup

Install and setup GTK+ and MySQL in Windows

Install Dev C++ (devcpp) Install gtk-dev-2.8.6.DevPak Install mysql.devPak Install mysql gtk_win32_devel_2.8.6_rc3.exe gtk-2.8.6-runtime.exe mysql-4.0.14b-win-noinstall.zip In Dev C++, do the following steps: Add all of Dev_cpp/ lib to Project->ProjectOptions Add libmysql-lib to above also Copy MySQLLib.dll into windows/system32 and this gets rid of the mysql DLL runtime error. Remove files not recognized during build such as ../lib/jpeg-bcc.lib. … Continue reading Install and setup GTK+ and MySQL in Windows