MySQL installation: Difference between revisions

From Siwenoid Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Languages|MySQL installation}}
{{Languages|MySQL installation}}
''Next chapter-> [[Datapoint definition]]''
 
''Previous chapter-> [[Prerequisits]] / Next chapter-> [[Installation under Windows]]''
__TOC__
__TOC__


{{Languages|MySQL installation}}
<font color=red>SIWENOID installer installes its own MySQL instance by default. This description recommended only if you want to install a separate one, or you prepare a database server PC with a MySQL instance. Otherwise use the installer: [[Manual installation]]</font>
''Next chapter-> [[Datapoint definition]]''
 
__TOC__
===Installation of MySQL===
===MySQL szerver telepítése===


A http://www.mysql.com/downloads/mysql/ linkre kattintva a letöltő oldalon először bizonyosodjunk meg róla, hogy a platformnál a Microsoft Windows van kiválasztva. A telepítést célszerű MSI installerrel elvégezni, ezek közül is több választási lehetőség adódik. A 32bit-es változatról elmondható, hogy minden Windows verzión működik, a 64bit-es változat csak a 64-bites Windowsokon, de XP-n nem ajánlott.
Click on http://www.mysql.com/downloads/mysql/ link and be sure that you download the Microsoft Windows installer of MySQL. MSI installer is recommended for installation. 32bit version works on any Windows version, 64bit version works on 64bit Windows only, but it is not recommended on XP.
A Download gombra kattintva lehetőség van a MySQL.com oldalra regisztrálni, illetve belépni, ha már regisztráltunk, ám ez nem szükséges. A bejelentkező doboz alatt a “No thanks, just take me to the downloads!” linkre kattintva megjelenik a szerverek listája, ahonnan letölthetjük a telepítőt. A magyar szerver (BME CRSYS) általában jól működik, de bármely másikat is választhatjuk.
Click on download button, and register if you wish to. It is not mandatory. If you click on “No thanks, just take me to the downloads!” link then the download mirrors appear to select.
A fájl letöltése után dupla-kattintással elindítva megjelenik a MySQL szerver telepítője. A végfelhasználói feltételek elfogadása után néhány opció közül választhatunk:
After download double-click on it to launch the installer. Accept the end user agreement and select the appropriate option:


[[Image:inst_image07.png|left|thumb|400px]] A Typical lehetőséget választva a telepítés az alapértelmezett merevlemez partícióra történik (jellemzően C), ezen belül az alkalmazást a Program Files mappába, az adatbázis adatrészét pedig a felhasználó egyéni mappájába fogja elhelyezni. Ha szükség van rá, hogy más elérési útra történjen a telepítés, akkor a Custom gombra kell kattintani.
[[Image:inst_image07.png|left|thumb|400px]] During Typical installation the destination of application files is the default system partition\Program Files. The database file location is going to be selectable. Select Custom button to install MySQL in a different folder.
A választás után az Install gombra kattintva a telepítés néhány másodperc alatt lezajlik (néhányszor a Next gombra kellhet kattintani időközben).  
After selection click on "Install" button and installation are done in few seconds (require some Next).  
<br style="clear: both" />
<br style="clear: both" />
A telepítés végeztével a következő ablakot kell látnunk:
 
[[Image:inst_image37.png|left|thumb|400px]] Mielőtt a Finish gombra kattintunk, bizonyosodjunk meg róla, hogy a Launch the MySQL Instance Configuration Wizard jelölőnégyzet be van pipálva.
After installation the following dialog appears:
[[Image:inst_image37.png|left|thumb|400px]] Mark the Launch the MySQL Instance Configuration Wizard before clicking on Finish button.
<br style="clear: both" />
<br style="clear: both" />


===MySQL szerver konfigurálása===
===Configuration of MySQL server===


A szerver-konfigurációs alkalmazás elindulása után néhányszor a Next gombra kattintva a következő képernyőre jutunk:
Launch server configuration. Click on Next button several to reach the following dialog:
[[Image:inst_image33.png|left|thumb|400px]] Ennél a pontnál bizonyosodjunk meg róla, hogy a Detailed Configuration van kiválasztva, mielőtt a Next gombra kattintunk.
[[Image:inst_image33.png|left|thumb|400px]] On this dialog make sure that the Detailed Configuration is selected, and then click on Next button.
<br style="clear: both" />
<br style="clear: both" />


A következő képernyőn a szerver viselkedését (pl. memóriafoglalás) befolyásoló tulajdonságot választhatjuk ki:
Next dialog concerns to the usage of resource that MySQL are using runtime.
[[Image:inst_image39.png|left|thumb|400px]] A legtöbb esetben a Server Machine opció megfelel a kívánalmaknak, ekkor a MySQL szerver közepes memóriahasználattal fog működni. Amennyiben a számítógépen több, nagyobb memóriaigényű program is fog futni egyidejűleg, akkor érdemes lehet a Developer Machine opciót választani, ekkor kevesebb memóriát fog használni az adatbázis szerver.
[[Image:inst_image39.png|left|thumb|400px]] In most case the Server Machine fits best the requirements. With this settings it will have medium memory usage. If more application (with higher memory usage) is running on a computer then select the Developer Machine option. Then MySQL will use less memory to let other processes to use the rest.
<br style="clear: both" />
<br style="clear: both" />
A következő képernyőn az alapértelmezés (Multifunctional Database) tökéletesen megfelel a felügyeleti rendszer működtetéséhez.
On the next dialog, the default setting (Multifunctional Database) fits the requirement of SIWENOID system.


[[Image:inst_image06.png|left|thumb|400px]] Ezen a képernyőn megadhatjuk, hogy az adatbázisban tárolt adatok hol helyezkedjenek el a merevlemezen. Ha nem állítjuk át az Installation Path lehetőséget, akkor a telepítéskor megadott helyre fognak kerülni, ha ez nem megfelelő, akkor a “...” gombra kattintva adhatunk meg más helyet.
[[Image:inst_image06.png|left|thumb|400px]] On this dialog the location of database can be set. If Installation Path is left default then they will reside on the refered detination. Otherwise you can set any folder for destination.
<br style="clear: both" />
<br style="clear: both" />


[[Image:inst_image17.png|left|thumb|400px]] Ezen a képernyőn szabályozhatjuk, hogy egyszerre hány konkurrens kapcsolatot engedélyez az adatbázis-szerver. Legbiztosabb működést a képen látható beállítással érhetünk el, azaz a Manual Setting opciót kell választani, a Concurrent connections mezőbe pedig az 50-es számot írjuk.
[[Image:inst_image17.png|left|thumb|400px]] The number of concurrent connections should be set to 50. It is recommended in case of SIWENOID. It has importance only in case of bigger systems. Choose Manual Setting option and type 50 to the input field.
<br style="clear: both" />
<br style="clear: both" />


[[Image:inst_image23.png|left|thumb|400px]] A hálózati beállításokat a legtöbb esetben nem kell módosítatunk, kivéve, ha az alapértelmezett 3306-os port már foglalt a számítógépen.
[[Image:inst_image23.png|left|thumb|400px]] Network setting should be left default except that the 3306 port is already occupied or any company firewall setting requires.
<br style="clear: both" />
<br style="clear: both" />


[[Image:inst_image41.png|left|thumb|400px]] A következő képernyőn az alapértelmezett karakterkódolást választhatjuk ki, ez fontos azért, hogy az ékezetek helyesen jelenjenek majd meg a felügyeleti rendszeren.
[[Image:inst_image41.png|left|thumb|400px]] On next dialog choose the character set of database. This is imortant to be able to use appropriate special caharcters.
Válasszuk a Manual Selected Default Character Set / Collation opciót, majd a Character Set legördülő listából válasszuk ki az utf8 lehetőséget, ez a lista legalján található.
Choose the Manual Selected Default Character Set / Collation option, and use listbox to select utf8.
<br style="clear: both" />
<br style="clear: both" />


[[Image:inst_image40.png|left|thumb|400px]] A fenti képernyőn nem kell változtatnunk semmit, ebben az esetben a Windows szervízek közé beregisztrálja a példányt, illetve beállítja, hogy az automatikusan el is induljon.
[[Image:inst_image40.png|left|thumb|400px]] Don't change anything on this dialog. In this case MySQL will be registered among services and will be started automatically during startup of Windows.
<br style="clear: both" />
<br style="clear: both" />


[[Image:inst_image34.png|left|thumb|400px]] A következő felületen az alapértelmezett (root) felhasználó jelszavát kell beállítanunk. A jelszóra nincsen különösebb megkötés, de feltétlenül jegyezzük meg, az adminisztrációs feladatokat a továbbiakban ezzel a felhasználóval lehet majd elvégezni. A root felhasználó távoli hozzáférésének engedélyezésére többnyire nem szokott szükség lenni.
[[Image:inst_image34.png|left|thumb|400px]] On the next dialog the password of default user (root) should be set. This user will be the main administrator of the entire database system. In most case the remote access is not necesary (security reason).
<br style="clear: both" />
<br style="clear: both" />


[[Image:inst_image11.png|left|thumb|400px]] A következő képernyőn az Execute gombra kattintva (később Finish-re változik, ezért nem látható a képen) a beállításokat elmenti a telepítő, elindítja a Windows szervízt, és elvégzi a további konfigurációkat. Amennyiben a fenti képet látjuk, a telepítés sikeres volt, a MySQL szerver használatra kész.
[[Image:inst_image11.png|left|thumb|400px]] Click on the Execute button (it will change to Finish) and the Wizard will finialize the configuration and startup the service. If the attached dialog appears then configuration was successful and MySQL server is ready to use.
<br style="clear: both" />
<br style="clear: both" />


===MySQL Workbench telepítése===
===Installation of MySQL Workbench===
Ahhoz, hogy a felügyeleti rendszer kapcsolódni tudjon az adatbázis-szerverhez, és módosításokat tudjon eszközölni rajta, szükségünk lesz egy adatbázis felhasználó létrehozására, ehhez a grafikus adminisztrációs felületet fogjuk használni.
A new user has to be defined so that SIWENOID could connect to the database and to be able to make insertions, queries in it. A graphic user interface can be used to do it.
Az alkalmazás MSI telepítője letölhető a fenti linkek egyikéről a MySQL.com oldalról. Ennek az alkalmazásnak előkövetelménye, hogy a számítógépre telepítve legyen a .NET Framework 4.0-s verziója, ez is megtalálható a fenti hivatkozások között. A telepítés során megadhatjuk a mappát, amelybe a programot telepíteni szeretnénk, az összetevőknél pedig válasszuk a Complete opciót, így minden szükséges komponens rendelkezésre fog állni. A telepítés végeztével a következő képernyőre jutunk:
MSI installer of MySQL Workbench can be downloaded from the following link: http://www.mysql.com/downloads/workbench/  .NET Framework 4.0 is a prerequisit of the installation of Workbench. Download link: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en . Installation folder can be defined during installation. Select Complete option to install each component of Workbench. After installation the following screen appears:


[[Image:inst_image30.png|left|thumb|400px]] Bizonyosodjunk meg róla, hogy a Launch MySQL Workbench now jelölőnégyzet be van pipálva. Ez nem szükséges feltétele a helyes működésnek, az alkalmazás a továbbiakban a Start menüből is elérhető.
[[Image:inst_image30.png|left|thumb|400px]] Be sure that Launch MySQL Workbench is marked to begin configuration. Application can be launched later in Start menu.
<br style="clear: both" />
<br style="clear: both" />


===Felhasználó létrehozása a MySQL Workbench segítségével===
===Create a new MySQL user (Workbench)===


[[Image:inst_image02.png|left|thumb|400px]] Az alkalmazás kezdőképernyőjén a középső részen 3 oszlop található, ezek közül a jobb oldalit, a Server Administration-t fogjuk használni. A listában szerepel a telepített MySQL szerver példány, erre kattintsunk duplán.
[[Image:inst_image02.png|left|thumb|400px]] Appliaction main window is devided into 3 columns. For create a new user the third column can be used. In the list double click on MySQL server instance.
<br style="clear: both" />
<br style="clear: both" />


[[Image:inst_image19.png|left|thumb|400px]]
[[Image:inst_image19.png|left|thumb|400px]] On this dialog type in the password of root user that was set during installation.
A felugró ablakban adjuk meg a root felhasználó jelszavát, melyet telepítéskor állítottunk be.
<br style="clear: both" />
<br style="clear: both" />


[[Image:inst_image38.png|left|thumb|400px]] A jelszó sikeres megadása után az adminisztrációs felületre jutunk. Új felhasználó felvételéhez előbb válasszuk a bal oldali listában a Users and Privileges (1) lehetőséget. A jobb oldalon megjelenő felület alján kattintsunk az Add Account (2) gombra, majd adjuk meg a felhasználó adatait (3). A Login Name mezőbe írjunk egy tetszőlegesen választott felhasználónevet (példánkban mgmt_user), a Password illetve Confirm Password mezőkben adjunk meg egy választott jelszót, a Limit Connectivity to Hosts Matching mezőben pedig hagyjuk meg az alapértelmezetten beállított % jelet. A paraméterek megadása után kattintsunk az ablak jobb alsó sarkában elhelyezkedő Apply (4) gombra.
[[Image:inst_image38.png|left|thumb|400px]] After successful connection the administration interface appears. In the left list select the Users and Privileges (1) option. Then click on Add Account (2) button, and set the parameters for the new user account (3). Type a name into the Login Name field (mgmt_user in this example), and then a password to the appropriate fields. Leave the default % mark in the Limit Connectivity to Host Matching field. Finally click on Apply button (4) in the right bottom of the dialog.
A User Accounts listában ellenőrizhetjük, hogy a felhasználó sikeresen létrejött. Ezzel készen is vagyunk az adatbázis szerver szükséges konfigurációjával, bezárhatjuk a MySQL Workbench alkalmazást.
In the User Account list a new user appear if it was successfully created. Now the configuration of database server is finished, MySQL Workbench can be closed.
<br style="clear: both" />
<br style="clear: both" />
''Previous chapter-> [[Prerequisits]] / Next chapter-> [[Installation under Windows]]''
[[Category:Installation]]

Latest revision as of 13:31, 2 December 2013

Language: English  • magyar

Previous chapter-> Prerequisits / Next chapter-> Installation under Windows

SIWENOID installer installes its own MySQL instance by default. This description recommended only if you want to install a separate one, or you prepare a database server PC with a MySQL instance. Otherwise use the installer: Manual installation

Installation of MySQL

Click on http://www.mysql.com/downloads/mysql/ link and be sure that you download the Microsoft Windows installer of MySQL. MSI installer is recommended for installation. 32bit version works on any Windows version, 64bit version works on 64bit Windows only, but it is not recommended on XP. Click on download button, and register if you wish to. It is not mandatory. If you click on “No thanks, just take me to the downloads!” link then the download mirrors appear to select. After download double-click on it to launch the installer. Accept the end user agreement and select the appropriate option:

During Typical installation the destination of application files is the default system partition\Program Files. The database file location is going to be selectable. Select Custom button to install MySQL in a different folder.

After selection click on "Install" button and installation are done in few seconds (require some Next).

After installation the following dialog appears:

Mark the Launch the MySQL Instance Configuration Wizard before clicking on Finish button.


Configuration of MySQL server

Launch server configuration. Click on Next button several to reach the following dialog:

On this dialog make sure that the Detailed Configuration is selected, and then click on Next button.


Next dialog concerns to the usage of resource that MySQL are using runtime.

In most case the Server Machine fits best the requirements. With this settings it will have medium memory usage. If more application (with higher memory usage) is running on a computer then select the Developer Machine option. Then MySQL will use less memory to let other processes to use the rest.


On the next dialog, the default setting (Multifunctional Database) fits the requirement of SIWENOID system.

On this dialog the location of database can be set. If Installation Path is left default then they will reside on the refered detination. Otherwise you can set any folder for destination.


The number of concurrent connections should be set to 50. It is recommended in case of SIWENOID. It has importance only in case of bigger systems. Choose Manual Setting option and type 50 to the input field.


Network setting should be left default except that the 3306 port is already occupied or any company firewall setting requires.


On next dialog choose the character set of database. This is imortant to be able to use appropriate special caharcters.

Choose the Manual Selected Default Character Set / Collation option, and use listbox to select utf8.

Don't change anything on this dialog. In this case MySQL will be registered among services and will be started automatically during startup of Windows.


On the next dialog the password of default user (root) should be set. This user will be the main administrator of the entire database system. In most case the remote access is not necesary (security reason).


Click on the Execute button (it will change to Finish) and the Wizard will finialize the configuration and startup the service. If the attached dialog appears then configuration was successful and MySQL server is ready to use.


Installation of MySQL Workbench

A new user has to be defined so that SIWENOID could connect to the database and to be able to make insertions, queries in it. A graphic user interface can be used to do it. MSI installer of MySQL Workbench can be downloaded from the following link: http://www.mysql.com/downloads/workbench/ .NET Framework 4.0 is a prerequisit of the installation of Workbench. Download link: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en . Installation folder can be defined during installation. Select Complete option to install each component of Workbench. After installation the following screen appears:

Be sure that Launch MySQL Workbench is marked to begin configuration. Application can be launched later in Start menu.


Create a new MySQL user (Workbench)

Appliaction main window is devided into 3 columns. For create a new user the third column can be used. In the list double click on MySQL server instance.


On this dialog type in the password of root user that was set during installation.


After successful connection the administration interface appears. In the left list select the Users and Privileges (1) option. Then click on Add Account (2) button, and set the parameters for the new user account (3). Type a name into the Login Name field (mgmt_user in this example), and then a password to the appropriate fields. Leave the default % mark in the Limit Connectivity to Host Matching field. Finally click on Apply button (4) in the right bottom of the dialog.

In the User Account list a new user appear if it was successfully created. Now the configuration of database server is finished, MySQL Workbench can be closed.

Previous chapter-> Prerequisits / Next chapter-> Installation under Windows