Manuals is 1

Embed Size (px)

Citation preview

  • 7/28/2019 Manuals is 1

    1/10

    1

    PRESENTS

    Elaboration and Review:

    Fernando Rodrguez Carbajal

    Adan Rodrguez Mendoza

    J oacim Santiago Rosas

  • 7/28/2019 Manuals is 1

    2/10

    2

    Identification..1

    Index...2

    Introduction3

    Objectives..3

    Responsibility3

    Advantage of the application..4

    Politics...4

    Procedure (contain).4

    Glossary....10

  • 7/28/2019 Manuals is 1

    3/10

    3

    Introduction

    The contents of this manual will help us greatly to have a better handle on the

    financial accounts of the company.

    The main goal is to have a backup of the information to prevent property loss and

    productivity assessed, programming databases to maintain progress and avoid

    backlogs. In short to make a good database, you need to analyze the situation and

    create a solution.

    Once your database and the client has looked that was generated a solution to

    make your database, imagine that there are no problems with the administration

    and both work with paperwork.

    All this is to take from a database that will replicate on another computer. With

    security services administrator total control and a customer account. (must be

    trusted by the administrator).

    Objectives:

    Analyze the operation Master-Slave replication.

    Make a Master-Slave connection according to the configuration provided.

    Responsibility:

    Ing. Adn David Rodrguez Mendoza

    Ing. Fernando Rodrguez Carbajal

    Ing. J oacim Santiago Rosas

  • 7/28/2019 Manuals is 1

    4/10

    4

    Advantages of the Application

    No problems with your administration. Security and protection of the info in the database.

    Overheads reduced by the management of the info.

    Work hard moderated in the work shift of the personal in your enterprise.

    Order and management of your departments and your inventory.

    Increased cannibalization in the product market.

    Information protected and supported, a fall from the central server.

    Politics1. Using Master-Slave Replication is exclusive in charge for the Personal Data

    Area.2. Only personnel in charge of the data area can manipulate the contents of

    the databases.3. Using Master-Slave Replication must be done whether to add new servers

    and / or one server has fallen and this lost its master or slave configuration4. It is prohibited to sale total or partial this manual

    Procedure

    We need to have installed "PhpMyAdmin" with "AppServ 2.5.0"

    To realize the database replication, we need connecting the cross network wire in

    the 2 computers.

  • 7/28/2019 Manuals is 1

    5/10

    5

    Make the test of connection between of the two computers (Slave is the computer

    where will be replicate the database, Master is the computer where it found the

    principal and original info). We do a simple test in the computer.

    In the Master computer, we going to the navigator of Windows and write "execute",

    open the application, next in the command line, write "ping" next of the IP directionassigned for you to the slave machine. Make the same in the other computer.

    Slave computer

    Master computer

    Master Configuration

    Next in the Equip, We go to open the Hard Disk in the Partition "C:\", there, we

    have a folder named "AppServ. Go inside and next go to the folder "MySQL",

    open the "my.ini" file and modify the file in the server section and [mysqld]. Write

    the next lines:

  • 7/28/2019 Manuals is 1

    6/10

    6

    Save the my.ini file.

    Open MySQL from command line and we write the next sentences.

    >mysql u root -p

    Write your name account and your password:

    Write flush provileges and after we choose the database from command line.

  • 7/28/2019 Manuals is 1

    7/10

    7

    With the next command, we watch the content of the database.

    Replicate the database with the next command:

    For the last steep, write the next command to show the master status (this

    information will need the slave computer).

    We replicated the database with the next command to copy and paste in the Slave

    computer.

    We copy in a USB and we paste in the slave computer inside of C:/Users-

    Database.

  • 7/28/2019 Manuals is 1

    8/10

    8

    Slave Configuration

    We go to open "PhpMyAdmin" in the navigator, placing in the bar of search

    "localhost" with the username and password. We created a new user (user

    resident in the Master computer). The others values remain in default.

    We paste the database (from master) in the C: Hard Disk. Ingress to command line

    in the Slave computer:

    We show the database that we paste in the previous step. In C: Hard Disk -

    >AppServ->MySQL, modify the my.ini file in the next way.

  • 7/28/2019 Manuals is 1

    9/10

    9

    In the command line, write the next command specified in the picture.

    Next, write START SLAVE to turn on the replication.

    Now, all the information that it write in the master computer, is displayed in the

    slave computer.

  • 7/28/2019 Manuals is 1

    10/10

    10

    Glossary

    Appserv: Is an OpenSource tool for Windows with Apache, MySQL, PHP andother additions, in which these applications are configured automatically, allowing

    to run a full web server.

    Master: The Equip has the full control of the database.

    PhpMyAdmin: Is a tool written in PHP intended to handle the administration ofMySQL over the web.

    Ping: Connectivity in two computers

    Replicated: Copying and maintaining database information that use aComputer for one or more users can use in the same time.

    Slave: Equip has limited access to the database.