没有启动服务,用WINDOWS,在你的MYSQL的BIN目录下会有winmysqladmin.exe,启动它就是了。winmysqladmin----mysql的服务器错误提示的意思是在主机‘localhost'上无法连接MySql服务器

解决方案 »

  1.   

    纠正一下,启动了winmysqladmin.exe----管理工具,同时就会启动mysql的服务程序
      

  2.   

    不行呀,管理工具里mysql停止服务,1067错误。
      

  3.   

    my.ini 文件配置出错,
    请按下面给出的自行修改[mysqld]# Uncomment the following rows if you move the MySQL distribution to another location
    basedir =D:/mysql
    datadir =D:/mysql/data
    #tmpdir#=
    # 临时文件存放目录
    #bind-address=192.168.0.2
    # 本机的IP地址
    port=3306
    # 所占用的IP端口
    language =chinese
    # 服务器返回信息语言
    default-character-set =gb2312
    # 服务器默认的字符集,加上后就支持中文字段,中文索引等
    #timezone =GMT+ 8
    # 时区北京# Uncomment the following if you want to log updates
    log-bin = d:/mysql/log/123.log 
    #  二进制Log文件,用于镜像服务器
    log =d:/mysql/log/sql.log
    #  Log记录
    local-infile =1
    # 允许使用 LOAD  DATA  LOCAL
    #socket =MySQL
    skip-lockingset-variable = key_buffer=16K
    set-variable = max_allowed_packet=1M
    set-variable = thread_concurrency=4
    #  CPU数目*2
    set-variable = thread_stack=64K
    set-variable = table_cache=4
    set-variable = sort_buffer=64K
    set-variable = net_buffer_length=2K
    server-id = 1# Un comment the following if you are NOT using BDB tables
    skip-bdb# Uncomment the following if you are using Innobase tables
    skip-innodb
    innodb_data_home_dir = e:\mysql\ibdata
    innodb_data_file_path = ibdata1:1000M
    #  数据文件必须能容下数据和索引
    set-variable = innodb_buffer_pool_size=50M
    #  设置缓冲池大小为内存的 50 - 80 %
    set-variable = innodb_additional_mem_pool_size=5M
    innodb_log_group_home_dir = e:\mysql\ibdata\iblogs
    innodb_log_arch_dir = e:\mysql\ibdata\iblogs
    #  log_arch_dir 必须和 log_group_home_dir 一样
    innodb_log_archive=0
    set-variable = innodb_log_files_in_group=3
    set-variable = innodb_log_file_size=10M
    #  设置日志文件大小为缓冲池的 15%。
    set-variable = innodb_log_buffer_size=8M
    innodb_flush_log_at_trx_commit=1
    #  如果丢失最近的几个事务影响不大的话,设置 flush_log_at_trx_commit 为 0。
    set-variable = innodb_file_io_threads=4
    set-variable = innodb_lock_wait_timeout=50
    [WinMySQLadmin]
    Server=D:/mysql/bin/mysqld-max-nt.exe
    user=root
    password= 
      

  4.   

    我也不清楚,在我这里测试没用,这是帮助文件上的解决办法*通过执行telnet your-host-name tcp-ip-port-number并且按几次回车来检查服务器是否正常运行。如果有一个MySQL运行在这个端口上,你应该得到一个包含正在运行的MySQL服务器的版本号的应答。如果你得到类似于telnet: Unable to connect to remote host: Connection refused的一个错误,那么没有服务器在使用的端口上运行。
     
    *尝试连接本地机器上的mysqld守护进程,并用mysqladmin variables检查mysqld被配置使用的TCP/IP端口(变量port)。 *检查你的mysqld服务器没有用--skip-networking选项启动。
      

  5.   

    我想很多问题都是没有好好配置my.ini,建议好好看看手册。