/* PHP & MySQL Journal */
mysql administration program, adminer
In: mysql
17 Aug 2009easily copy tables in mysql
Whether desktop or web based, there has recently been a proliferation of SQL design tools on the net. SchemaBank may look like one more in the box. But a detailed look at the features will show you more on offer. SchemaBank is a visual data modelling tool which can help you create ERD diagrams within [...]
In: mysql
28 Feb 2009The MySQL SELECT is a ubiquitous statement. You can select rows using the ‘*’ operator or by listing the individual column names. But many times you may require using all the columns from a table except a couple of them. For example you may have a table containing twelve columns from which you require only [...]
HeidiSQL is an easy-to-use ide for web-developers using the popular MySQL-Database. It allows you to manage and browse your databases and tables from an intuitive Windows® interface. With a download size of less than 2Mb, it is quite lightweight and fast to load.
In: mysql
4 Feb 2009Below is a small script that lets you read the table sizes of a MySQL database.
< ?php
$link = mysql_connect(’host’, ‘username’, ‘password’);
$db_name = "your database name here";
$tables = array();
mysql_select_db($db_name, $link);
$result = mysql_query("SHOW TABLE STATUS");
while($row = mysql_fetch_array($result)) {
/* We return the size in Kilobytes */
$total_size = ($row[ "Data_length" ] [...]
WWW SQL Designer is a free database designer. It allows developers to create database schemas using a graphical interface. The designs can be further saved/loaded and exported to SQL scripts. The software supports a number of databases and languages.
MySQL Sidu is a FREE MySQL client which works via a web browser. Written in php (on surprise there!), MySQL Sidu is a simple and easy to use database tool. Sidu stands for Select Insert Delete Update. Of course Sidu can do more jobs than these. Many of you may already be using other MySQL [...]
There frequently arises a need to return mySQL query results in xml. Maybe you need to send the xml data to the browser or you want to use it as a xml request to a web service; whatever the application, the following function will return the result of a sql query in xml format.
The [...]
In: mysql
25 Jul 2008In MySQL it is easy to sort rows by using the ORDER BY clause on the column name. Recently on a client request the sort had to be done using the column values rather than the name. Since I had never come across sorting using values, a couple of minutes of searching was in order; [...]