Cygwin is a Linux-like environment for Windows.
Cygwin就是在windows下模拟linux环境。
我一般使用它来管理和操作MySQL数据库。当然还能支持很多的功能,比如linux administration, oracle,phyton等。
cygwin对于windows95,98,Me的支持,在1.7版本中被取缔了。
It consists of two parts:
# A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality.
# A collection of tools which provide Linux look and feel.
The Cygwin DLL currently works with all recent, commercially released x86 32 bit and 64 bit versions of Windows, with the exception of Windows CE.
Note that the official support for Windows 95, Windows 98, and Windows Me has been discontinued with the latest Cygwin major release 1.7.
登陆cygwin后,
$ cd c:/
会显示当前路径/cygdrive/c
$ cd c:/wamp/bin/mysql/mysql5.1.36/bin/
就找到了mysql.exe所在的文件夹
$ ./mysql -u charles -p
执行mysql.exe,并指定用户是charles,然后提示出入密码
输入密码后,进入mysql管理环境:
mysql>
之后可以做mysql数据的操作。
如:
mysql> show databases;
mysql> use dbtest;
mysql> desc tabletest;
等等。