I can not reset the password and MYSQL problem in setting up secure in PHPMyAdmin

April 29, 2015 2.7k views
PHP MySQL Linux Commands WordPress Apache

Hello dear, I want to reset the password of MYSQL, because even though I know the password generated by the system contained herein** /root/.my.cnf** does not work for nothing, just enter the PHPMyAdmin and more. I've tried everything and can not reset. I've read the tutorial below, I've read the official tutorial mysql also not working. After all, how can I fix this? I try to enter the terminal In terminal type the mysql command *also not enter, but asks for the password of this *error: MySQL ERROR 1045 (28000): Access denied for user 'root' @ 'localhost

https://www.digitalocean.com/community/tutorials/how-to-import-and-export-databases-and-reset-a-root-password-in-mysql

What about creating a layer of security, I did everything to support this tutorial and at the end, when saved and will test displays this error: Webserve 500 internal server error etc etc.

https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-14-04

Who can help I'm immensely grateful. Very Thanks.

1 comment
  • I have a very similar issue, no solution yet. For some reason the skip-tables option doesn't work

2 Answers

This guide should help you to reset your MySQL password by using MySQL's safe mode to update the user details.

If after you do this you continue to see those 500 errors, please review your Apache log in /var/log/apache2/error.log as additional details of this error should be recorded there and will be helpful in diagnosing the problem.

  • Then, after several errors i got it import, but I'm with my doubts because DB had the name of my BLOG.SQL, the DROPLET installed Wrodpress create a DB default with WordPress.SQL name. When I imported it automatically** MERGE?** because it was all mixed up the database, see in the image below

    http://postimg.org/image/9qhyj6ipr/

    How to rename the tables that indicated in RED, I want remove this: wp_696xx5w6nk I do not know how to godaddy created this ...

Ok ryanpq, but still not works... other answer, I am try import by PHPMyAdmin and see the error:

**Erro

Comando SQL:
**

Apagar qualquer tabela wp_696xx5w6nk_bwg_album existente

DROP TABLE IF EXISTS wp_696xx5w6nk_bwg_album ;

1046 - No database selected
Have another answer? Share your knowledge.