Installing MySQL Server on Windows

Download

The first step is to download the MySQL Server "Windows Essentials" binaries from the MySQL website at http://dev.mysql.com/downloads/mysql/. At the time this was written last updated, 5.1.46 was the latest, stable release. The file was named: mysql-essential-5.1.46-win32.msi. Make sure you save the file to a location on your hard drive where you can locate it.

Run the Installer

MySQL comes packaged as an .msi file that uses Microsoft's Installer to automate the installation process. Simply double-clicking on the file will begin the installation.

You'll be presented with several screens that guide you through the installation process:

  1. Welcome - Lets you verify the name and version of the program you're installing.
  2. Setup Type - Allows you to choose between a typical installation, a complete installation and a custom installation. Choose the "Typical installation".
  3. Ready to Install the Program - This is your final chance to confirm the installation. After clicking Install, you can sit back and watch the blue bar.
  4. Competed - Informs you that everything has completed successfully and lets you launch the configuration wizard. Ensure that "Configure the MySQL Server now" option is checked before clicking "Finish". I'd suggest un-checking the "Register the MySQL Server now" check box since, in my opinion, it's a waste of time.

Once the the installation wizard is completed, the configuration wizard begins.

  1. Welcome - Informs you that you're going to be configuring a MySQL server.
  2. Select Configuration Type - Gives you the choice between a Detailed and Standard Configuration. Select the "Standard Configuration" option.
  3. Set the Windows Options - Allows you to decide whether MySQL should run as a Windows Service and if the MySQL directory should be added to the system path. Make sure both options are checked.
  4. Set the Security Options - Lets you set a root (that's UNIX speak for administrator) password, enable remote root access and create an anonymous account. You are very strongly encouraged to set a root password. If you don't someone can connect to your server, start it, stop it, delete data and probably catch your computer on fire. Consider yourself warned. I'd also suggest leaving the "Enable root access from remote machines" and "Create an Anonymous Account" check boxes unchecked.
  5. Execute - Gives you a final confirmation before the changes are saved.

Test the MySQL Installation

Open a command prompt and run the following command:

C:\>mysqladmin -u root -p version

You'll be prompted for the root password that you entered during the configuration process. The resulting output should be similar to the following:

Enter password: **************
mysqladmin  Ver 8.42 Distrib 5.1.46, for Win32 on ia32
Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version          5.1.46-community
Protocol version        10
Connection              localhost via TCP/IP
TCP port                3306
Uptime:                 1 min 32 sec

Threads: 1  Questions: 10  Slow queries: 0  Opens: 15  Flush tables: 1  Open tab
les: 8  Queries per second avg: 0.108

Create a database

Open the MySQL command line client using -u root to specify the root user and -p to be prompted for a password:

C:\> mysql -u root -p

After entering your password, you should be greeted with a welcome message and prompt that looks something like:

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.0.41-community-nt MySQL Community Edition (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

A quick note before we continue: the semicolon is used to indicate the end of a MySQL query or command. If you forget it MySQL assumes you're entering a multi-line query and you'll be prompted to begin the new line with a ->. This might take a little getting used to.

Now use the following command to create a database named drupal.

mysql> CREATE DATABASE drupal;

If the command succeeds you'll get the following response:

Query OK, 1 row affected (0.00 sec)

Add a user

Now, we'll add a new user account named drupaluser, with a password of supersecret to the drupal database we just created. The new user will allow us to log in and work on the database without having the full administrative permissions. That way if we make a mistake it'll only affect this database.

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE
TEMPORARY TABLES, LOCK TABLES
ON drupal.*
TO 'drupaluser'@'localhost' IDENTIFIED BY 'supersecret';

As mentioned before, when you enter a long command like this, the MySQL client may wrap the lines, beginning each with ->. For instance:

mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE
    -> TEMPORARY TABLES, LOCK TABLES
    -> ON drupal.*
    -> TO 'drupaluser'@'localhost' IDENTIFIED BY 'supersecret';

Running that command produces the following output. It's worth nothing that even if the command succeeds, it will report that 0 rows were affected.

Query OK, 0 rows affected (0.02 sec)

Once you've added the user, use the quit command to return to the command line.

Test Database and User

You can verify that both the database and user were created successfully with the following command:

C:\>mysql -u drupaluser -p drupal

You should then be greeted by the standard welcome screen. Run the following command to list the tables in the flickr database:

mysql> show tables;

It's a new database so it should be empty:

Empty set (0.02 sec)

Use the quit command to exit the MySQL client.

Other Tools

While you could do all your MySQL server administration from the command line, it is neither fun nor easy. MySQL offers several a free, easy-to-use graphical tools to simply the process. The MySQL Administrator provides a GUI for doing most database management. The MySQL Query Browser makes it easy to create and edit tables, run queries and insert, update and delete records. You can download the software from http://dev.mysql.com/downloads/gui-tools/5.0.html

film indir film izle SpooExi

Mysql

Thanks for helpful article.

Met very cook people and had some excellent conversations. Projects ahoy!

porno | porno

. Family is even more

. Family is even more valuable. It is SO easy for a photographer to make a huge increase in revenue by simply adding new revenue streams to an existing business. In a associate degrees recessionary economy - remember that people become very negative and Online Education degree careful with their wallets. So having a large up-front fee is most likely going to result in an empty calendar. I would much rather shoot on spec than with a large upfront fee. Psychology Diploma While that may work with the ultra high-end customer with a lot of discretionary dough

it's interesting to see

it's interesting to see others opinions on how certain things relate or don't relate to each other. Great idea for a Education degree contest, do you have any plans to do another contest like this one?Bachelor Degree

It's wonderful how it all

It's wonderful how it all works out, just like that. On other news, march This was just what I was looking for, great resource. Bookmarked. Vistaprint Coupon Thanks.All the way.

La petite annonce

La petite annonce personnelle blog, un swiss replica watches en cours ou le commentaire par un individu, est blog traditionnel, le swiss watch. La petite annonce replica rolex masterpiece bloggers est d'habitude fière de replica rolex GMT postes de blog, même si leur blog n'est jamais lu par personne, mais eux. Blogs deviennent souvent plus qu'une voie de juste replica rolex daytona; ils deviennent une façon de réfléchir à la vie ou aux oeuvres d'art. Blogging peut avoir une qualité replica rolex submariner. Peu de petite annonce personnelle blogs l'augmentation à la gloire et le courant replica breitling, mais une petite annonce personnelle blogs replica breitling watch vite un suivant étendu. Un type de petite annonce cheap replica rolex blog est "microblogging" appelé, qui est wholesale replica watch exposé en détail blogging comme il cherche à replica rolex information un moment à temps. Les sites, comme le Solid Gold Replica Watch, permettent à bloggers de partager des pensées et des sentiments instantanément avec les amis et la Swiss replica watches et est beaucoup plus rapide que le fait d'envoyer e-mail ou Chanel Replica. Cette forme de mass-média Rolex Replica Watches prête à une génération en ligne déjà trop Swiss Rolex Replicas pour être en communication.

Les règles de forum sont Rolex Watch et faites respecter par l'équipe de modération, mais on permet aux utilisateurs de tirer d'embarras via ce Rolex Replica est connu comme un système de rapport. La Replica Watches de logiciel de forum américain contient un tel système. Il se compose d'une petite Rolex applicable à chaque poste (en incluant son propre). L'utilisation de cela Replica Rolex Watches tous les modérateurs actuellement discounted purses de son endroit et l'action ultérieure ou le Replica Watch peuvent se faire tout de suite, qui est désirable dans les conseils grands ou très développés. Généralement, les modérateurs Replica Rolex des membres à aussi utiliser le système de message privé s'ils veulent replica rolex la conduite. Les modérateurs désapprouveront Fake Watch des essais de modération par les non-modérateurs, surtout quand les modérateurs soi-disants ne publient pas même de Fake Watches. Les messages des non-modérateurs interprétant comme les rolex masterpiece déclarent généralement un poste comme contre les Fake Rolex, ou prédisent la punition. Pendant que non Fake Rolex Watch, les déclarations qui essaient de faire respecter les règles sont diamond store.

Dank für Erlauben das mich hinzuzufügen zu Ihren Informationen.
R Sheets

Thanks!

I appreciate the quick walk through. I just installed the community version of MySQL and while I'm a 2 year veteran with SQL Server, I know absolutely nothing about MySQL. After installing the server, I found your site and with a few quick commands was able to verify that things seemed set up correctly. I look forward to installing the Admin and Query Browser features that you suggest...at this point I assume they're similar to EM and QE of SQL Server.

Thanks for posting this...it makes a difference!

Gabe Lawrence

re