mysql報錯ERROR 1044 ERROR 1064 (42000):

安裝監控軟件cacti時,發現mysql不能創建數據庫
mysql> create database cacti;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'cacti'
root 用戶的 create_priv 權限問題 重新給root設置密碼搞定
>source cacti.sql;時報大量這樣錯誤
ERROR 1146 (42S02): Table 'cacti.graph_templates_gprint' doesn't exist
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL 
server version for the right syntax to use near 'TYPE=MyISAM COMMENT='Stores the actual graph data.'' at line 49

是mysql5 不支持 TYPE=MyISAM  ,將cacti.sql裏面的TYPE全部換成ENGINE 即 ENGINE=MyISAM 。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章