My sql


Published on

Introduction of MySQL

Published in: Technology
1 Comment
  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

My sql

  1. 1. Infinity 1
  2. 2. • Released internally in May 1995• First released to the general public at the end of 1996• MySQL founded in 2001 focus on performance and scalability• By 2006, there are more than five million active MySQL installations worldwide, with more than 35,000 copies of the software downloaded daily• MySQL was acquired by Sun Microsystem in February 2008• Flexibility: available for 12 platforms, including DEC OSF, FreeBSD, IBM AIX, HP-UX, Linux, Mac OS X, Novell NetWare, OpenBSD, QNX, SGI IRIX, Solaris, and Microsoft Windows.• Power: performance and scalability are focus. New features were added with new releases. Capability now closer to commercial RDBMS.• Full-Text Indexing and Searching• Query Caching• Replication• Security up to the columns Infinity 2
  3. 3. • Complete foreign key support• Stored procedures• Views• Triggers• INFORMATION_SCHEMA Infinity 3
  4. 4. 1. Go to and download the latest version of MySQL2. Run the gunzip mysql-4.1.9.tar.gz command3. Run the tar xvf mysql-4.1.9.tar command4. Change to the mysql-4.1.9 directory Infinity 4
  5. 5. 6. Run the ./configure command7. Compile the MySQL code with the make command8. Run the make install command9. Change to the scripts directory10.Run the mysql_install_db --user=mysql script11.Run the ownership commands: chown -R root /usr/local/mysql chown -R mysql /usr/local/mysql/var chgrp -R mysql /usr/local/mysql Infinity 5
  6. 6. 1. Go to Open Windows Explorer or My Computer and start the MySQL installation3. In the Welcome screen, click Next to start the installation4. Accept the default setup type Typical, click Next5. Click Back to make changes or click Install to continue Infinity 6
  7. 7. 6. Create a new account or skip sign-in, click Next7. In the Wizard Completed screen, click Finish8. In the first screen of the MySQL Server Instance Configuration Wizard, click Next9. In the Configuration Type screen, select Standard Configuration, click Next Infinity 7
  8. 8. 10.In the Windows Options screen, accept the default values (do not select the Include Bin Directory in Windows PATH check box), click Next11.In the Security Options screen, deselect the Modify Security Settings check box, click Next12.Click Back to change any of the configuration operations or Execute to finish Infinity 8
  9. 9. 1. Check to see if MySQL is running • For UNIX/Linux systems: /usr/local/mysql/bin/mysqld_safe --user=mysql & • For Windows, use the Services window2. Run the mysqladmin version command • For UNIX/Linux systems: /usr/local/mysql/bin/mysqladmin version • For Windows, change to the C:Program FilesMySQLMySQL Server 4.1bin directory and run: mysqladmin version Infinity 9
  10. 10. • SHOW databases; • Will show the list of databases in the mysql server• USE mysql; • Use database named mysql• SHOW TABLES; • Will show the list of tables present in the database mysql• DESCRIBE host; • Will show schema details for table host• SELECT Host, User, password FROM user ORDER BY Host; • A query to select host, username and password from user table. • For more queries and syntax related information visit Infinity 10
  11. 11. ∞Infinity 11