Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Database Server
  • Search

[SOLVED] Access Denied phpMyAdmin

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
limitunknown.com
Posts: 4
Joined: Fri May 26, 2017 2:25 pm

[SOLVED] Access Denied phpMyAdmin
  • Quote

Post by limitunknown.com » Fri May 26, 2017 4:07 pm

Ubuntu 16.04 at Digital Ocrean
Latest VestaCP

https://new.siteviewer.us/phpmyadmin/

Try to log in with username and password after creating database in vesta.

Code: Select all

 #1045 - Access denied for user 'testu'@'localhost' (using password: YES)
[/b]
This also happens when i create new users as well.


This is a new vesta installation and the only things i've done are.

Code: Select all

# Running fixes for phpmyadmin
curl -O -k https://raw.githubusercontent.com/skurudo/phpmyadmin-fixer/master/pma.sh && chmod +x pma.sh && ./pma.sh
Installed configured and activated vesta-lets-encrypt
Last edited by limitunknown.com on Sun May 28, 2017 12:42 am, edited 1 time in total.
Top

limitunknown.com
Posts: 4
Joined: Fri May 26, 2017 2:25 pm

Re: Access Denied phpMyAdmin
  • Quote

Post by limitunknown.com » Sun May 28, 2017 12:42 am

I'm not sure exactly what it was but i found two things.

I have a installer script for ubuntu that sets up my preferred configurations.
I started from scratch installing vesta first and ran that after installing vesta.

Also the password for the user i was creating had a single quote

Code: Select all

'
in it.

Apparently when creating passwords that have single quotes, they aren't escaped.
Doubling single quotes allows you to escape and use them.

Code: Select all

my''pass_109
would let you log in with

Code: Select all

my'pass_109
Top

caustino
Posts: 4
Joined: Fri Feb 21, 2020 6:23 am

Os: Debian 8x
Web: apache + nginx
Re: [SOLVED] Access Denied phpMyAdmin
  • Quote

Post by caustino » Fri Feb 21, 2020 6:31 am

I solved it in this simple way
***** restore user root mysql *****
mysql -u root -p mysql
MariaDB [mysql]> update user set plugin='' where user='root';
MariaDB [mysql]> flush privileges;
MariaDB [mysql]> exit
***********************************

to disable user root again ....
update user set plugin='unix_socket' where user='root';
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Database Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password