To find duplicates in a MySQL database table, you can run a query like the following: select column_name, count(*) as count from...
Sometimes when you fall behind in moderating your WordPress site you end up with a lot of comments from spammers, bots, etc....
For example, if you have some similar records that you want to calculate in your MySQL database, you can run a SQL...
sql> SHOW SGA; or sql> SELECT name,value/1024/1024 “SGA (MB)” “FROM v$sga; You can display the total SGA size by using the SQL...
Deleting a record from your MySQL database is pretty easy, but it’s always good to confirm the delete before doing so. For...
1) Login to mysql server, type the following command at shell prompt: # /etc/init.d/mysql stop 2) Start mysqld_safe using the command below:...
If you’re looking to find a particular column name on your MySQL server, you can use a query like the following: select...
The following script can be used to create a mysqldump by schema name: #!/bin/bash TODAY=$(date +%m”-“%d”-“%Y) HOSTNAME=$(hostname -s) for db in $(echo...
1. Install MySQL (mysql-server) on the master and slave servers if it’s not already installed. You can do so using ‘yum install...