Jump to content

Installing MySQL


Loran

Recommended Posts

Hi,

Have installed apache 2.2.4 and php 5.2.1 and am trying to install mysql..have tried many times but it never works..so i've uninstalled it..and was hoping someone would have the time and patience to walk me through it..

Thanks

Link to comment
Share on other sites

What OS are you running? If its Windows just download the installer ((Windows ZIP/Setup.EXE (x86))) from mysql.com and run through it.

 

Once installed you will have to configure PHP to use the mysql extension in order for you to use MySQL with PHP. PHP5 does not come with mysql support built in like PHP4. In order to enable the MySQL extension please read this FAQ

 

If you are having any problems during the installation of mysql just post here and I'll try to solve the problem you are having.

Link to comment
Share on other sites

Yeah, i was running windows, forgot to mention it  :-\

ok i've changed the php.ini file..i already had php/ext line enabled..(is it a problem if it is already enabled?) and removed the semicolon from the mysql.dll, I downloaded mysql from the link you provided..and started to install it..then at the end it said if i wanted to configure now, so i said yes.

everyone went good, and its the first time i remember it asking for a root password instead of having to enter a previous one :S.

I hit execute at the end..but It couldn't start the service..mysql.error: 0.

Is there something extra i have to do to start the service?

Thanks for everything so far,

Link to comment
Share on other sites

If it cant start the service then there is most probably an existing service already setup with the same name as the one the installer is trying to start. Or there is something running on port 3306 (default mysql port) and service cannot start because of this.

 

What I'd do is change the service, on the screen where you enter the root password there is an option for setting up a service and then a pull downmenu for service choose a different service name instead.

 

When you uninstalled MySQL last time the uninstaller probably didn't remove the service.

Link to comment
Share on other sites

Well its actually on the screen before that..except its all blanked out..like the tick for run as windows service is already clicked and is..frozen? well i can't toggle it on and off..and so the dropdown menu for service name is the same..do i have to reinstall?

ive looked at other tutorials that say i have to type things in a dos window..tried it a while ago but didn't work..do i have to do something like this? or should the installer do it all..

edit: just removed the config thing..then did it again..and changed service name to mysql5..but the same thing happened..as you said above.."Or there is something running on port 3306.." how do i check this? and does it matter if I use a different port?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.