Original post: http://anothermysqldba.blogspot.com/2014/10/rotating-mysql-slow-logs.html
同時與不同的客戶工作,我碰巧會遇到的非常大的慢日誌文件時有發生。 雖然他們如何應該旋轉的若干意見存在。 許多這些意見使用日誌旋轉和刷新日誌的命令,我不喜歡,雖然我刷新二進制日誌。 這就是為什麼我同意羅納德·布拉德福德的博客文章 ,從幾年前就如何做到這一點。
- …
Original post: http://anothermysqldba.blogspot.com/2014/10/rotating-mysql-slow-logs.html
同時與不同的客戶工作,我碰巧會遇到的非常大的慢日誌文件時有發生。 雖然他們如何應該旋轉的若干意見存在。 許多這些意見使用日誌旋轉和刷新日誌的命令,我不喜歡,雖然我刷新二進制日誌。 這就是為什麼我同意羅納德·布拉德福德的博客文章 ,從幾年前就如何做到這一點。
Original post: http://anothermysqldba.blogspot.com/2013/06/mysql-check-table.html
MySQL的檢查表的命令是非常有用的,誰想要做到以下幾點:
這個過程是很簡單的:
> show tables;
+-----------------+
| Tables_in_world |
+-----------------+
| City |
| Country |
| CountryLanguage |
+-----------------+
> check table City\G
*************************** 1. row
***************************
Table: world.City
Op: check
Msg_type: status
Msg_text: OK
…
Original post: http://anothermysqldba.blogspot.com/2013/05/mysql-users-grants-mysqlconfigeditor.html
安全對數據庫的訪問是任何數據庫管理員可能優先頭號。 如果不是,那麼你需要認真研究一下為什麼它是不是。
已經可以通過手動的一般準則:
前几天在试用mysql5.6.9主从功能的时候,发现在bin目录中多了一个mysql_config_editor,
试用了一下,感觉很不错,以后不用再重复输入mysql用户名密码了。
[modify@H209 bin]$ pwd /home/mysql569/bin [modify@H209 bin]$ ./mysql_config_editor set --login-path=local569 --host=127.0.0.1 --user=root --password Enter password: [modify@H209 bin]$ [modify@H209 bin]$ ./mysql_config_editor print --all [local569] user = root password = ***** host = 127.0.0.1 [modify@H209 bin]$ ./mysql --help | grep path --ssl-capath=name CA directory (check OpenSSL docs, implies --ssl). --ssl-crlpath=name Certificate revocation list path (implies --ssl). --login-path=# Read this path from the login file. ssl-capath (No default value) ssl-crlpath (No default value) [modify@H209 bin]$ [modify@H209 bin]$ ./mysql --login-path=local569 Welcome to the … |