有谁知道MYSQL FOR win怎么装,装完说不能连到server.
过程。
1.从官方下载zip包
2.解压。
3.setup.exe默认路径。c:\mysql
4.在安装时我仔细看了说明 。
"This is a release of MySQL 3.23.51 for Win32.
NOTE: If you install MySQL in a folder other than
C:\MYSQL or you intend to start MySQL on NT/Win2000
as a service, you must create a file named C:\MY.CNF
or \Windows\my.ini or \winnt\my.ini with the following
information::[mysqld]
basedir=E:/installation-path/
datadir=E:/data-path/After your have installed MySQL, the installation
directory  will contain a file named 'my-example.cnf'.
You can use this as a starting point for your own
C:\my.cnf file.If you have any problems, you can mail them to
[email protected] after you have consulted the
MySQL manual and the MySQL mailing list archive
(http://www.mysql.com/documentation/index.html)"
因为我是要它做服务器
所以在c 盘根目录下建 MY.cnf (注意:\Windows\my.ini or \winnt\my.ini下没有,人家说了是"或"了)
之后,找不到'my-example.cnf'呀。
就从DOS
cd c:\mysql\bin> mysql -yroot -p
Enter password:(初始没密码,我直接回车,第二次外加试输我操作系统的密码。)
出现:
ERROR 2003:Can't connect to MySQL server on 'localhost'<10061>
还有万一人家没E盘怎么办????

解决方案 »

  1.   

    http://soft.269.net/SoftWareView.asp?SoftWareID=17612
    去上面的网址下载这个版本,然后解压,安装,然后把'my-example.cnf'改为my.cnf,然后把它考到c:\下面,然后使用写字板把这个文件打开,把basedir=d:\mysql改为你的mysql安装目录,比如c:\mysql。然后在commond命令行下进入c:\mysql\bin目录下,执行mysqld-nt --install,然后执行mysqld,然后就是 mysql -yroot -p
    如果还有问题,
    [email protected]