關(guān)閉MySQL日志
關(guān)閉日志以前首先先要?jiǎng)h除日志。宇塵網(wǎng)絡(luò)幫助中心域名知識|虛擬主機(jī)知識|VPS主機(jī)知識|服務(wù)器知識|網(wǎng)站建設(shè)知識|網(wǎng)絡(luò)推廣
執(zhí)行:
/usr/local/mysql/bin/mysql -u root –p
(一定要按照這個(gè)執(zhí)行,否則容易出unknown terminal type master)
輸入密碼登陸以后執(zhí)行:
reset master;
(;不能省略)
然后輸入 \q 退出mysql命令模式。
禁用MySQL日志需要修改/etc/my.cnf文件。仿牌空間、香港月付空間、韓國月付空間、日本月付空間、荷蘭VPS、香港VPS
vi 或是vim編輯,找到
log-bin=mysql-bin
binlog_format=mixed
在這兩行前面加#
再執(zhí)行
/etc/init.d/mysql restart
即可
如果提示 美國月付空間、月付美國空間、美國VPS、美國服務(wù)器租用
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
則需要繼續(xù)打開mysql命令
執(zhí)行:
/usr/local/mysql/bin/mysql -u root –p
然后執(zhí)行下面語句
set password for 'root'@'localhost' =password('');
flush privileges;
然后再執(zhí)行
/etc/init.d/mysql restart
即可
更多技術(shù)知識,更多網(wǎng)絡(luò)服務(wù),盡在宇塵網(wǎng)絡(luò)。我們的成長,離不開你們的支持,宇塵網(wǎng)絡(luò),歡迎您的訪問。