最近在使用mysql5.5版本的時(shí)候,發(fā)現(xiàn)在后臺(tái)管理頁(yè)面上,數(shù)據(jù)庫(kù)的圖標(biāo)不見(jiàn)了,很難操作。經(jīng)過(guò)一番探索和研究,終于找到了解決方法。
首先,我們需要進(jìn)入mysql的安裝目錄,找到data文件夾下的mysql文件夾。在該文件夾下面,我們可以找到一個(gè)名為“my.ini”的配置文件,我們需要修改這個(gè)文件。
# For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.5/en/server-configuration-defaults.html [mysqld] # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. # innodb_buffer_pool_size = 128M # Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # log_bin # These are commonly set, remove the # and set as required. # basedir = ..... # datadir = ..... # port = ..... # server_id = ..... # socket = ..... # pid-file = ..... # character-set-server = ..... # collation-server = ..... # *** Important: Add skip-innodb to the [mysqld] section *** skip-innodb [client] port = 3306 socket = /tmp/mysql.sock
注意到上面的# *** Important: Add skip-innodb to the [mysqld] section ***,我們需要在mysqld下添加skip-grant-tables,代碼如下:
[mysqld] skip-grant-tables
保存更改后,我們需要重啟mysql服務(wù),使其生效。在windows系統(tǒng)中,可以通過(guò)服務(wù)來(lái)重啟mysql服務(wù),而在linux中可以通過(guò)調(diào)用以下命令來(lái)重啟mysql服務(wù):
service mysqld start
重啟完畢后,我們可以重新進(jìn)入mysql后臺(tái)管理頁(yè)面,此時(shí)我們會(huì)發(fā)現(xiàn)數(shù)據(jù)庫(kù)的圖標(biāo)又重新出現(xiàn)了,我們可以進(jìn)行正常的管理操作。
總之,在使用mysql5.5版本時(shí)遇到數(shù)據(jù)庫(kù)圖標(biāo)不見(jiàn)的情況,我們可以通過(guò)修改配置文件來(lái)解決,使數(shù)據(jù)庫(kù)的管理更加方便。