How to Activate MySQL Database on XAMPP for Windows

ぐ巨炮叔叔 提交于 2019-12-23 03:09:10

问题


I can't access phpMyAdmin on XAMPP for Windows and the problem must be with MySQL, because on the XAMPP Status, it says MySQL database is DEACTIVATED. But on my XAMPP Control Panel Application, I've already started MySQL and it says Running, although I didn't check the Svc tick box (Is that necessary?). How to activate MySQL database so that I can run phpMyAdmin?

Also, when I open phpMyAdmin page, it says :

*Error

MySQL said: Documentation

2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)

Connection for controluser as defined in your configuration failed.*

I've already done a research for an answer to this question, but none of them works for me.


回答1:


XAMPP only summarys MySQL (Database Server) & Apache (Webserver) in one setup and u can manage them with the xampp starter.

Aftet the successfully installation navigate to your xampp folder and execute the xampp-control.exe

Press the start Button at the mysql line.

Now u started successfully mysql. Now there are 2 different ways to administrate your mysql server and his databases.

But at first u have to set/change the MySQL Root password. Start the Apache server and open at your browser localhost or 127.0.0.1. If you didn't deleted anything from the htdocs folder the xampp status page appears. Navigate to security settings and change your mysql root password.

Now after this, you can browse to your phpmyadmin under localhost or download a windows mysql client for example navicat lite or mysql workbench. Install it and log to your mysql server with your new root password.



来源:https://stackoverflow.com/questions/19419201/how-to-activate-mysql-database-on-xampp-for-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!