Posted by on Mar 2, 2012 in Blog, MySql | 0 comments

I have tried to install MySQL in Windows 7 64 bit operating system. But the installation hung at MySql Server Configuration and it was not able to create configuration file. I have tried the following.

  1. Uninstalled and reinstalled MySql
  2. Manually deleted the installation folder in C:Program FilesMySQLMySQL Server 5.5
  3. Temporarily disabled the firewall.
  4. Checked Event Viewer for error logs

Still it was not working. Finally I decided to check the configuration file available at C:Program FilesMySQLMySQL Server 5.5binmysql_config.pl. You have to open it with Notepad and with Administrator privileges so that you can edit and save them.

and found the following entry were wrongly created i.e., pointed to wrong directory (Highlighted entry)

my $ldata = ‘C:/Program Files/MySQL/MySQL Server 5.5/data’;

my $execdir = ‘C:Program Files (x86)MySQL/bin’;
my $bindir = ‘C:Program Files (x86)MySQL/bin’;

# ———————————————————————-
# If installed, search for the compiled in directory first (might be “lib64”)
# ———————————————————————-

my $pkglibdir = fix_path(‘‘C:Program Files (x86)MySQL/lib’,”libmysql/relwithdebinfo”,
“libmysql/release”,”libmysql/debug”,”lib/mysql”,”lib”);

 

and I changed them to point to C:/Program Files/MySQL/MySQL Server 5.5/ 

Voila., The magic happened and the configuration have been completed successfully.

 

 

Hope this helps some one in trouble.