找到自己的mysql數(shù)據(jù)庫的安裝位置,如下 C:/Program Files/MySQL/MySQL Server 5.1,在它里面有個的my.ini文件,尋找如下行: [mysqld]
復(fù)制代碼 代碼如下:
# The TCP/IP Port the MySQL Server will listen on port=3306 #Path to installation directory. All paths are usually resolved relative to this. basedir="C:/Program Files/MySQL/MySQL Server 5.1/" #Path to the database root datadir="C:/ProgramData/MySQL/MySQL Server 5.1/Data/" # The default character set that will be used when a new schema or table is