Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Identification..1
Index...2
Introduction3
Objectives..3
Responsibility3
Politics...4
Procedure (contain).4
Glossary....10
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. Joacim Santiago Rosas
Politics
1. 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 configuration 4. 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.
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 direction assigned 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:
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.
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.
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.
In the command line, write the next command specified in the picture.
Now, all the information that it write in the master computer, is displayed in the slave computer.
Glossary
Appserv: Is an OpenSource tool for Windows with Apache, MySQL, PHP and
other 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 of
MySQL over the web.
Ping: Connectivity in two computers Replicated: Copying and maintaining database information that use a
Computer for one or more users can use in the same time.
10