Menu
×
  • Main
  • Home
  • Network Monitoring Software
  • Application Monitoring Software
  • Bandwidth Monitoring Software
  • Syslog Servers
  • TFTP Servers
  • Event Log Analysis Software
  • Help Desk Software
  • IPAM Software
  • Netflow Analyzers and Collectors
  • Network Configuration Management Software
  • VN Manager & Monitoring Software
  • Wake On Lan Tools
  • Info & Contact
  • Contact
  • Terms of Use
  • Privacy Policy
  • Disclaimer
  • Legal
  • © 2016 NetAdminTools.com
    All Rights Reserved

Network Admin Tools

  • Home
  • Monitoring
  • Backup/Recovery
  • GNU/Linux
  • Administration
  • Perl
  • Ruby
  • Database

Copying Table Structures With MySQL

Last Updated: October 3rd, 2016 - Paul Anderson

By Paul Anderson / October 3, 2016 — Database

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

Last Updated: October 3rd, 2016 - Paul Anderson

By Paul Anderson / October 3, 2016 — Database

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

Last Updated: May 11th, 2018 - Paul Anderson

By Paul Anderson / May 11, 2018 — Database

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

Last Updated: October 3rd, 2016 - Paul Anderson

By Paul Anderson / October 3, 2016 — Database

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

Last Updated: May 11th, 2018 - Paul Anderson

By Paul Anderson / May 11, 2018 — Database

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

Last Updated: October 3rd, 2016 - Paul Anderson

By Paul Anderson / October 3, 2016 — Database

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

Last Updated: October 3rd, 2016 - Paul Anderson

By Paul Anderson / October 3, 2016 — Database

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” […]

Creating Sorted Reports For MySQL Databases With HTML/PHP

Last Updated: October 3rd, 2016 - Paul Anderson

By Paul Anderson / October 3, 2016 — Database

Do you have a fondness for greenbar? Well, here is a report that alternates colors in a similar fashion. Woohoo!! Greenbar!!! See this article for details on the database we are running the report against, and our other articles on HTML/PHP. A book we like that really helped us is Web Database Applications with PHP […]

PostgreSQL Initial Install

Last Updated: October 3rd, 2016 - Paul Anderson

By Paul Anderson / October 3, 2016 — Database

PostgreSql is an Open Source project with a BSD license. It is a mature and stable database with transactions, stored procedures, and rollback. PostgreSQL is available for win32;however, we will be compiling and installing this on a GNU/Linux system. First, let’s grab the source from here and decompress: root@srv-1 src # tar -xjf postgresql-8.0.0beta1.tar.bz2 root@srv-1 […]

Using pgAdmin to Administer PostgreSQL

Last Updated: May 11th, 2018 - Paul Anderson

By Paul Anderson / May 11, 2018 — Database

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 […]

Adding an Auto Increment Field with MySQL

Last Updated: September 28th, 2016 at 3:18 pm Paul Anderson

Review By Paul Anderson / September 28, 2016 — Database

If you need to add an auto increment field to a MySQL table, you can use the mysql command to do this: $ mysql -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 622439 to server version: 4.0.22-standard Type ‘help;’ or ‘\h’ for help. Type […]

Backing Up All MySQL Databases

Last Updated: October 3rd, 2016 - Paul Anderson

By Paul Anderson / October 3, 2016 — Database

To back up all databases on a particular server, use the mysqldump command: $ mysqldump –all-databases -p | bzip2 -c > databasebackup.sql.bz2 Enter password: $ This will put all of the databases in a compressed bzip2 file. Transfer the file to your other server and decompress: $ bzip2 -d databasebackup.sql.bz2 $ ls data*.sql databasebackup.sql $ […]

Compiling MySQL 4.1 for Perl DBD Support

Last Updated: September 28th, 2016 at 3:18 pm Paul Anderson

Review By Paul Anderson / September 28, 2016 — Database

After much experimentation, we found the right combination of configure options to get MySQL and Perl DBD::mysql to work correctly on a Red Hat Enterprise 3 box. We were getting some segmentation faults on the binary after switching to a custom kernel. It appears that BIND and MySQL, and probably other apps, are relying on […]

Determining Your MDAC Version

Last Updated: October 3rd, 2016 - Paul Anderson

By Paul Anderson / October 3, 2016 — Database

Microsoft has a tool called the Data Access Component Checker that will determine the version of MDAC running on your system. It is a simple application that will display a dialog like this when run: For more information on the Microsoft Data Access Component checker, see this page.

Installing the MySQL ODBC Client

Last Updated: October 3rd, 2016 - Paul Anderson

By Paul Anderson / October 3, 2016 — Database

If you would like to communicate with MySQL via ODBC, grab the connector from here. The installation is quite straightforward. When you run the install application, read the warning and click next: Accept the license agreement if you wish to continue: Make sure you have uninstalled any existing MySQL ODBC driver. If you have, click […]

Configuring the MySQL ODBC Connector

Last Updated: October 3rd, 2016 - Paul Anderson

By Paul Anderson / October 3, 2016 — Database

In this article we installed the MySQL ODBC Connector. Now, let’s configure the connector. We are configuring this on a Windows XP machine. Find the Data Sources (ODBC) configation tool. On XP this is in Administrative Tools: In the ODBC Data Source Administrator, click add: Select the MySQL ODBC Driver and click Finish: You should […]

Showing All Grants With MySQL

Last Updated: October 3rd, 2016 - Paul Anderson

By Paul Anderson / October 3, 2016 — Database

Users are identified with both a user and a host. If you want to show all of the grants for all users, you need to first look at the mysql.user table: [usr-1@srv-1 ~]$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is […]

Removing Grants in MySQL

Last Updated: October 3rd, 2016 - Paul Anderson

By Paul Anderson / October 3, 2016 — Database

Grants are how MySQL handles user permissions to databases. See our article here for information on showing the grants. To delete grants, you can directly modify the mysql.user table: mysql> select User,Host from mysql.user; +——+—————————+ | User | Host | +——+—————————+ | are | 10.10.10.10 | | are | 10.10.10.11 | | are | 10.50.100.0/255.255.255.0 […]

Importing a CSV file to a SQLite Database

Last Updated: October 3rd, 2016 - Paul Anderson

By Paul Anderson / October 3, 2016 — Database

SQLite has a build in import command for importing records from text files. We used a tab for a field separator: $ sqlite3 database.db SQLite version 3.1.3 Enter “.help” for instructions sqlite> .separator “\t” Now that we have set our field separator, we can import: sqlite> .import ex.txt tablename sqlite>

Setting MySQL System Variables on the Fly

Last Updated: October 3rd, 2016 - Paul Anderson

By Paul Anderson / October 3, 2016 — Database

Many MySQL system variables can be set on the fly at the command line, without restarting the server. This is a great thing at times, like when that new code which was so thoroughly “tested” winds up consuming five times the database connections as the old version. Oops! Well, within the limits of the resources […]

« Previous Page
Next Page »

Search

Must Read Resources

  • WHITE PAPER
    Network Management Software Buyers Guide
  • WHITE PAPER
    GNS3 Network Emulator Training
  • WHITE PAPER
    Netflow Best Practices
  • WHITE PAPER
    Learn how to Analyze Packet with Deep Analysis
  • WHITE PAPER
    How to Find your Highest Bandwidth Users
Network Admin Tools
Network Admin Tools

Categories

  • Active Directory
  • Administration
  • Backup/Recovery
  • BSD
  • Bugs and Fixes
  • Certification
  • Comparisons
  • Database
  • Desktop
  • DIY
  • Email
  • ERP
  • File/Print
  • GIAGD
  • GNU/Linux
  • GNU/Linux Dictionary
  • Hardware
  • Information Grab Bag
  • Interoperability
  • Monitoring
  • Name Resolution and DNS
  • Network Management Software
  • Network Services
  • Networking
  • Perl
  • REALbasic
  • Remote Control
  • Ruby
  • Security
  • Software
  • Solaris
  • Syslog Servers
  • TFTP Server
  • Uncategorized
  • Web
Network Admin Tools
Network Admin Tools

Information

  • Contact
  • Privacy Policy
  • Terms of Use
  • Disclaimer
  • Legal

About

  • About Us
  • Contribute
  • Staff/Authors

© 2026 Network Admin Tools · Powered by Leanpress