mysql为何不能启动? 没有启动服务,用WINDOWS,在你的MYSQL的BIN目录下会有winmysqladmin.exe,启动它就是了。winmysqladmin----mysql的服务器错误提示的意思是在主机‘localhost'上无法连接MySql服务器 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 纠正一下,启动了winmysqladmin.exe----管理工具,同时就会启动mysql的服务程序 不行呀,管理工具里mysql停止服务,1067错误。 my.ini 文件配置出错,请按下面给出的自行修改[mysqld]# Uncomment the following rows if you move the MySQL distribution to another locationbasedir =D:/mysqldatadir =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 updateslog-bin = d:/mysql/log/123.log # 二进制Log文件,用于镜像服务器log =d:/mysql/log/sql.log # Log记录local-infile =1# 允许使用 LOAD DATA LOCAL#socket =MySQLskip-lockingset-variable = key_buffer=16Kset-variable = max_allowed_packet=1Mset-variable = thread_concurrency=4# CPU数目*2set-variable = thread_stack=64Kset-variable = table_cache=4set-variable = sort_buffer=64Kset-variable = net_buffer_length=2Kserver-id = 1# Un comment the following if you are NOT using BDB tablesskip-bdb# Uncomment the following if you are using Innobase tablesskip-innodbinnodb_data_home_dir = e:\mysql\ibdatainnodb_data_file_path = ibdata1:1000M# 数据文件必须能容下数据和索引set-variable = innodb_buffer_pool_size=50M# 设置缓冲池大小为内存的 50 - 80 %set-variable = innodb_additional_mem_pool_size=5Minnodb_log_group_home_dir = e:\mysql\ibdata\iblogsinnodb_log_arch_dir = e:\mysql\ibdata\iblogs# log_arch_dir 必须和 log_group_home_dir 一样innodb_log_archive=0set-variable = innodb_log_files_in_group=3set-variable = innodb_log_file_size=10M# 设置日志文件大小为缓冲池的 15%。set-variable = innodb_log_buffer_size=8Minnodb_flush_log_at_trx_commit=1# 如果丢失最近的几个事务影响不大的话,设置 flush_log_at_trx_commit 为 0。set-variable = innodb_file_io_threads=4set-variable = innodb_lock_wait_timeout=50[WinMySQLadmin]Server=D:/mysql/bin/mysqld-max-nt.exeuser=rootpassword= 我也不清楚,在我这里测试没用,这是帮助文件上的解决办法*通过执行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选项启动。 我想很多问题都是没有好好配置my.ini,建议好好看看手册。 2个SQL合并查询出结果 求text类型转化为varchar() 两个表关联怎么得到其中一个表的记录总数? sum之后结果是所需要的二倍? MYSQL和sql server的语法区别多吗!! 重复记录问题,请指教! mysql的中文排序比较混乱,如何解决 mysql支持中文表名的问题 mysql 纵表变横表sql解决方案,刚才的帖子条件不准备,我修改了一下 关于数据库名称是中文的问题 请问,这是mysql的漏洞吗? 下载mysql
请按下面给出的自行修改[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=
*尝试连接本地机器上的mysqld守护进程,并用mysqladmin variables检查mysqld被配置使用的TCP/IP端口(变量port)。 *检查你的mysqld服务器没有用--skip-networking选项启动。