安装选默认目录就可以了 c:mysql
把 c:mysqlmy-example.cnf copy 为 c:my.cnf
要修改的自己去看看吧,很简单的 把 c:mysqllibcygwinb19.dll copy 到 winntsystem32 启动 mysql c:mysqlbinmysqld-shareware --installnet start mysql 启动啦 更改 root 的 password C:mysqlbinmysql mysql
mysql> UPDATE user SET password=PASSWORD('your password') WHERE user='root';
mysql> QUIT
C:mysqlbinmysqladmin reload 去看看行了没有?
C:mysqlbinmysqlshow 在这里应该显示: +-----------+
Databases
+-----------+
+-----------+
mysql
Databases
+-----------+
mysql
test
+-----------+ 看到这些信息这一步就OK了
再来:
C:mysqlbinmysqlshow --user=root --password=your password mysql 在这里应该显示: Database: mysql
+--------------+
Database: mysql
+--------------+
Tables
+--------------+
columns_priv
db
host
tables_priv
user
+--------------+ 看见就行了。 C:mysqlbinmysqladmin version status proc 没有问题就应该可以看到这些信息: mysqladminmysqladminVer 8.0 Distrib 3.22.32, for Win95/Win98 on i586
TCX Datakonsult AB, by Monty Server version3.22.32-shareware-debug
Protocol version10
Connectionlocalhost via TCP/IP
TCP portlocalhost via TCP/IP
TCP port3306
Uptime:1 hour 29 min 30 sec Threads: 1Questions: 72Slow queries: 0Opens: 16Flush tables: 1Open tables: 0Memory in use: 16423KMax memory used: 16490K
Uptime: 5370Threads: 1Threads: 1Questions: 72Slow queries: 0Opens: 16Flush tables: 1Open tables: 0Memory in use: 16423KMax memory used: 16490K +----+------+-----------+----+---------+------+-------+------------------+
Id User Host db Command Ti State Info State Info
+----+------+-----------+----+---------+------+-------+------------------+
35 ODBC localhost Query 0 show processlist
+----+------+-----------+----+---------+------+-------+----------------- 接着,用show databases命令可以将安装的数据库列出来: mysql> show databases; 你就可以看到: +----------+ Database +----------+ mysql --- test --- ----------------------------------------------