MySQL没有在Xampp控制面板上启动

时间:2013-12-11 20:56:42

标签: php mysql wordpress xampp wamp

错误

1:47:20 AM  [mysql]     Error: MySQL shutdown unexpectedly.
1:47:20 AM  [mysql]     This may be due to a blocked port, missing dependencies, 
1:47:20 AM  [mysql]     improper privileges, a crash, or a shutdown by another method.
1:47:20 AM  [mysql]     Press the Logs button to view error logs and check
1:47:20 AM  [mysql]     the Windows Event Viewer for more clues
1:47:20 AM  [mysql]     If you need more help, copy and post this
1:47:20 AM  [mysql]     entire log window on the forums

记录:

2013-12-12 01:33:01 3204 [Note] Plugin 'FEDERATED' is disabled.
 2013-12-12 01:33:01 828 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. 
2013-12-12 01:33:01 3204 [Note] InnoDB: The InnoDB memory heap is disabled
2013-12-12 01:33:01 3204 [Note] InnoDB: Mutexes and rw_locks use Windows 
interlocked        functions  
2013-12-12 01:33:01 3204 [Note] InnoDB: Compressed tables use zlib 1.2.3
  2013-12-12 01:33:01 3204 [Note] InnoDB: Not using CPU crc32 instructions
 2013-12-12 01:33:01 3204 [Note] InnoDB: Initializing buffer pool, size = 16.0M
 2013-12-12 01:33:01 3204 [Note] InnoDB: Completed initialization of buffer pool
 2013-12-12 01:33:01 3204 [Note] InnoDB: Highest supported file format is Barracuda.
 2013-12-12 01:33:02 3204 [Warning] InnoDB: Resizing redo log from 2*3072 to 2*320    
  pages  , LSN=1625987 
2013-12-12 01:33:02 3204 [Warning] InnoDB: Starting to delete and rewrite log files.
2013-12-12 01:33:02 3204 [Note] InnoDB: Setting log file C:\xampp\mysql
\data\ib_logfile101 size to 5 MB

2013-12-12 01:33:02 3204 [Note] InnoDB: Setting log file C:\xampp\mysql     
\data\ib_logfile1 size to 5 MB

2013-12-12 01:33:02 3204 [Note] InnoDB: Renaming log file C:\xampp\mysql

面对此错误,为什么?

1 个答案:

答案 0 :(得分:0)

我的朋友!似乎somke其他应用程序运行相同     端口号为apache或mysql。默认端口号为     apache服务器 80 。 Skype意外地使用相同的端口号     apache服务器。也许使用的默认端口号 3306     某些其他应用程序也在使用mysql服务器。在我的     它是wampp服务器,内置了mysql服务器     进去。

1。更改Apache服务器端口号。

                         Now what you gonna so it change the default port numbers of both the apache server and the mysql server
manually. To change the port number of apache, u have to o into the
xampp folder in your installation directory(Mine was C drive). In
there the file location would be : 
  

C:\ XAMPP \阿帕奇\ CONF

(乌尔     安装目录也可能不同)。在那里有一个     CONF文件/配置文件名为 httpd.conf 。使用打开文件     任何文本编辑器,然后手动或尝试查找数字 80     使用取景器(例如, Ctrl + F 在记事本++中)。你会发现它们     在 #Listen 12.34.56.78:12 收听 12 ServerName localhost: 12 。     在这两个地方用一个精心挑选的数字替换数字80     并记住所有地方的数字应该相同,     并记住你选择的号码。

2.更改MySql服务器的端口号

                         Now do the same thiong for Mysql server. It is located in 
  

C:\ XAMPP \ MySQL的\ BIN

命名为“我的”(选择并右键单击     查看属性。它是一个ini文件)。用文字打开它     editor.Find 3306 并将其替换为精心挑选且独一无二的     所有地方的号码(如果您在此期间更改了端口号码)     安装或之后找到特定的数字和更改     它)。

3.启动Apache服务器并对其进行测试

使用XMPP控制面板启动Apache服务器,然后通过输入url来测试apache本地服务器     像往常一样浏览器。但是这次追加localhost或者     127.0.0.1,其中12用分号分隔,例如: localhost:25 127.0.0.1:25 ,如果您的新端口号 25 。我想你     会好起来的。如果你有任何进一步的问题,请随时     问....