how to use mysql in linux

11
How to Use MySql in Li nux by CaiYao Nov ,2004

Upload: lundy

Post on 04-Jan-2016

73 views

Category:

Documents


4 download

DESCRIPTION

How to Use MySql in Linux. by CaiYao Nov ,2004. PlatForm. RedHat 9 MySql 3.23.54 phpMyAdmin 2.5.7(depend on Apache). Start the Service. /sbin/service mysqld start (For phpmyadmin) /sbin/service httpd start. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: How to Use MySql in Linux

How to Use MySql in Linux

by CaiYao Nov ,2004

Page 2: How to Use MySql in Linux

PlatForm RedHat 9 MySql 3.23.54 phpMyAdmin 2.5.7(depend on Apach

e)

Page 3: How to Use MySql in Linux

Start the Service

/sbin/service mysqld start (For phpmyadmin) /sbin/service httpd start

Page 4: How to Use MySql in Linux

Use C to operate the Database

1.Initialize 2.Connect 3.Operate 4.Close 5.Encrypt

Page 5: How to Use MySql in Linux

Initialize

Page 6: How to Use MySql in Linux

Connect

Page 7: How to Use MySql in Linux

Query

Page 8: How to Use MySql in Linux

Operation MYSQL_RES *result;

MYSQL_ROW row; int onlinefriends,userport;

Page 9: How to Use MySql in Linux

Close

Page 10: How to Use MySql in Linux

Compile and Run

gcc -o test test.c -L/usr/lib/mysql -lmysqlclient

Page 11: How to Use MySql in Linux

Thank you!