Presentation is loading. Please wait.

Presentation is loading. Please wait.

An Early Look at MySQL™ on Novell NetWare®

Similar presentations


Presentation on theme: "An Early Look at MySQL™ on Novell NetWare®"— Presentation transcript:

1 An Early Look at MySQL™ on Novell NetWare®
Novell BrainShare 2002 An Early Look at MySQL™ on Novell NetWare® Rob Lyon Engineer Novell, Inc. Paul Thomas TUT250—An Early Look at MySQL on Novell NetWare

2 Outline Introduction Build Install Operation

3 MySQL™ on NetWare® introductio

4 What Is MySQL? A relational database management system
The most popular open-source SQL database Pronounced “my ess cue ell,” not “my sequel”

5 Vision…one Net Mission
A world where networks of all types—corporate and public, intranets, extranets, and the Internet—work together as one Net and securely connect employees, customers, suppliers, and partners across organizational boundaries Mission To solve complex business and technical challenges with Net business solutions that enable people, processes, and systems to work together and our customers to profit from the opportunities of a networked world

6

7 Under Construction

8 MySQL on NetWare Build

9 Guiding Principle All changes made to the MySQL source code to enable it to run on Novell NetWare will be… Compatible with the current MySQL architecture, design, and coding style Given back to the open-source community

10 Build Environment MySQL for NetWare is built using…
Standard MySQL makefiles configured using standard GNU tools Automake and Autoconf MetroWerks CodeWarrior command-line compiler and linker with LibC header files and libraries Cygwin UNIX environment for Windows

11 Build Environment (cont.)
Windows Metrowerks CodeWarrior 7.0 CodeWarrior PDK 4.0 LibC (March 2002) Cygwin 1.3.x MySQL standard-source files MySQL NetWare-specific changes

12 --target=i686-pc-netware6
Build Process MySQL source + MySQL delta for NetWare 6 autoconf configure.in configure --target=i686-pc-netware6 --prefix='SYS:/mysql' --without-docs config.h.in */…/Makefile.in config.h */…/Makefile make MySQL for NetWare 6 make install make init-db

13 MySQL on NetWare Install

14 Dependencies NetWare 6 SP1 LibC—March 2002
developer.novell.com/ndk/libc.htm

15 Installation Download and unzip LE167.ZIP to the sys:\ volume of your server Add “SYS:\MYSQL\BIN” to your search path Load “mysqld”

16 MySQL on NetWare Operation

17 Connecting to MySQL SERVER: mysql –h host –u user –p
Enter password: ******* Welcome to the MySQL monitor. … mysql> quit Bye

18 Creating a Database mysql> CREATE DATABASE zoo; mysql> USE zoo
Database changed SERVER: mysql –h host –u user –p zoo

19 Creating a Table mysql> CREATE TABLE animal (name VARCHAR(20),
-> species VARCHAR(20), sex CHAR(1), -> birth DATE); mysql> GRANT ALL ON animal.* TO user;

20 Populating the Table mysql> INSERT INTO animal
-> VALUES (‘Fluffy’, ‘African Elephant’, -> ‘f’, ‘ ’); mysql> LOAD DATA LOCAL INFILE “animal.txt” -> INTO TABLE animal;

21 Querying the Table mysql> SELECT * FROM animal
-> WHERE name = “Fluffy”; mysql> SELECT name FROM animal -> WHERE birth >= “ ” -> AND sex = “f”;

22 Getting Information mysql> SHOW DATABASES;
mysql> SELECT DATABASE(); mysql> SHOW TABLES; mysql> DESCRIBE animal;

23 Batch Mode SERVER: mysql < batch-file
SERVER: mysql < batch-file > mysql.out

24 Security Issues SERVER: mysql –u root WARNING!!!
SERVER: mysqladmin –u root password password mysql> SHOW GRANTS FOR mysql> REVOKE ALL PRIVILEGES ON *.* -> FROM

25 User Accounts mysql> GRANT ALL PRIVILEGES ON *.*
-> TO IDENTIFIED BY ‘password’ -> WITH GRANT OPTION; mysql> GRANT USAGE ON *.* -> TO mysql> SET PASSWORD FOR = -> PASSWORD(‘password’);

26 Database Backups SERVER: mysqldump --opt database > backup.sql
SERVER: mysql database < backup.sql mysql> BACKUP TABLE table TO ‘/backup’ mysql> RESTORE TABLE table FROM ‘/backup’

27 MySQL Client APIs JDBC PHP Perl C C++ ODBC Python Tcl Eiffel

28 C Example MYSQL mysql; mysql_init(&mysql);
mysql_real_connect(&mysql,"host","user", "password","database",0,NULL,0)); mysql_close(&mysql);

29 JDBC Example Class.forName("org.gjt.mm.mysql.Driver");
Connection con = DriverManager.getConnection( "jdbc:mysql://host/database“, “user”, “password”); con.close();

30 demonstratio

31 More Information http://www.mysql.com

32


Download ppt "An Early Look at MySQL™ on Novell NetWare®"

Similar presentations


Ads by Google