D
D
DmitryRise2017-02-12 18:42:59
PHP
DmitryRise, 2017-02-12 18:42:59

How to login to phpmyadmin?

Greetings.
There was a problem with phpmyadmin
Installed LAMP
Apache, mysql, php - plow. Checked.
localhost/phpmyadmin/index.php renders a login form.
He swears at the login / password from the database with the words ' #1698 - Access denied for user 'root'@'localhost' ' Quietly lets into the database. On the forums I read about decommissioning and changing the variable in the config.inc.php file in the line $cfg['Servers'][$i]['AllowNoPassword'] = true; (login without a password is allowed). As already just did not conjure - there is no sense.
mysql -h localhost -u 'nameuser' -ppassword

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DmitryRise, 2017-02-12
@DmitryRise

(laugh). The question is closed.
Go to /etc/dbconfig-common/phpmyadmin.conf Look
for lines

# dbc_dbuser: database user
#       the name of the user who we will use to connect to the database.
dbc_dbuser='phpmyadmin'

# dbc_dbpass: database user password
#       the password to use with the above username when connecting
#       to a database, if one is required
dbc_dbpass='some_pass'

We see the login / password - we go

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question