Installation of MySQL Objectives Contents Practical Summary

Slides:



Advertisements
Similar presentations
WordPress Installation for Beginners Sheila Bergman
Advertisements

Installation and use of Linux as a client and server operating system: a tutorial AMCIS 99Al Bento.
Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1
Installation of MySQL Objectives –Install MySQL Contents –Getting the enviroment for building MySQL server –Rebuilding SRPMS –Removing existing –Installing.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Module 8 Linux Installation Procedures 8.1 Pre-Installation Tasks 8.2 Installing and Configuring Linux 8.3 X Server 8.4 Post Installation Configuration.
Lesson 4-Installing Network Operating Systems. Overview Installing and configuring Novell NetWare 6.0. Installing and configuring Windows 2000 Server.
Chapter 2: Exploring the Desktop The Complete Guide to Linux System Administration.
Presented by Mina Haratiannezhadi 1.  publishing, editing and modifying content  maintenance  central interface  manage workflows 2.
NDT Tools Tutorial: How-To setup your own NDT server Rich Carlson Summer 04 Joint Tech July 19, 2004.
UNIT - III. Installing Samba Windows uses Sever Message Block(SMB) to communicate with each other using sharing services like file and printer. Samba.
SYST Web Technologies SYST Web Technologies Installing a Web Server (XAMPP)
Open Source Software WampServer Presented By Mr. R.Aravindhan.
Linux Operations and Administration
1 SAMBA. 2 Module - SAMBA ♦ Overview The presence of diverse machines in the network environment is natural. So their interoperability is critical. This.
Downloading & Installing Software Chapter 13. Maintaining the System Yum Pirut BitTiorrent Rpm Keeping Software Up To Date Up2date Red Hat Network Wget.
Module 10 – Linux Installations. Wikipedia: Red Hat Package Manager or RPM Package Manager (RPM) is a package management system. The name RPM variously.
Managing Software using RPM. ♦ Overview In Linux, Red Hat Package Manager referred as RPM is a tool used for managing software packages and its main function.
Linux Operations and Administration
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Microsoft Word 2000: Mail Merge Basics Peggy Serfazo Marple Molly Calvello Support Professionals Business Applications - Desktop Microsoft Corporation.
Chapter 14: Remote Server Administration BAI617. Chapter Topics Configure Windows Server 2008 R2 servers for remote administration Remotely connect to.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 4 Manage Software for SUSE Linux Enterprise Server.
National Center for Supercomputing Applications NCSA OPIE Presentation November 2000.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R.
SUSE Linux Enterprise Desktop Administration Chapter 6 Manage Software.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
Linux Introduction What is Linux? How do you use it?
Apache, MySQL and PHP Installation and Configuration Chapter 1 Apache Installation and Configuration.
Installation of packages Objectives –Using software packaging tools Contents –Application delivered as –Where to get commonly used rpm’s –Autofs on! –Getting.
CHAPTER 2. Overview 1. Pre-Installation Tasks 2. Installing and Configuring Linux 3. X Server 4. Post Installation Configuration and Tasks.
Proxy Installer for Windows Squid: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response.
What is a port The Ports Collection is essentially a set of Makefiles, patches, and description files placed in /usr/ports. The port includes instructions.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
CHAPTER 8 Managing Software and System Resources.
MySQL Getting Started BCIS 3680 Enterprise Programming.
Installation of packages Objectives –Using software packaging tools Contents –Application delivered as –Where to get commonly used rpm’s –Autofs on! –Getting.
Installation of PHP5 Objectives –Install PHP5 with support for Apache and MySQL Contents –Installing latest dependencies LibXML & LibSLT –Compiling and.
What is MySQL? MySQL is a relational database management system (RDBMS) based on SQL (Structured Query Language). First released in January, Many.
Network Time Protocol Objectives Contents to learn how to setup ntp
SQL SERVER 2008 Installation Guide A Step by Step Guide Prepared by Hassan Tariq.
RedHat Package Management RPM and YUM in RedHat Enterprise, Fedora, Suse and Centos.
(ITI310) By Eng. BASSEM ALSAID SESSIONS 10: Internet Information Services (IIS)
Cygwin Tutorial 1. What is Cygwin? Cygwin offers a UNIX like environment on top of MS-Windows. Gives the ability to use familiar UNIX tools without losing.
Installation of PHP5 Objectives –Install PHP5 with support for Apache and MySQL Contents –Installing latest dependencies LibXML & LibSLT –Compiling and.
INTERNET APPLICATIONS CPIT405 Install a web server and analyze packets.
CACI Proprietary Information | Date 1 PD² SR13 Client Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8, 2011.
Installing a Moodle Test Site The painless and easy way.
C Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup Additional Installation Topics.
Scientific Linux Inventory Project (SLIP) Troy Dawson Connie Sieh.
How to use Drupal Awdhesh Kumar (Team Leader) Presentation Topic.
Operated by Los Alamos National Security, LLC for NNSA U N C L A S S I F I E D Slide 1 Institutional Install of Red Hat Enterprise Linux From One CD In.
Course : PGClass : MCA Subject: Operating SystemSub.Code : 3CT11 Staff Name : S.SomasundaramYear & Sem : II nd & III rd.
System Administration Application Management. ● A common task for a system administrator is the installation, updating and removal of software. Several.
2nd year Computer Science & Engineer
Guide to Linux Installation and Administration, 2e
Connect:Direct for UNIX v4.2.x Silent Installation
DHCP server & Client Objectives Contents
CCNA 3 v3.1 Module 6 Switch Configuration
Managing Software.
Lecture 13 RPM and its advantages.
More Scripting & Chapter 11
RedHat Package Management
Lab #1 Install Linux & How to Build Live CD
University of Texas Rio Grande Valley Systems Administration CSCI 6175
Installing Linux Redhat:
Configuration Of A Pull Network.
CPAN 260 Relational Database Design and SQL
Cygwin.
Presentation transcript:

Installation of MySQL Objectives Contents Practical Summary Install MySQL Contents Application delivered as Rebuilding SRPMS Removing existing Installing new MySQL Verify installation Creating MySQL admin Practical Summary

Developers enviroment needed If you want to install applications from SRPMS or TAR packages Start X-Windows: and then start: Or if pakgaes is somewhere else, here on ftp server Goto section Development and check Development Tools (Go inside and check all GCC options not checked) Then click on Update and follow instruction’s You might Need more! Save time and go to next page and add packages from other sections as well # startx # redhat-config-packages # redhat-config-packages –tree=ftp://server.com/RPMS redhat-config-packages redhat-config-packages is a graphical package installation tool to use to install various packages onto your system. There are three different modes of operation for redhat-config-packages. redhat-config-packages: This is the primary mode of operation. It is used to install extra packages from package groups included in Red Hat Linux. This uses CDs to install the packages by default. You can instead use a Red Hat Linux installation tree with the option '-tree=/path/to/tree' or use a directory with Red Hat Linux ISO images with the option '--isodir=/path/to/dir'. redhat-cdinstall-helper: This is used when installing packages from additional CDs and can resolve dependencies on packages from the main distribution. redhat-install-packages: This can be used to install single packages. Takes an argument of what packages to install. Resolves dependencies as needed on packages from the main distribution. Notes "Trees" are a complete Red Hat Linux installation tree with the RedHat directory as well as the .discinfo file.

Install original MySQL, Apache & PHP It is a good idea to have RedHat original servers You will have all files, and only need to update Start X-Windows: and then start: Or if pakgaes is somewhere else, here on ftp server In section Servers check: Server Configuration Tools Web Server (add PHP, SQL, PERL) Mail Server (SendMail) Windows File Server DNS Server FTP Server SQL Database (check MySQL) In section System check: Administration Tools System Tools Then click on Update and follow instruction’s # startx # redhat-config-packages # redhat-config-packages –tree=ftp://server.com/RPMS At sthis stage we add up our RH9 to become a server in development stage. The Final server is stripped and might look something like this: Desktops X Windows Don't tick Gnome Desktop Don't tick KDE Desktop Don't tick Applications Editors Don't tick Engineering & Scientific Don't tick Graphical Internet Don't tick Text Based Internet Tick Office / productivity Don't tick Sound & Video Don't tick Authoring & Publishing Don't tick Graphics Don't tick Games & Entertainment Don't tick Servers Server Configuration Tools Tick Web Server Tick Mail Server Tick Windows File Server Tick DNS Server Tick FTP Server Tick SQL Database Tick News Server Don't tick Network Server Don't tick Development Development Tools Don't tick Kernel Development Don't tick X Software Development Don't tick Gnome Development Don't tick KDE Development Don't tick System Administration Tools Tick System Tools Tick Printing Support Don't tick Misc Minimal Don't tick Everything Don't tick

Rebuild MySQL from SRPMS Stop running mysql Download MySQL SRPM to /usr/local/src Rebuild Source RPM Process take between 1 to 4 hour to complete! # service mysqld status mysqld (pid 1228) running... # service mysqld stop # cd /usr/local/src # wget ftp://server.com/path/MySQL-4.1.8-0.src.rpm Server.com/path must be replaced with your download. You find current stable version of MySQL (2005-01-05) annonced Source RPM at: http://dev.mysql.com/downloads/mysql/4.1.html Note! When writing this, a new subversion of MySQL has been released MySQL-4.1.9-0.src.rpm # cd /usr/local/src # rpmbuild --rebuild MySQL-4.1.8-0.src.rpm

Check rebuilded packages Rebuilded SRPMS en up in: /usr/src/redhat/RPMS/i386 Check that the rebuild created this files: SRPMS can also be generated for specific CPU Then you have to checkproper sub-catalogs i486/, i686/. . . # cd /usr/src/redhat/RPMS/i386 # ls –1 MySQL-bench-4.1.8-0.i386.rpm MySQL-client-4.1.8-0.i386.rpm MySQL-debuginfo-4.1.8-0.i386.rpm MySQL-devel-4.1.8-0.i386.rpm MySQL-embedded-4.1.8-0.i386.rpm MySQL-Max-4.1.8-0.i386.rpm MySQL-server-4.1.8-0.i386.rpm MySQL-shared-4.1.8-0.i386.rpm You will not need all created RPM’S, these are needed: shared, server, devel, client and debuginfo

Removing old MySQL and installing new Removing old MySQL libraries, ignoring dependecies Installing new MySQL and subcomponents rpm –qa | grep –i mysql . . . mysql-3.23.54a-11 rpm -e --nodeps mysql-3.23.54a-11 cd /usr/src/redhat/RPMS/i386 rpm -ivh MySQL-shared-4.1.8-0.i386.rpm rpm -ivh MySQL-server-4.1.8-0.i386.rpm rpm -ivh MySQL-devel-4.1.8-0.i386.rpm rpm -ivh MySQL-client-4.1.8-0.i386.rpm rpm -ivh MySQL-debuginfo-4.1.8-0.i386.rpm In order to update MySQL you need to remove old MySQL libraries, that can only be done by ignoring dependencies with –nodeps switch.

Checking installation Check that all files are there The rpm –qa takes some time, have pation We also installed mysql-admin for rh9, as you can see. The module perl-DBD is needed for API rpm -qa | grep -i mysql MySQL-shared-4.1.8-0 MySQL-debuginfo-4.1.8-0 MySQL-server-4.1.8-0 MySQL-client-4.1.8-0 MySQL-devel-4.1.8-0 mysql-administrator-1.0.18-1.rh9 perl-DBD-MySQL-2.1021-3 You should see at least files you installed with rpm, if you see more files it is OK.

Start service & Create MySQL admin Starting MySQLd service Before you can do anything with MySQL it must be running and you must have a client installed. Check logfiles tail /var/log/messages to se any startup error Creating MySQL admin Test MySQL # service mysql start # /usr/bin/mysqladmin -u root password 'qwerty' # /usr/bin/mysqladmin -u root -h my-server.com password 'qwerty' # /usr/bin/mysql_fix_privilege_tables You should be able to see your databases with show databases; To drop a database means that it is erased from server! # mysql –u root –p Enter password: mysql> create database test; Query OK, 1 row affected (0.00 sec) mysql> show databases; mysql> drop database test; mysql> exit;