June 19, 2013

Post: Implementing SchemaSpy in your MySQL environment

…’s also designed to help resolve the obtuse errors that …I find it convenient to set it up on crontab …: description=MySQL driver=com.mysql.jdbc.Driver connectionSpec=jdbc:mysql://127….name=”parent” comments=”Parent table”>
name=”parent_id” primaryKey=”true”>

name

Post: Ultimate MySQL variable and status reference list

MySQLset_connectionblogpercona.commanual character_set_databaseblogpercona.commanual character_set_filesystemblogpercona.commanual character_set_resultsblogpercona.commanual character_set_serverblogpercona.commanual character_set_systemblogpercona.commanual character_sets…skip_name_resolveblogpercona…

Post: Is DNS the Achilles heel in your MySQL installation?

Do you have skip_name_resolve set in your /etc/my.cnf? If not, consider it. DNS … need to set skip_name_resolve in your my.cnf file and restart MySQL. But before you do that, run the following command: mysql> SELECT user, host FROM mysql

Post: How Percona does a MySQL Performance Audit

… than what’s included. For example, the absence of skip-name-resolve is easy to miss, as is the absence of innodb…_disk_tmp_tables, I’ll paste in mysql> show global variables like ‘%table_size%’; +———————+———–+ | Variable_name | Value | +———————+———–+ | max_heap_table_size | 268435456… the mysql.* tables, running mk-duplicate-key-checker to find redundant indexes, and so on. As with settings and status, these set the…

Post: Shard-Query EC2 images available

… from 1988 to 2010′; mysql> use ontime1; Database changed mysql> show table status like ‘ontime_fact’G *************************** 1. row *************************** Name: ontime_fact Engine…=512K read-rnd-buffer-size=1M skip-host-cache skip-name-resolve sort-buffer-size=512K sql-mode=STRICT_TRANS_TABLES symbolic…=64M transaction-isolation=READ-COMMITTED user=mysql wait-timeout=86400 To be continued You can now set up a cluster from 1…

Post: Percona Server on the Raspberry Pi: Your own MySQL Database Server for Under $80

…assigned, usually together with a host name. While there, you could also …resolving dependencies… looking for inter-conflicts… Targets (4): libaio-0.3.109-6 libmysqlclient-5.5.30-1 mysqlMySQL system tables… OK Filling help tables… OK [...more setup information, please read...] [Optional] Set

Post: MySQL 5.5.8 and Percona Server: being adaptive

… scalability issue. Let’s see how MySQL performance changes for the last workload if we set innodb_buffer_pool_instances=8 or…: [client] socket=/var/lib/mysql/mysql.sock [mysqld] core basedir=/usr/local/mysql user=root socket=/var/lib/mysql/mysql.sock skip-grant-tables server…=500 max_connections=3000 query_cache_size=0 skip-name-resolve table_cache=10000 [mysql] socket=/tmp/mysql.sock (post edited by Fred Linhoss)

Post: Sharing an auto_increment value across multiple MySQL tables

… insert does two operations to get the value: UPDATE option2 SET id=@id:=id+1; SELECT @id; So which is better… availability zone. Ping times are ~0.5ms between nodes. –skip-name resolve is enabled on the server. There is some skew from…

Post: Percona XtraDB Cluster reference architecture with HaProxy

…] – ‘(null)’ resolves to ’0.0.0.0′; 120619 13:21:19 [Note] – ‘(null)’ resolves to ‘::’; …mysql> show global status like ‘wsrep_cluster_size’; +——————–+——-+ | Variable_name | Value | +——————–+——-+ | wsrep_cluster_size | 3 | +——————–+——-+ 1 row in set

Post: Test Drive of Solid

mysql> begin; mysql> update test2 set names=’mysql‘ where id=1; Session 2: mysql> begin; mysql> update test2 set names=’Solid’ where id=2; Session 1: mysql> update test2 set names…be resolved in further versions. Test 5: UPDATE / SELECT FOR UPDATE in OPTIMISTIC mode Solid optimistic: Session1: mysql>…