Is it OK if I continue my questioning for help in this thread which I created myself?
Or is that too considered spamming?
I have tried to include as much relevant info I could think of in this post...
As I wrote some posts above I seemingly succeeded in installing LAMP using the instructions in the howto page:
Setup LAMP Server on Raspberry Pi 3 – [Updated 2019] Complete DIY Guide
When I wrote that I had managed to bring up the PhpMyAdmin, which I did not get to on my Ubuntu 18.04 attempts.
So I thought I was good.
But today when I wanted to use my RPi4 database system I got into trouble using PhpMyAdmin...
I opened the tab "Databases" in order to create my first user database.
Here the "Create database" function is
disabled and there is a red note saying "
No privileges" below it.
So I tried the command line instead since I have read some solutions on StackOverflow, but:
Code: Select all
$ mysql
ERROR 1045 (28000): Access denied for user 'pi'@'localhost' (using password: NO)
pi@rpi4-test:~ $ mysql -u root
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
pi@rpi4-test:~ $ mysql -u root -p
Enter password:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
pi@rpi4-test:~ $ mysql -u phpmyadmin
ERROR 1045 (28000): Access denied for user 'phpmyadmin'@'localhost' (using password: NO)
pi@rpi4-test:~ $ mysql -u phpmyadmin -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 95
Server version: 10.3.15-MariaDB-1 Raspbian testing-staging
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> SHOW GRANTS FOR 'phpmyadmin'@'localhost';
+-------------------------------------------------------------------------------------------------------------------+
| Grants for phpmyadmin@localhost |
+-------------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'phpmyadmin'@'localhost' IDENTIFIED BY PASSWORD '*BBF4F933A98C952FBD00091541F1098F9C7E53FF' |
| GRANT ALL PRIVILEGES ON `phpmyadmin`.* TO 'phpmyadmin'@'localhost' |
+-------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.000 sec)
Obviously something is not working OK to actually use the newly installed database server via the PhpMyAdmin web interface...
It looks like phpmyadmin has full privileges but still I get the errors when trying to use PhpMyAdmin to create a database...
So since I was able to log on via command line using phpmyadmin user:
Code: Select all
MariaDB [(none)]> SHOW DATABASES;
+--------------------+
| Database |
+--------------------+
| information_schema |
| phpmyadmin |
+--------------------+
2 rows in set (0.001 sec)
MariaDB [(none)]> CREATE DATABASE bossedb;
ERROR 1044 (42000): Access denied for user 'phpmyadmin'@'localhost' to database 'bossedb'
Something regarding permissions is not set correctly, but how do I fix it, please?
And why is the prompt showing this:
Seems like "none" should be the name of the logged on MariaDB user?
Confused, this is my first time setting up a database server on an RPi box, I have successfully built and used about a dozen RPi units for various web related and other purposes not using a database on the RPi...