Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590

Installing MySQL as a service


Downloading MySQL for Windows


You can find the binary of MySQL at:
http://www.mysql.com/downloads/mysql-3.23.html
[direct link]. The file is 12.1 MB, and is distributed as a single zipped file.

Installing MySQL


I love installing MySQL because of its straightforwardness. It's a nice break
from all this configuration file mumbo jumbo that we've been working with.
All you need to do is unzip the mysql-3.23.51-win.zip file to a folder
(C:Temporary for all I care) and then execute the setup.exe
program. I'd guess that the hardest part of the entire installation is deciding
where you want to install to. I picked H:mysql, but you
can choose whatever you want.

[Linked Image]

Configuring MySQL


Editing your my.ini


Create a new file in Notepad and copy these three lines into it.
Code
[mysqld]
basedir = H:/mysql/
datadir = H:/mysql/data/

Change the basedir and datadir to suit your actual
installation, using mine as a model. Then, save the file as my.ini
and place it in your C:WINNT directory, so that the full path of
the file is C:WINNTmy.ini. You can close the file now.

Running as a service


Start up the Command Prompt and wait until you see C:>.
Switch to the drive you installed MySQL to by typing h: and then
Enter. To switch to MySQL's bin directory, type cd
mysqlbin
and hit Enter. To install MySQL as a service
under Windows 2000/XP, type mysqld-nt -install and hit Enter.

You should see a screen similar to the one below, with a message letting you
know that the service was successfully installed.

[Linked Image]

At this point, you can restart your computer. You could forge ahead
without restarting by typing net start mysql and then pressing
Enter. What you'll see is a message confirming that the MySQL
service was started successfully. It looks strikingly and amazingly similar
to the one below.

[Linked Image]

Messing with the settings


To change the default MySQL password, enter the mysqladmin -u root password
"myNewPass1488"
command from the H:mysqlbin directory.
Change myNewPass1488 to a real password of your choosing.
To make sure that the change went through, type mysqladmin -u root reload
and hit Enter. What you want is a message telling you that access
was denied.

[Linked Image]

Let's just play with one more thing before calling it a night (which has no
doubt turned back into day by now). Type mysqladmin -u root -p status
and press Enter, and then type in your password when prompted.
You'll see some basic information about the currently-running service.

[Linked Image]

To shut down MySQL, type mysqladmin -u root -p shutdown and hit
Enter. Enter your password, press Enter again, and
then close the Command Prompt window. And that's that for MySQL!

Page 5: Final comments and instructions

Sponsored Links
Entire Thread
Subject Posted By Posted
Tutorial: Setting up your own Web server The Team 03/05/2002 1:08 AM
Re: Tutorial: Setting up your own Web server The Team 07/10/2002 5:46 PM
Re: Tutorial: Setting up your own Web server The Team 07/10/2002 5:48 PM
Re: Tutorial: Setting up your own Web server The Team 07/10/2002 6:16 PM
Re: Tutorial: Setting up your own Web server The Team 07/10/2002 6:20 PM
Re: Tutorial: Setting up your own Web server The Team 07/10/2002 6:21 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)