<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[实践OK]Centos下_MysqL5.7在使用mysqldump命令备份数据库报错：mysqldump: [Warning] Using a password on the command line interface can be insecure.]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[数据库技术]]></category>
<pubDate>Fri, 07 Dec 2018 16:07:11 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	Centos下_MysqL5.7(Server version: 5.7.12-log)在使用mysqldump命令备份数据库报错：mysqldump: [Warning] Using a password on the command line interface can be insecure.<br/>mysql -u zabbix -p&#039;q1w2***4&#039; -P 3306 -h 127.0.0.1 -e &quot;show status like &#039;Threads_cached&#039;;&quot;&#124;grep -v Value &#124;awk &#039;&#123;print $2&#125;&#039;<br/>mysql: [Warning] Using a password on the command line interface can be insecure.<br/>3<br/><br/>===========================================================================<br/>一）Server version: 5.7.12-log Source distribution下用 2&gt;/dev/null并不行：<br/>mysql -u zabbix -*****&#039; -P 3306 -h 127.0.0.1 -e &quot;show s<br/>tatus like &#039;Threads_cached&#039;;&quot;&#124;grep -v Value &#124;awk &#039;&#123;print $2&#125;&#039; 2&gt;/dev/null<br/>mysql: [Warning] Using a password on the command line interface can be insecure.<br/>二）export MYSQL_PWD=666666 也不行。<br/><br/>最后，用如下可行方案，如下：<br/><textarea name="code" class="php" rows="15" cols="100">
cat /tmp/my.cnf 
[client]
port = 3306
socket = /tmp/mysql.sock
default-character-set = utf8mb4
host = localhost
user = zabbix
password = &#039;q1w2***4&#039;
</textarea><br/><br/>实践成功如下：<br/>mysql&nbsp;&nbsp;--defaults-extra-file=/tmp/my.cnf -e &quot;show status like &#039;Threads_cached&#039;;&quot;&#124;grep -v Value &#124;awk &#039;&#123;print $2&#125;&#039;<br/>3<br/><br/>===========================================================================<br/>以下是文章实践来源：https://www.bbsmax.com/A/nAJvbYRxJr/<br/>然后针对高版本Mysql备份数据库的解决方案来了，前方高能~~~<br/><br/>命令和以前常用的快速导入和导入命令有所不同了，需要加载我们配置的MYSQL配置文件!<br/><br/>/usr/local/mysql/bin/mysqldump --defaults-extra-file=/etc/my.cnf database &gt; /data/mysql_bak/bak_test.sql&nbsp;&nbsp;&nbsp;&nbsp;//备份导出数据库<br/>/usr/local/mysql/bin/mysql --defaults-extra-file=/etc/my.cnf database &lt; test_db.sql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//导入数据库<br/>查看/data/mysql_bak下，发现想要的数据库备份文件出现了~<br/><br/>里在提到官方Url://dev.mysql.com/doc/refman/5.6/en/password-security-user.html?spm=5176.7737807.2.3.D6p7hh
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]Centos下_MysqL5.7在使用mysqldump命令备份数据库报错：mysqldump: [Warning] Using a password on the command line interface can be insecure.]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>