我試圖通過phpmyadmin導入函數從sql文件恢復數據庫。試圖導入數據庫中,我得到這個錯誤:如何在mysql中設置inno db 5.5.8
#1064 - 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=InnoDB' at line 15
試圖要在my.ini的四周,做了一些編輯:
# Uncomment the following if you are using InnoDB tables
innodb_data_home_dir = C:\wamp\bin\mysql\mysql5.5.8\data/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = C:\wamp\bin\mysql\mysql5.5.8\data/
innodb_log_arch_dir = C:\wamp\bin\mysql\mysql5.5.8\data/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50
但我得到這個錯誤:
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)
嘗試在mysql控制檯中運行show引擎,並發現對innodb的支持設置爲默認值。 我沒有單獨安裝mysql,通過wampserver安裝它。主目錄和組目錄的缺省值是c:\ mysql \ data,但該目錄不存在。所以我所做的是:
C:\wamp\bin\mysql\mysql5.5.8\data
我不完全確定我是否做正確的事情。我如何正確地做到這一點?請幫忙。謝謝!
也編輯後重新啓動所有服務 – 2011-05-02 11:28:58