
Moxa Technologies Co., Ltd.
SW Spec.
文件編號:
版本:
頁次:11/13
debian:/tmp#
debian:/tmp# tar –zxf ./mysql-dev.tgz
debian:/tmp# cd mysql-dev
debian:/tmp/mysql-dev# ls
examples include lib
3.4.2. Compile and Test Examples
1. Entering directory ‘mysql-dev/examples’ and type ‘make’ to compile examples. These examples
are default connect to localhost as root without password, it will work on new installed MySQL
server, if you want to change these settings, please modify these examples’ source code.
192.168.30.126 - Putty
debian:/tmp/mysql-dev# cd example
debian:/tmp/mysql-dev/examples#
debian:/tmp/mysql-dev/examples# make
[root@jaredRH90 examples]# make
xscale_be-gcc -c get_server_info.c -I../include/mysql/
xscale_be-gcc get_server_info.o -o get_server_info -L../lib/mysql/ -lmysqlclient
xscale_be-gcc -c get_client_info.c -I../include/mysql/
xscale_be-gcc get_client_info.o -o get_client_info -L../lib/mysql/ -lmysqlclient
xscale_be-gcc -c create_db.c -I../include/mysql/
xscale_be-gcc create_db.o -o create_db -L../lib/mysql/ -lmysqlclient
xscale_be-gcc -c delete_db.c -I../include/mysql/
xscale_be-gcc delete_db.o -o delete_db -L../lib/mysql/ -lmysqlclient
xscale_be-gcc -c create_table.c -I../include/mysql/
xscale_be-gcc create_table.o -o create_table -L../lib/mysql/ -lmysqlclient
xscale_be-gcc -c alter_table.c -I../include/mysql/
xscale_be-gcc alter_table.o -o alter_table -L../lib/mysql/ -lmysqlclient
xscale_be-gcc -c delete_table.c -I../include/mysql/
xscale_be-gcc delete_table.o -o delete_table -L../lib/mysql/ -lmysqlclient
xscale_be-gcc -c insert.c -I../include/mysql/
xscale_be-gcc insert.o -o insert -L../lib/mysql/ -lmysqlclient
xscale_be-gcc -c select.c -I../include/mysql/
xscale_be-gcc select.o -o select -L../lib/mysql/ -lmysqlclient
xscale_be-gcc -c update.c -I../include/mysql/
xscale_be-gcc update.o -o update -L../lib/mysql/ -lmysqlclient
[root@jaredRH90 examples]#
2. Copying these examples to UC box and run it.
192.168.30.126 - Putty
[root@jaredRH90 examples]# ftp 192.168.30.126
Connected to 192.168.30.126 (192.168.30.126).
220 Moxa FTP server (Version wu-2.6.1(15) Wed Jun 7 11:17:28 CST 2006) ready.
Name (192.168.30.126:root): root
331 Password required for root.
Password:
230 User root logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /mnt/ramdisk
Komentáře k této Příručce