在你的my.ini 文件中定义的参数 datadir 指定的目录中。
SQL code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | mysql> select @@datadir; ERROR 2006 (HY000): MySQL server has gone away No connection . Trying to reconnect... Connection id: 27 Current database : test + -----------------------------------------------+ | @@datadir | + -----------------------------------------------+ | C:\Program Files\MySQL\MySQL Server 5.1\DATA\ | + -----------------------------------------------+ 1 row in set (0.30 sec) mysql>
|
修改路径后 ,重启Mysql服务即可