Using pgAdmin to Administer PostgreSQL

In this article, we compiled and installed PostgreSQL. PgAdmin is a development and administration tool for PostgreSQL that runs under GNU/Linux, FreeBSD, and Windows 2000/XP. We decided to try one of the Slackware beta snapshots available here. Agatha is running Gentoo on her main workstation, and our best guess was that the Slackware binary would […]

Free Database Tools for Linux – Part One: TOra

If you work with commercial databases Oracle or Microsoft SQLServer, there’s a couple of free tools you ought to know about. For Oracle admins, users, and developers, there’s TOra, the Toolkit for Oracle. By our estimation, it’s as good as TOAD and free is a VERY good price. TOra runs on Linux, Solaris, and Windows. […]

Free Database Tools for Linux – Part Two: SQSH

I ran across SQSH when I was building the Perl DBD:Sybase module to connect to MS SQLServer databases for monitoring purposes. Both SQSH and DBD:Sybase can use a set of free libraries to connect to SQLServer instead of the Sybase client libraries. I thought this was pretty darn cool. I also thought it was cool […]

Copying Table Structures With MySQL

We often have to get basic tables in place for our MySQL web backend. To create a new database: [root@main gg]# mysql -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8374 to server version: 3.23.54 Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to […]

Creating a Database With MySQL

Let’s say we want to track our servers using a database instead of those nasty spreadsheets that many of us use. MySQL is a pretty simple and cheap way to get started. We are going to use a blank root password in these examples to ease typing, however, you should change the root password following […]

Importing Spreadsheets Into MySQL

In this article, we created a database in MySQL, as well as a sample table called systemsdoc. This article is for you screwheads that still document your systems with Excel spreadsheets. Eventually, we will show you how to run reports and update the database via customized web pages. First, though, we need to get the […]

Getting phpMyAdmin to Work With Gentoo

We emerged Apache to start, and noticed that PHP didn’t work correctly. Kinda makes sense, but ya gotta start somewhere. We’ve relied on RPMs in the past, as in this article. There are some gotchas. Agatha’s Gentoo workstation is a year old or so, now, so emerge mod_php and emerge phpmyadmin didn’t quite work as […]

Adding Records to MySQL Databases With HTML/PHP

In this article, we loaded up our new MySQL database with data. Adding records from a CLI tool is a bit cumbersome. PHP is a great way to add records to a MySQL database. For more information on PHP, see our articles here. The first step in using PHP is to set up the database […]

Updating Records in MySQL Databases With HTML/PHP

In this article we added a record to our systems database. We made a mistake, though, and would like to update the record so that the date is correct. Here is the current date: mysql> select manu, model, deploy_date, sernum, sysversion from systemsdoc -> where UID=8; +—————–+———+————-+——–+————–+ | manu | model | deploy_date | sernum […]

Deleting Records in MySQL Databases With HTML/PHP

In this article, we updated a troubling record. Well, let’s just delete the whole record. In fact, let’s delete the record with HTML and PHP!! Easy as pie. First we need a little HTML: <html> <head> <title>SystemsDoc Delete</title> </head> <body bgcolor=”white”> <form method=”POST” action=”sysdocdelete.php”> <table> <col span=”1″ align=”right”> <tr> <td><font color=”blue”>UID to delete:</font></td> <td><input type=”text” […]