Here are the tips I learned while setting up MySQL
Reference
FullText
To index 3 charater words add the following to the /etc/my.cnf file at the end of the [mysqld] section.
ft_min_word_len=3[myisamchk]ft_min_word_len=3
Then restart the mysql service, and run the following sql.
mysql> repair table mw_searchindex quick;
Install and Configure
Change Root Password
mysqladmin -u root password NEWPASSWORD mysqladmin -u root -p oldpassword newpass
Create Database
The following are the instructions on creating database using mysql client
$ mysql -u adminusername -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 5340 to server version: 3.23.54Type 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> CREATE DATABASE databasename;Query OK, 1 row affected (0.00 sec)mysql> GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"hostname"-> IDENTIFIED BY "password";Query OK, 0 rows affected (0.00 sec)mysql> FLUSH PRIVILEGES;Query OK, 0 rows affected (0.01 sec)mysql> EXITBye$
phpMyAdmin
Change Users Password
mysql -u adminusername -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 5340 to server version: 3.23.54Type 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';mysql> FLUSH PRIVILEGES;
Backup and Restore
Setup mySQL backup scripts
Scripts based on work found here
#!/bin/shphp /opt/scripts/backup_dbs.php
To restore a database type