Ported over, seems to work fine so far, install howto, can run this all directly on the iphone:
# pwd
/var/root
# wget http://wickedpsyched.net/iphone/databases/mysql.tgz
# tar zxf mysql.tgz
# cd mysql/bin
# ./mysql_install_db
[snip]
Installing MySQL system tables…
OK
Filling help tables…
OK
Now start the daemon (you should really make a local mysql user but –user will work for now):
# ./mysqld_safe –user=root &
[1] 284
# Starting mysqld daemon with databases from /var/root/mysql//var
# ./mysql mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.45 Source distribution
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.
mysql> select host from user where host like ‘%iPhone%’;
+——–+
| host |
+——–+
| iPhone |
+——–+
1 row in set (0.02 sec)