instalacion
Para instalar MySQL Server en Windows iniciaremos el instalador que acabamos de descargar. Debemos confirmar cuando el control de cuentas de usuario nos pregunte si permitimos la instalación. Después de unas breves tareas previas el instalador de MySQL Server mostrará la pantalla inicial, en la que se nos pide elegir el tipo de instalación:
Se nos ofrecen 5 posibilidades distintas:
- Developer Default: Muy específica y orientada a desarrolladores.
- Server only: Instala únicamente MySQL Server.
- Client only: Instala los clientes de consola y gráfico, pero también componentes de desarrollo.
- Full: Instala todo lo que trae el paquete.
- Custom: Permite elegir qué queremos instalar.
Si no te quieres complicar la vida, las opciones Developer y Full son seguras. En mi caso, no quiero componentes de desarrollo que no voy a usar, así como plugins, documentación, ejemplos, etc. Por ello elegiré la opción Custom.
Esta opción Custom nos permite elegir cuidadosamente qué instalar:
En mi caso he añadido las siguientes opciones:
- El servidor MySQL Server
- La utilidad gráfica MySQL Workbench
- El cliente de consola MySQL Shell
Y todo lo demás no lo necesito, es disco duro desperdiciado. En cualquier caso es buena idea repasar uno a uno todos los items opcionales para ver qué nos ofrecen, e ir decidiendo si incluirlos o no. Cuando tengamos seleccionado todo lo que nos interesa, continuaremos.
A continuación, el instalador de MySQL comprueba ciertos requerimientos de software del sistema, ofreciéndonos la posibilidad de realizar la descarga e instalación de lo que falte automáticamente.
La lista dependerá de cada sistema y de si anteriormente se han instalado o no estos productos. Probaremos suerte y seleccionaremos «Execute«, con lo que el instalador comienza a descargar directamente estas dependencias de software.
Una vez descargado cada producto, automáticamente se lanza su propio instalador.
Tras la instalación de los requerimientos se vuelve a la pantalla del instalador y ya podemos continuar.
Antes de empezar con la copia de archivos el instalador mostrará una pantalla de estado con la lista de productos de MySQL (los que habíamos seleccionado previamente) que se van a instalar.
Debemos pinchar en «Execute» para iniciar por fin el proceso.
En esa misma pantalla veremos el progreso de la instalación de cada uno de los componentes seleccionados. Pinchando en «Show Details» se mostrará lo que está haciendo exactamente el instalador en cada momento.
Una vez terminado todo este proceso podremos avanzar hasta la fase de configuración. En este caso, tal y como nos informará el instalador, el único producto que se configurará es MySQL Server, ya que los clientes no necesitan una configuración como tal.
En la pantalla «Type and Networking» se nos ofrecerán una serie de configuraciones según el tipo de servidor:
Son tres opciones:
- Development Computer: Para una máquina en la que pueden correr diversos tipos de aplicaciones, según el momento. MySQL consumirá los recursos mínimos.
- Server Computer: Para una máquina configurada como servidor en la que también se ofrecen más servicios aparte del de base de datos (servidor web, correo, etc.). MySQL consumirá más recursos que en la configuración anterior.
- Dedicated Computer: Se entiende que la máquina está dedicada a MySQL Server, por lo que se reservarán todos los recursos disponibles.
Aquí tendrás que decidir qué uso le vas a dar. En mi caso elijo «Development Computer» porque voy a usar esta instalación como soporte de desarrollo web.
Las opciones de red son las habituales, aunque puedes decidir si abrir o no el firewall para admitir conexiones remotas.
En «Authentication Method» puedes elegir entre el método recomendado (que es más seguro), o el método antiguo compatible con MySQL 5.x.
En el caso de combinar este servidor MySQL con productos y servicios de terceros, accesos desde PHP, etc. entonces el método recomendado es el antiguo, compatible con MySQL 5.x, ya que muchos clientes, conectores, extensiones, etc. no contemplan el plugin de autenticación caching_sha2_password.
La sección «Account and Roles» es donde estableceremos la contraseña del usuario root y podremos crear más usuarios, si sabemos de antemano que los vamos a necesitar. Si no, ya los iremos creando cuando lo requiera la ocasión.
En «Windows Service» dejaremos configurado MySQL como servicio, ya que es lo más cómodo. Según la frecuencia de uso que vayas a darle al servidor puedes dejar marcado o no la casilla de la opción de inicio del servicio en cada arranque de Windows. Si lo vas a usar esporádicamente, puedes arrancar el servicio de forma manual desde la consola de servicios de Windows (más adelante te explico cómo usar esta consola).
En cuanto a la cuenta de usuario que ejecutará el servicio, lo normal es dejarla como cuenta estándar del sistema.
installation
To install MySQL Server on Windows we will start the installer that we just downloaded. We must confirm when the user account control asks us if we allow the installation. After a few preliminary tasks the MySQL Server installer will show the initial screen, in which we are asked to choose the type of installation:
How to install MySQL on Windows
The different types of MySQL installation on Windows
We are offered 5 different possibilities:
Developer Default: Very specific and developer oriented.
Server only: Install only MySQL Server.
Client only: Installs console and graphic clients, but also development components.
Full: Install everything the package brings.
Custom: Choose what we want to install.
If you don't want to complicate your life, the Developer and Full options are safe. In my case, I don't want development components that I'm not going to use, as well as plugins, documentation, examples, etc. That is why I will choose the Custom option.
This Custom option allows us to carefully choose what to install:
Install MySQL on Windows
MySQL components selected in the custom installation
In my case I have added the following options:
MySQL Server
The MySQL Workbench graphic utility
The MySQL Shell console client
And I don't need everything else, it's wasted hard drive. In any case, it is a good idea to review all the optional items one by one to see what they offer us, and decide whether or not to include them. When we have selected everything that interests us, we will continue.
Next, the MySQL installer checks certain system software requirements, offering us the possibility to download and install what is missing automatically.
install mysql windows requirements
List of products required by the MySQL installer for Windows
The list will depend on each system and whether or not these products have been previously installed. We will try our luck and select «Execute«, so the installer starts downloading these software dependencies directly.
Once each product has been downloaded, its own installer is automatically launched.
mysql requirements installer
Microsoft Visual C ++ 2015 installer, needed by MySQL
After the installation of the requirements, we return to the installer screen and we can continue.
mysql installer requirements on windows
System requirements solved, installation can continue
Before starting with the file copy, the installer will display a status screen with the list of MySQL products (the ones we had previously selected) to be installed.
mysql product list to install
List of MySQL products to be installed
We must click on "Execute" to finally start the process.
On that same screen we will see the progress of the installation of each of the selected components. Clicking on "Show Details" will show exactly what the installer is doing at all times.
mysql installation progress
Progress of the installation of the selected MySQL components
Once this process is complete we can move on to the configuration phase. In this case, as the installer will inform us, the only product that will be configured is MySQL Server, since clients do not need a configuration as such.
how to configure mysql server
List of MySQL components to be configured
As we continue, we enter the first section of the configuration, entitled "High Availability". We will have to choose between the classic stand-alone server installation (or replication group member), or a cluster of tests. The usual thing is to choose the first option.
Replication Group Type Selection
In the «Type and Networking» screen we will be offered a series of configurations according to the type of server:
mysql server type
MySQL Server server type and network options
There are three options:
Development Computer: For a machine that can run various types of applications, depending on the moment. MySQL will consume the minimum resources.
Server Computer: For a machine configured as a server where more services are also offered apart from the database (web server, mail, etc.). MySQL will consume more resources than in the previous configuration.
Dedicated Computer: It is understood that the machine is dedicated to MySQL Server, so all available resources will be reserved.
Here you will have to decide what use you will give it. In my case I choose «Development Computer» because I am going to use this installation as a web development support.
The network options are the usual ones, although you can decide whether or not to open the firewall to support remote connections.
In «Authentication Method» you can choose between the recommended method (which is safer), or the old method compatible with MyS
VIDEOTUTORIAL.
No hay comentarios.:
Publicar un comentario