I would like to change the database files location of MySQL administrator to another drive of my computer. (I run Windows XP SP2 and MySQL Administrator 1.2.8.)
--Under the startup variable --> General Parameters --> I changed Data directory:
from C:/Program Files/MySQL/MySQL Server 5.0/data
to D:/.....
, but after I stopped the service and restarted it, the following error appeared:
Could not re-connect to the MySQL Server.
Server could not be started.
Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
Has anyone else had this problem?
The default data directory location is C:\Program Files\MySQL\MySQL Server 8.0\data , or C:\ProgramData\Mysql on Windows 7 and Windows Server 2008. The C:\ProgramData directory is hidden by default. You need to change your folder options to see the directory and contents.
Normally it works like this:
[mysqld]
and [mysqld_safe]
datadir
variable in the MySQL configurationbasedir
variable in the same section.If that doesn't work I have no idea. On linux you can try to move the socket to a new location too, but that shouldn't affect windows. Alternatively you can use a symbolic link on *nix what most people do I guess.
In Windows
C:\Program Files\MySQL\MySQL Server 5.4\
and locate the my.ini
fileC:\Documents and Settings\All Users\Application Data\MySQL\MySQL Server 5.4\data\
and copy and paste the mysql folder into your new location.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With