关于wampserver无法启动mysql数据库的问题
最近做网站项目,昨天准备做一个留言板。为了图方便,在网上看到了PHPCMS v9用导向可以自动生成留言板的模块的方法,于是准备下下来偷个懒。待安装完毕后一瞧见了右下角的wampserver绿色图标变成了橘黄色。退出后重启wampserver发现已然无法正常启动,图标始
最近做网站项目,昨天准备做一个留言板。为了图方便,在网上看到了PHPCMS v9用导向可以自动生成留言板的模块的方法,于是准备下下来偷个懒。待安装完毕后一眼瞧见了右下角的wampserver绿色图标变成了橘黄色。退出后重启wampserver发现已然无法正常启动,图标始终停在橘黄色不变。在wampserver上打开phpmyadmin,输入密码,提示#2002 无法登陆mysql服务器。我意识到出问题了。应该是刚才安装的PHPCMS v9的apache或者mysql和wampserver里面的服务器冲突了。(怪不得刚才安装的时候360一直提示在修改系统文件,要不要阻止此程序。)于是开始了解决问题之路。
首先将刚才装的PHPCMS V9 文件全部删除。一般来讲wampserver变为橘黄色可能是apache或者是mysql服务器没法正常启动而造成的。第一步先检查apache服务器。在wampserver上运行测试80端口,控制台显示"your port 80 is actually used by : server:apache 2.4.4/mysql5.6.12"。与我本身wampserver集成环境的版本相同,说明80端口正在被自身所占用。然后 "开始->cmd",输入 netstat -ano 显示当前端口连接情况。80端口正被PID为564的活动所使用。然后再控制台继续输入 : tasklist 寻找PID为564的映像名称 是httpd.exe 程序。而httpd.exe正是apache相关程序。在地址栏输入 http://127.0.0.1:80 也打开了wampserver对应www目录下的文件。以上说明apache正常启动了。
接下来就断定是mysql除了问题,除了登录phpmyadmin报错“#2002 无法登陆mysql服务器”之外。点开wampserver的mysql,只有"启动/继续服务",“安装服务”,“卸载服务”可以使用。明显mysql没启动,于是点击“启动/继续服务”,此时“启动/继续服务”和“停止服务”都可以使用。很奇怪,正常启动后“启动/继续服务”就不能使用了。过了一会儿,继续查看mysql->service,发现又只有“启动/继续服务”,“安装服务”,“卸载服务”可用。如果勉强说刚才mysql服务启动了的话现在mysql服务是真的自己停掉了。于是查看3306端口。用刚才的方法,控制台输入: netstat -ano 发现3306端口没有被活动连接使用。打开控制面板->管理工具->服务。找到wampmysqld 服务,右键启动此服务,报错:“windowswufa 启动wampsqld服务,错误1067 :进程意外终止”。mysql根本没法启动。于是开始百度,一条一条浏览。找了很多解决办法。如删除注册表中位于HKEY_LOCAL_MECHINE\SYSTEM\ControlSet001和HKEY_LOCAL_MECHINE\SYSTEM\ControlSet002以及HKEY_LOCAL_MECHINE\SYSTEM\CurrentControlSet 下的和mysql相关文件。打开注册表搜索mysql,找到相关文件,全部删除。退出重启wampserver。依然无法正常启动。或者打开防火墙,或者将phpmyadmin\libraries下的config.default.php中的$cfg['Servers'][$i]['host']="localhost" 改为$cfg['Servers'][$i]['host']="127.0.0.1";改过之后依然不行。于是改换google,找了几篇博客,终于找到了和我问题差不多的一个人。他的方法是删掉位于c盘下windows下的my.ini文件。照着他的方法做了,大功告成,wampserver终于正常启动了。
打开这个my.ini文件, 基本上是关于刚才那个PHPCMS v9中mysql的配置文件。我猜想大概是和wampserver中的mysql冲突了。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The main reasons why you cannot log in to MySQL as root are permission problems, configuration file errors, password inconsistent, socket file problems, or firewall interception. The solution includes: check whether the bind-address parameter in the configuration file is configured correctly. Check whether the root user permissions have been modified or deleted and reset. Verify that the password is accurate, including case and special characters. Check socket file permission settings and paths. Check that the firewall blocks connections to the MySQL server.

When MySQL modifys table structure, metadata locks are usually used, which may cause the table to be locked. To reduce the impact of locks, the following measures can be taken: 1. Keep tables available with online DDL; 2. Perform complex modifications in batches; 3. Operate during small or off-peak periods; 4. Use PT-OSC tools to achieve finer control.

Data Integration Simplification: AmazonRDSMySQL and Redshift's zero ETL integration Efficient data integration is at the heart of a data-driven organization. Traditional ETL (extract, convert, load) processes are complex and time-consuming, especially when integrating databases (such as AmazonRDSMySQL) with data warehouses (such as Redshift). However, AWS provides zero ETL integration solutions that have completely changed this situation, providing a simplified, near-real-time solution for data migration from RDSMySQL to Redshift. This article will dive into RDSMySQL zero ETL integration with Redshift, explaining how it works and the advantages it brings to data engineers and developers.

1. Use the correct index to speed up data retrieval by reducing the amount of data scanned select*frommployeeswherelast_name='smith'; if you look up a column of a table multiple times, create an index for that column. If you or your app needs data from multiple columns according to the criteria, create a composite index 2. Avoid select * only those required columns, if you select all unwanted columns, this will only consume more server memory and cause the server to slow down at high load or frequency times For example, your table contains columns such as created_at and updated_at and timestamps, and then avoid selecting * because they do not require inefficient query se

In MySQL database, the relationship between the user and the database is defined by permissions and tables. The user has a username and password to access the database. Permissions are granted through the GRANT command, while the table is created by the CREATE TABLE command. To establish a relationship between a user and a database, you need to create a database, create a user, and then grant permissions.

MySQL has a free community version and a paid enterprise version. The community version can be used and modified for free, but the support is limited and is suitable for applications with low stability requirements and strong technical capabilities. The Enterprise Edition provides comprehensive commercial support for applications that require a stable, reliable, high-performance database and willing to pay for support. Factors considered when choosing a version include application criticality, budgeting, and technical skills. There is no perfect option, only the most suitable option, and you need to choose carefully according to the specific situation.

MySQL cannot run directly on Android, but it can be implemented indirectly by using the following methods: using the lightweight database SQLite, which is built on the Android system, does not require a separate server, and has a small resource usage, which is very suitable for mobile device applications. Remotely connect to the MySQL server and connect to the MySQL database on the remote server through the network for data reading and writing, but there are disadvantages such as strong network dependencies, security issues and server costs.

MySQL database performance optimization guide In resource-intensive applications, MySQL database plays a crucial role and is responsible for managing massive transactions. However, as the scale of application expands, database performance bottlenecks often become a constraint. This article will explore a series of effective MySQL performance optimization strategies to ensure that your application remains efficient and responsive under high loads. We will combine actual cases to explain in-depth key technologies such as indexing, query optimization, database design and caching. 1. Database architecture design and optimized database architecture is the cornerstone of MySQL performance optimization. Here are some core principles: Selecting the right data type and selecting the smallest data type that meets the needs can not only save storage space, but also improve data processing speed.
