phpMyAdmin is throwing a #2002 cannot log in to the mysql server phpmyadmin

前端 未结 27 2365
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-27 14:50

I have installed MySQL server enterprise 5.1 on my local machine and now I want to install phpMyAdmin, but it does not work.

I have unrared phpMyAdmin to my server r

27条回答
  •  盖世英雄少女心
    2020-11-27 15:08

    For those who get this error when working with WAMP/XAMP on a windows machine.

    This may help you.

    Your solution is to

    • net stop mysql
    • Erase binary logs (and the binary log index file)
    • IF you do not know where they are, locate my.ini on your PC
    • Open my.ini in Notepad look for the option log-bin or log_bin
    • Look for the option datadir
    • If log-bin only has a filename, look inside the folder specified by datadir
    • If log-bin includes a path and a filename, look inside the folder specified by log-bin
    • Open the desired folder in Windows Explorer
    • Remove the binary logs There should be a file whose file extension is .index. Delete this as well net start mysql

    Please DO NOT ERASE ib_logfile0 or ib_logfile1 when you have binary log issues.

    Answer is on dba.stackexchange

提交回复
热议问题