gpt4 book ai didi

mysql - XAMPP 和 MySQL 启动时出现错误

转载 作者:行者123 更新时间:2023-11-29 07:55:09 24 4
gpt4 key购买 nike

当我尝试通过 XAMPP 控制面板启动 MySQL 服务时,出现此错误:

2014-08-17 14:53:44 6028 [ERROR] TCP/IP, --shared-memory, or --named-pipe should be configured on NT OS
2014-08-17 14:53:44 6028 [ERROR] Aborting

之前有人遇到过这个问题,并且进行过配置更改以使其运行吗?

作为引用,这些是 my.ini 中的设置:

[client] 
port = 3306
socket = "G:/Dev/xampp/mysql/mysql.sock"

# The MySQL server
[mysqld]
port= 3306
socket = "G:/Dev/xampp/mysql/mysql.sock"
basedir = "G:/Dev/xampp/mysql"
tmpdir = "G:/Dev/xampp/tmp"
datadir = "G:/Dev/xampp/mysql/data"
pid_file = "mysql.pid"
# enable-named-pipe
key_buffer = 16M
max_allowed_packet = 1M
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
log_error = "mysql_error.log"
# SECURITY CHANGES
skip-networking
local-infile=0

plugin_dir = "G:/Dev/xampp/mysql/lib/plugin/"

skip-federated

server-id = 1

innodb_data_home_dir = "G:/Dev/xampp/mysql/data"
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = "G:/Dev/xampp/mysql/data"
innodb_buffer_pool_size = 256M
innodb_additional_mem_pool_size = 2M
innodb_log_file_size = 32M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 2
innodb_lock_wait_timeout = 50
innodb_thread_concurrency = 16
innodb_flush_method = normal

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

最佳答案

通过删除选项enable-named-pipe之前的注释来启用命名管道

pid_file = "mysql.pid"
enable-named-pipe # this line
key_buffer = 16M

或者通过注释掉选项skip-networking让mysql监听TCP/IP端口:

# SECURITY CHANGES
# skip-networking # this line

如果禁用网络并且未启用命名管道,那么 mysqld 将毫无用处。

关于mysql - XAMPP 和 MySQL 启动时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25352651/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com