【问题标题】:MySQL is not starting - Error 40 in SQL Server Management StudioMySQL 未启动 - SQL Server Management Studio 中的错误 40
【发布时间】:2016-05-17 06:54:17
【问题描述】:

当我尝试使用 XAMPP 启动 MySQL 以在 LocalHost 上运行服务器时,我收到以下错误日志:

2016-05-17 12:26:09 ccc InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2016-05-17 12:26:09 3276 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-05-17 12:26:09 3276 [Note] InnoDB: The InnoDB memory heap is disabled
2016-05-17 12:26:09 3276 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-05-17 12:26:09 3276 [Note] InnoDB: Memory barrier is not used
2016-05-17 12:26:09 3276 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-05-17 12:26:09 3276 [Note] InnoDB: Using generic crc32 instructions
2016-05-17 12:26:10 3276 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2016-05-17 12:26:10 3276 [Note] InnoDB: Completed initialization of buffer pool
2016-05-17 12:26:10 3276 [Note] InnoDB: Highest supported file format is Barracuda.
2016-05-17 12:26:13 3276 [Note] InnoDB: 128 rollback segment(s) are active.
2016-05-17 12:26:13 3276 [Note] InnoDB: Waiting for purge to start
2016-05-17 12:26:13 3276 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.28-76.1 started; log sequence number 1850419
2016-05-17 12:26:14 4872 [Note] InnoDB: Dumping buffer pool(s) not yet started
2016-05-17 12:26:14 3276 [Note] Plugin 'FEEDBACK' is disabled.
2016-05-17 12:26:14 3276 [Note] Server socket created on IP: '::'.
2016-05-17 12:26:14 3276 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted.


2016-05-17 12:26:14 3276 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2016-05-17 12:26:14 3276 [ERROR] Aborting

几天前不存在此错误。在尝试连接到 SSMS 中的 LocalHost 时,弹出“错误 40:无法连接到 SQL 服务器”。事实证明,虽然安装了 SQL Server 配置管理器,但 MMC 无法创建管理单元。就 SQL 而言,我是一个菜鸟。我该怎么办?

【问题讨论】:

  • MySql 和 Sql Server 是不同的产品。 SSMS 与 sql server 一起使用,我不确定它是否可以连接到 MySql。
  • 感谢您的回复,@ZoharPeled。我假设 MySQL 服务器也必须启动才能运行 SQL Server。即使 MySQL 没有启动,错误仍然存​​在 SSMS。

标签: mysql sql-server ssms mmc


【解决方案1】:

Mysql 无法启动,因为已经有一个进程在监听它配置使用的 tcp/ip 端口。也许mysql已经启动,或者另一个程序正在监听端口。在命令提示符 (cmd.exe) 中使用带有正确参数的 netstat 可以揭示这是哪个进程。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-16
    • 1970-01-01
    • 1970-01-01
    • 2022-08-05
    相关资源
    最近更新 更多