??? 最近由于做一個(gè)小型的項(xiàng)目,用到了Mysql,遇到了一些問題,到網(wǎng)上google了一下,找到了一些解決的方法,希望對(duì)您有些幫助,呵呵。?
1.?????? 在安裝Mysql之后,在service里面沒有出現(xiàn)mysql的服務(wù)
??????? C:\mysql\bin\mysqld –install
??????? C:\mysql\bin\mysqld-nt –standalone
(不想把
mysql
作為一個(gè)服務(wù)啟動(dòng))
2.??????
當(dāng)把
mysql
安裝到
c
盤意外的地方的時(shí)候,啟動(dòng)
mysql
會(huì)報(bào)錯(cuò):
1067
解決方案:
you seemed have your mysql installed in windows. so this problem may becaused if you're not installing mysql in c:\mysql.
you can simply copy all files to c:\mysql? ?or
create a file call my.ini(store it in %windows%) OR my.cnf (store it in c:\) and the followingcontent should be in the file
assume you have mysql ind:\mysql
[mysqld]
#set basedir to the installationpath
basedir=d:/mysql
datadir=d:/mysql/data
note that the forward slashes (/) are being used.