Php Myadmin Install

January 27, 2019 1.6k views
PHP MySQL Ubuntu

So i installed LAMP on my server and set everything up, installed phpmyadmin and even secured it. But when i try to log into phpmyadmin to upload my database it doesnt allow me. i keep getting errors “Login without a password is forbidden by configuration (see AllowNoPassword)” “#1698 - Access denied for user ‘root’@'localhost’”

I have tried everything and nothing. I really need to try and get this running by tomorrow. any help appreciated

1 comment
  • Error at the line 24: CREATE DATABASE IF NOT EXISTS techwolv_warehouse DEFAULT CHARACTER SET utf8 COLLATE utf8unicodeci;

    Query: –

    CREATE DATABASE IF NOT EXISTS techwolv_warehouse DEFAULT CHARACTER SET utf8 COLLATE utf8unicodeci

    MySQL: Access denied for user ‘kenboyerinvento’@’%’ to database 'techwolvwarehouse’

    Tried using bigdump and i got that as well

1 Answer

Create your database and credentials via CLI, over SSH or console:

CREATE DATABASE techwolv_warehouse;
GRANT ALL ON techwolv_warehouse.* to kenboyer_invento IDENTIFIED BY 'passwordhere';```

Then log in to phpMyAdmin with the user/pass you used on that second line, browse to the database, and upload the backup to it.

Bypass phpMyAdmin entirely by getting the database dump into the droplet elsewhere, then run something like:

mysql techwolv_warehouse < techwolv_warehouse.sql

Jarland

  • I appreciate the answer, i got it all fixed but now when i try and login it just shows HTTP Error 500 so im not sure what i did wrong lol

Have another answer? Share your knowledge.