Use win32 to configure non-installed MySQL

Source: Internet
Author: User

This article describes how to use win32 to configure non-installed MySQL. Currently, the non-installed MySQL version is v5.1.40 downloaded from MySQL.com. Download a ZIP package, decompress the package to the C: \ MySQL5.1.40 directory. Next, set the system environment variables and use MySQL In the CMD command line.

Environment variable settings: Right-click my computer on the desktop and choose Properties> advanced> environment variables> double-click the Path to add the C: \ MySQL5.1.40 \ bin directory. If you want to use SDK development, add the Lib and include directories to the corresponding Lib and include environment variables;

Set the environment variables, choose Start> RUN> CMD, run MySQLD, or directly switch to C: \ MySQL5.1.40 \ bin to run the mysqld.exe service program, or run it as a service: note that the mysql installation directory should not contain Chinese characters or spaces. In SDK development, unexpected problems may occur in QT;

Install mysqld-install

Start the Service net start mysql

Stop Service. net stop mysql

Delete service mysqld-remove

During the actual operation of win32 configuration for non-installed MySQL, open a CMD window and run MySQL-h localhost and press Enter.

 
 
  1. {  
  2. Welcome to the MySQL monitor. Commands end with ; or \g.  
  3. Your MySQL connection id is 5  
  4. Server version: 5.1.40-community MySQL Community Server (GPL)  
  5. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.  

Indicates that the MySQL database is successfully connected. Next, you can view the database,

 
 
  1. ->show databases;  
  2. +--------------------+  
  3. | Database |  
  4. +--------------------+  
  5. | information_schema |  
  6. | test |  
  7. +--------------------+  
  8. 2 rows in set (0.01 sec)  
  9. ->use test;  
  10. Database changed 

Constant expressions are supported in the same way as select 444 + 44 from dual in MSSQL or Oracle;

 
 
  1. mysql> select 444+44;   
  2. +--------+  
  3. | 444+44 |  
  4. +--------+  
  5. | 488 |  
  6. +--------+  
  7. 1 row in set (0.00 sec) 

Tag: win32 configuration non-installed MySQL

Original article title: win32 non-installed MySQL Configuration

Connection: http://www.cnblogs.com/jfyes/archive/2010/02/09/1666314.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.