The data you are looking should not, by default, be located in "C:\Documents and Settings\Default User". That is the location of the default user profile, which is the template for new user profiles. Its only function is to be copied to a new folder for use as a user profile when a user logs onto the computer for the first time.
If the service is following Microsoft's guidelines, it will be storing data in
the application data folder (%APPDATA%) or the local application data folder (%LOCALAPPDATA% on Windows Vista and later). It should not use the My Documents or Documents folders, but you might want to check there as well.
On a typical installation of Windows XP or Windows Server 2003, check the following locations for application data for programs running as Local System (NT AUTHORITY\SYSTEM):
- C:\Windows\system32\config\systemprofile\Application Data\Vendor\Program
- C:\Windows\system32\config\systemprofile\Local Settings\Application Data\Vendor\Program
- C:\Windows\system32\config\systemprofile\My Documents
On a typical installation of Windows Vista and later versions, check the following locations for application data for programs running as Local System (NT AUTHORITY\SYSTEM):
- C:\Windows\system32\config\systemprofile\AppData\Roaming\Vendor\Program
- C:\Windows\system32\config\systemprofile\AppData\Local\Vendor\Program
- C:\Windows\system32\config\systemprofile\AppData\LocalLow\Vendor\Program
- C:\Windows\system32\config\systemprofile\Documents
Of course, substitute the appropriate vendor name and program name for Vendor and Program.
[Edit - for bricelam]
For 32 bit processes running on 64 bit windows, it would be in SysWOW64.
- C:\Windows\SysWOW64\config\systemprofile\AppData
This thread has several solutions to the problem that you mentioned. It may be the file path or incorrectly located my.ini. Please go through the suggested solutions to see which one fits your need. This suggestion seems most hopeful.
Try
mysqld --remove MySql
Then
mysqld --install <service name> --defaults-file={full path of "my.ini" file}
Best Answer
The most important thing is giving security permissions to normal user on MySQL Data folder.
Here is another simple way to solve the problem.
MySQL_Admins
Mysql_user
MySQL_Admins
group.Add following security permissions to
MySQL_Admins
on MySQL Data folder (you can find it inmy.ini
file)Windows XP
datadir="C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.1/data"
Windows Server 2008
datadir="C:/ProgramData/MySQL/MySQL Server 5.1/data"
a. Read & execute
b. List folder contents
c. Read
d. Write
Chage Log On as properties for MySQL Service to
Mysql_user.
MySQL Service > Properties > Log On > This account > Select
Mysql_user
Start MySQL Service