Home » MySQL

MySQL Installation Problem

20 August 2007 45 views No Comment Popularity: 1% Share/Bookmark

Problem: can’t create pid file: no such file or directory

I had this problem and had a very tough and frustrating time with it. While I was installing a fresh copy of MySQL 5 in Windows XP, I got this problem. (I was installing it from the installer i.e. setup file.) The server was not starting and ‘error 0′ was displayed. I tried to start the server from the command line by typing “mysqld-nt –console” and then got the error “can’t create pid file: no such file or directory”. It was also displaying the message like “cannot create/write file C:\Program Files\MySQL\MySQL Server 5.0\data\com2.pid”.

Solution:

The main problem was my computer name. My computer name was ‘com2′. MySQL makes the file with the computer name in the directory of it’s data (in my case C:\Program Files\MySQL\MySQL Server 5.0\data\) . Now, it was unable to create a file named com2 (which was my computer name) because in WINDOWS you cannot make file/folder with the name com1,com2,com3… and so on.

Hence, I changed my computer name, restarted my computer and then reconfigured MySQL. All well done and MySQL started running.

Cheers,

Mukesh

From Mukesh Chapagain's Blog | Post MySQL Installation Problem

Related posts:

  1. Backup and Recovery of MySQL database
  2. Configuration error on new Magento installation
  3. MySQL Server doesn’t start
  4. Magento: Upgrading mysql setup of a module
  5. Wordpress MU: Admin login problem

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.