mysql授权报错
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<zabbix>';
ERROR 1044 (42000): Access denied for user 'root'@'127.0.0.1' to database 'zabbix'
是因為mysql數據庫的user表里,存在用戶名為空的賬戶即匿名賬戶,導致登錄的時候是雖然用的是root,但實際是匿名登錄的,通過錯誤提示里的''@'localhost'可以看出來。
在my.ini的[mysqld]字段加入:?skip-grant-tables
?
重啟mysql服務,這時的mysql不需要密碼即可登錄數據庫 然后進入mysql?mysql>use mysql;
mysql>update user set password=password('新密碼') WHERE User='root';
mysql>flush privileges;
一:
-- MySQL 5.5.22
Warning: Bison executable not found in PATH
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/mysql-5.5.22
####出現此類報錯,yum -y install bison后,刪除rm CMakeCache.txt再編譯即可,
?
轉載于:https://www.cnblogs.com/qinyujie/p/7049563.html
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
- 上一篇: 八. 输入输出(IO)操作6.文件与目录
- 下一篇: ORACLE数据库查看执行计划