Displaying posts with tag: MySQL (reset)
Moving from MySQL 5.5 to 5.6. Step 4: Starting with MySQL 5.6.10

On previous post, I already wrote about how to create a database backup, how to unistall a MySQL version, ad how to install a new MySQL version, in this case, MySQL 5.6.10. If you are new to MySQL, you can think … “Well,  I have installed MySQL server, now .. what can I do?“. Starting …

Continue reading »

The post Moving from MySQL 5.5 to 5.6. Step 4: Starting with MySQL 5.6.10 appeared first on Manejando datos.

pt-variable-advisor: Revisión de las variables de MySQL automatizada

Al instalar una base de datos deberemos tener en consideración las variables de MySQL de acuerdo con el sistema en concreto y los datos. En el Percona Toolkit podemos encontrar la herramienta pt-variable-advisor que nos puede ayudar a ajustar las variables.

Si únicamente queremos usar dicha herramienta la podemos descargar mediante:

wget percona.com/get/pt-variable-advisor

Para usarla deberemos indicar el host y los datos de acceso:

# perl pt-variable-advisor localhost -p $(cat /var/mysql/.mysql.root.pass)
# WARN delay_key_write: MyISAM index blocks are never flushed until necessary.

# WARN innodb_log_file_size: The InnoDB log file size is set to its default value, which is not usable on production systems.

# NOTE log_warnings-2: Log_warnings must be set greater than 1 to log unusual events such as aborted connections.

# NOTE max_binlog_size: The …
[Lea más]
Moving from MySQL 5.5 to 5.6. Step 3: Install MySQL 5.6.10

In previous steps, I have explained how to create backups of your MySQL-MariaDb databases and how to unistall MySQL, including all configuration files (very important!!). Now, let’s install the new version of MySQL that you can download from here:dev.mysql.com/downloads/mysql/5.6.html. In my case, I downloaded the Microsoft MySQL Installer. I think this installer has been a …

Continue reading »

The post Moving from MySQL 5.5 to 5.6. Step 3: Install MySQL 5.6.10 appeared first on Manejando datos.

Moving from MySQL 5.5 to 5.6. Step 2. Uninstall MySQL 5.x

I already wrote about the less information I got from migrating from version 5.0, 5.1 or 5.5 to version 5.6 on Windows, so … I’ll write about the way I do it. Yesterday you could read about creating backups and export your databases. Firts of all, backup The first step of every migration should be …

Continue reading »

The post Moving from MySQL 5.5 to 5.6. Step 2. Uninstall MySQL 5.x appeared first on Manejando datos.

Moving from MySQL 5.5 to 5.6. Step 1: Backup

Today I start a serie of post dedicated to #MySQL database, one of the most used databases on Internet sites. Apart from this, I must say that I found less information than I imagine for moving from MySQL 5.0, 5.1 or 5.5 to versin 5.6 on Windows. So, I will tell you my way! First, …

Continue reading »

The post Moving from MySQL 5.5 to 5.6. Step 1: Backup appeared first on Manejando datos.

Utilice el índice incluso con un varchar | | caracteres

Original post: http://anothermysqldba.blogspot.com/2014/01/use-your-index-even-with-varchar-char.html

Hace poco me di cuenta de un post en el forums.mysql.com sitio: Cómo búsqueda rápida en 3 millones de registro? 
El ejemplo que utiliza un LIKE '% eed' 

Eso no será aprovechado de un índice y …

[Lea más]
Puede replicación MySQL ponerse al día

Original post: http://anothermysqldba.blogspot.com/2014/01/can-mysql-replication-catch-up.html

Así que la replicación se ha mejorado recientemente en MySQL 5.6. Sin embargo, la gente sigue utilizando 5.1 y 5.5 por lo que algunas de estas mejoras tendrán que esperar para golpear el mundo real.

Recientemente ayudé a paso en esta dirección con una solución de replicación de geo-localizada. Una parte del país tenía un servidor MySQL 5.1 y la otra parte del país tuvo un nuevo servidor MySQL 5.6 instalado.

Después de lidiar con los problemas de obtener la copia de seguridad inicial de los datos desde el primario al servidor secundario (tardó varias horas para decir lo menos), tuve que decidir podría replicación ponerse al día y mantener el ritmo. El servidor principal tenía …

[Lea más]
Instalación de MySQL 5.6 en CentOS 6 con upstart

Vamos a ver cómo instalar MySQL 5.6 desde código fuente en CentOS 6 y con upstart, deshabilitando storage engines que son poco usados

También están disponibles las instalaciones de MySQL 5.1 en CentOS 5 y de MySQL 5.5 en CentOS 5 y tambien MySQL 5.5 en CentOS 6.

Descargamos el código en /usr/local/src y descomprimimos:

mkdir -p /usr/local/src
cd /usr/local/src
wget wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.15.tar.gz
tar xzf mysql-5.6.15.tar.gz
cd mysql-5.6.15

A continuación podemos aplicar el …

[Lea más]
Configurar el número de conexiones SUPER extra de un MySQL

En el caso un MySQL llegue a max_connections, da el error “Too many connections” a todas las nuevas conexiones de usuario. Pero en el caso que se conecte un usuario con el privilegio SUPER, permite una conexión extra.

Dicha conexión extra puede quedar muy fácilmente ocupada por algún script que se conecta al MySQL con dicho privilegio o otro miembro del equipo de administradores. Por lo tanto, resulta útil que pueda ser configurable, por lo que he hecho un patch para ello.

En el código fuente de MySQL podemos ver que el código que necesitamos modificar es el siguiente:

(...)
  if (connection_count >= max_connections + 1 || …
[Lea más]
[Warning] TIMESTAMP with implicit DEFAULT value is deprecated

Al actualizar a MySQL 5.6 veremos que nos aparecerá el siguiente WARNING en el log de MySQL:

[Warning] TIMESTAMP with implicit DEFAULT value is deprecated

Tal y como podemos ver en la documentación de actualizar a MySQL 5.6, se modifica el comportamiento del tipo de datos TIMESTAMP. De momento se mantiene el comportamiento por defecto con el WARNING, pero en la siguiente versión va a desparecer dicho comportamiento. Para quitar el WARNING deberemos añadir la opción explicit_defaults_for_timestamp en el my.cnf.

Mediante dicha opción habilitaremos el nuevo comportamiento de TIMESTAMP

Tags: MySQL

[Lea más]