After multi-party conjugate, the solution is found as follows the My.ini file in the system directory, edit the content (if there is no file, create a new one), at least BASEDIR, DATADIR, two basic configurations. [mysqld] # set basedir to installation path, eg, c: / mysql # set to mysql installation directory based, Basedir = D: / www / webserver / mysql # set datadir to location of data directory, # EG, C: / MySQL / Data or D: / MyData / Data # Set to MySQL Data Directory DATADIR = D: / WWW / WebServer / MySQL / DATA In addition, you want an idea [WinMysqladmin] Server = D: / www / webserver / mysql / bin / mysqld-nt .exeuser = rootpassword = xxxxxxxx # or above is the configuration of setting Winmysqladmin [client] user = rootpassword = xxxxxxxx