Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在同一台计算机上使用mySQL服务器(Xampp)和SQL Server_Mysql_Sql Server_Xampp - Fatal编程技术网

在同一台计算机上使用mySQL服务器(Xampp)和SQL Server

在同一台计算机上使用mySQL服务器(Xampp)和SQL Server,mysql,sql-server,xampp,Mysql,Sql Server,Xampp,我一直在使用Xampp测试我的网站内容,在我决定安装Microsoft SQL SERVER 2017来做一些数据科学方面的工作(学校方面的工作)之前,一切都很正常 现在我仍然可以启动Apache,但我不能启动MySQL。以下是日志: 2015-11-10 15:26:56 10fc InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future

我一直在使用Xampp测试我的网站内容,在我决定安装Microsoft SQL SERVER 2017来做一些数据科学方面的工作(学校方面的工作)之前,一切都很正常

现在我仍然可以启动Apache,但我不能启动MySQL。以下是日志:

2015-11-10 15:26:56 10fc 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.
2015-11-10 15:26:56 4348 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2015-11-10 15:26:56 4348 [Note] InnoDB: The InnoDB memory heap is disabled
2015-11-10 15:26:56 4348 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-11-10 15:26:56 4348 [Note] InnoDB: Memory barrier is not used
2015-11-10 15:26:56 4348 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-11-10 15:26:56 4348 [Note] InnoDB: Not using CPU crc32 instructions
2015-11-10 15:26:56 4348 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-11-10 15:26:56 4348 [Note] InnoDB: Completed initialization of buffer pool
2015-11-10 15:26:56 4348 [Note] InnoDB: Highest supported file format is Barracuda.
2015-11-10 15:26:57 4348 [Note] InnoDB: 128 rollback segment(s) are active.
2015-11-10 15:26:57 4348 [Note] InnoDB: Waiting for purge to start
2015-11-10 15:26:57 4348 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 1835027
2015-11-10 15:26:57 6140 [Note] InnoDB: Dumping buffer pool(s) not yet started
2015-11-10 15:26:57 4348 [Note] Plugin 'FEEDBACK' is disabled.
2015-11-10 15:26:57 4348 [Note] Server socket created on IP: '::'.
2015-11-10 15:26:57 4348 [Note] Event Scheduler: Loaded 0 events
2015-11-10 15:26:57 4348 [Note] C:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.8-MariaDB'  socket: ''  port: 3306  mariadb.org binary distribution
2015-11-10 15:27:11 5152 [Note] C:\xampp\mysql\bin\mysqld.exe: Normal shutdown

2015-11-10 15:27:11 5152 [Note] Event Scheduler: Purging the queue. 0 events
2015-11-10 15:27:11 5732 [Note] InnoDB: FTS optimize thread exiting.
2015-11-10 15:27:11 5152 [Note] InnoDB: Starting shutdown...
2015-11-10 15:27:13 5152 [Note] InnoDB: Shutdown completed; log sequence number 1835037
2015-11-10 15:27:13 5152 [Note] C:\xampp\mysql\bin\mysqld.exe: Shutdown complete

2017-11-17 13:40:05 33f8 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.
2017-11-17 13:40:05 13304 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.

2017-11-17 13:40:05 13304 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-11-17 13:40:05 13304 [Note] InnoDB: The InnoDB memory heap is disabled
2017-11-17 13:40:05 13304 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2017-11-17 13:40:05 13304 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2017-11-17 13:40:05 13304 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-11-17 13:40:05 13304 [Note] InnoDB: Using generic crc32 instructions
2017-11-17 13:40:05 13304 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2017-11-17 13:40:05 13304 [Note] InnoDB: Completed initialization of buffer pool
2017-11-17 13:40:05 13304 [Note] InnoDB: Highest supported file format is Barracuda.
2017-11-17 13:40:06 13304 [Note] InnoDB: 128 rollback segment(s) are active.
2017-11-17 13:40:06 13304 [Note] InnoDB: Waiting for purge to start
2017-11-17 13:40:06 13304 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.36-82.2 started; log sequence number 1835037
2017-11-17 13:40:06 13284 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-11-17 13:40:06 13304 [Note] Plugin 'FEEDBACK' is disabled.
2017-11-17 13:40:06 13304 [Note] Server socket created on IP: '::'.
2017-11-17 13:40:06 13304 [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.


2017-11-17 13:40:06 13304 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2017-11-17 13:40:06 13304 [ERROR] Aborting

我尝试使用SQL Server Management关闭SQL Server,但仍然无法连接MySQL。

如日志所示,当您安装SQL Server时,它“保留”了MySQL使用的同一端口

2017-11-17 13:40:06 13304 [ERROR] Do you already have another mysqld server running on port: 3306 ?
您可以在my.ini文件中更改MySql端口,Xampp控制面板可以在“config”下访问该端口


或者,您可以根据本教程更改de SQL Server端口:

您可以更改SQL Server或mysql Server的端口,并且在访问时不要忘记指定端口。

因为Microsoft SQL Server和mysql/MariaDB/Percona使用不同的端口(而且听起来您没有改变默认端口),我怀疑这与您安装SQL Server有关。SQLServer使用SQL和MySQL

至于是什么在使用这个端口,这对我们很有帮助。有一个关于Sysinternals应用程序的建议,或者使用netstat的替代建议(例如
C:\>netstat-a-b-n
),这会让您对端口3306的用法有一些了解


在我看来,您可能安装了另一台MySQL服务器,该服务器与XAMPP尝试使用的端口冲突。

只是更改了SQL server端口,没有解决问题。