Linux Sysadmin Blog

Linux Sysadmin Blog header image 4

Entries Tagged as 'MySQL'

Enabling and using the slow query log in MySQL

August 26th, 2008 · 2 Comments · MySQL, Performance

By special request here is a post about the MySQL slow query log. MySQL has a wonderful feature that lets you keep track of all queries that took longer than a certain time to complete. To enable it simply add the following line to your my.cnf file: log-slow-queries = [path to the log file] Secondly [...]

[Read more →]

Tags: ··

Changing the MySQL replication master host

July 24th, 2008 · 2 Comments · MySQL

Here’s a little post on how to change the master database host that the replication slave in a MySQL replication setup uses. This can happen if there is a change in network addresses or when you want to switch over to using different internal network. The main thing to keep in mind is that when [...]

[Read more →]

Tags: ·

MySQL error 1449 “There is no ‘username’@'host’ registered”

June 27th, 2008 · 1 Comment · MySQL

The error message in the title occurs in a combination of circumstances. If you have 2 MySQL databases, one master and one slave in a replicating setup and you use triggers you may encounter this error. Although it is not necessary for the slave database to have the same users as the master for replication [...]

[Read more →]

Tags: ··