mysql创建新数据库的问题

sywh 2004-01-17 12:42:59
我的机子是WIN2K,安装mysql,版本是mysql-4.0.17-win(直接安装的),安装到c:\mysql目录下,装好后
准备创建一个数据库,进入MSDOS方式输入命令:mysqladmin -u root create mydb时,提示:
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to MySQL server on 'localhost' (10
Check that mysqld is running on localhost and that the p
You can check this by doing 'telnet localhost 3306'
这是怎么回事啊?期盼指教!
...全文
102 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
mikespook 2004-01-17
  • 打赏
  • 举报
回复
安装好后你要用下面的命令打开MYSQL的服务~~

进入MYSQL的BIN目录~输入命令~

c:\mysql\bin>mysqld-nt --install
c:\mysql\bin>net start mysql
sywh 2004-01-17
  • 打赏
  • 举报
回复
各位能不能介绍一个比较好调试的SQL版本啊?多谢了
earthwind 2004-01-17
  • 打赏
  • 举报
回复
把上面的端口3306改了,试试
sywh 2004-01-17
  • 打赏
  • 举报
回复
运行mysqld-nt stop后出现:
Can't start server: Bind on TCP/IP port: No error
040117 16:12:13 Do you already have another mysqld server running on port: 3306
?
040117 16:12:13 Aborting

040117 16:12:13 mysqld-nt: Shutdown Complete
然后用C:\mysql\bin>mysqld-nt --install,问题依旧。
打开winmysqladmin.exe,发现灯是绿的,找到my.ini.setup,出现:

#This File was made using the WinMySQLadmin 1.0 Tool
#2004-1-12 11:30:44

#Uncomment or Add only the keys that you know how works.
#Read the MySQL Manual for instructions

[mysqld]
basedir=C:/mysql
#bind-address=127.0.0.1
datadir=C:/mysql/data
#language=C:/mysql/share/your language directory
#slow query log#=
#tmpdir#=
#port=3306
#set-variable=key_buffer=16M
[WinMySQLadmin]
Server=C:/mysql/bin/mysqld-nt.exe
user=a
password=a
我想是不是这里面有的选项没有填好才导致net start mysql运行不起来?
蘑菇 2004-01-17
  • 打赏
  • 举报
回复
你去看看mysql的服务启动没有。
或者用winmysqladmin.exe
启动图形管理界面看看
xeimm 2004-01-17
  • 打赏
  • 举报
回复
看看你的mysql 服务 进程什么的都正确吗?


我还是喜欢图形管理mysql的。
earthwind 2004-01-17
  • 打赏
  • 举报
回复
运行 mysqld-nt stop 停止服务,然后再启动一次。试试
sywh 2004-01-17
  • 打赏
  • 举报
回复
用C:\mysql\bin>mysqld-nt --install
结果出现:
The service already exists!
The current server installed: C:/apache/mysql/bin/mysqld-nt.exe
可我C盘中根本就不存在这个目录。
feel8 2004-01-17
  • 打赏
  • 举报
回复
双击 C:\mysql\bin\winmysqladmin.exe .
右击winmysqladmin界面,安装运行服务
nbzh 2004-01-17
  • 打赏
  • 举报
回复
好像是mysql服务没有运行!

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧