MySQL Configuration

El_Viejo
Advisor
Advisor
Posts: 80
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Netatmo

Re: MySQL Configuration

Post by El_Viejo » Thu Oct 10, 2019 4:42 pm

I'm sorry I'm still stuck.
I can't find the "Privileges" tab in my phpMyAdmin.
To access I use:

Code: Select all

user name = phpmyadmin
password = yomismo
In the different installations I've done (no less than four) using the command sudo

Code: Select all

apt-get install phpmyadmin
and, I only chose Apache2, I said yes to dbconfig-common and set the password to "yomismo". It didn't give me the option to choose a username.
Perhaps I could run this command

Code: Select all

GRANT ALL PRIVILEGES ON php-myadmin.* TO 'javier'@localhost IDENTIFIED BY 'viva';
But where is the tab for granting privileges?
Attachments
phpmyadmin_01.PNG
phpmyadmin_01.PNG (42.25 KiB) Viewed 4700 times

User avatar
LOBWX
Forecaster
Forecaster
Posts: 104
Joined: Sun Mar 11, 2018 6:43 pm
Location: Los Osos, CA
Station model: Ambient WS 1401-IP
Software: MeteoBridge
Contact:

Re: MySQL Configuration

Post by LOBWX » Thu Oct 10, 2019 4:55 pm

User Accounts >> Edit Privilege's >> Select All >> Go Button to save. it's at the bottom right side you may have to scroll to see it.
Just BE NICE! That's all it takes to be a decent human...

El_Viejo
Advisor
Advisor
Posts: 80
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Netatmo

Re: MySQL Configuration

Post by El_Viejo » Thu Oct 10, 2019 5:23 pm

I must be blind, but I am not able to see "User accounts". Would it be possible to use the MariaDB terminal?
The biblical character Job was an apprentice compared to his patience.
Thank you very much.
Attachments
phpmyadmin_02.PNG
phpmyadmin_02.PNG (58.29 KiB) Viewed 4695 times

User avatar
LOBWX
Forecaster
Forecaster
Posts: 104
Joined: Sun Mar 11, 2018 6:43 pm
Location: Los Osos, CA
Station model: Ambient WS 1401-IP
Software: MeteoBridge
Contact:

Re: MySQL Configuration

Post by LOBWX » Fri Oct 11, 2019 4:13 pm

You should see it here. If not, that user account you login with does not have enough privileges probably.

myphpadmin.JPG
myphpadmin.JPG (56.67 KiB) Viewed 4691 times
Just BE NICE! That's all it takes to be a decent human...

El_Viejo
Advisor
Advisor
Posts: 80
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Netatmo

Re: MySQL Configuration

Post by El_Viejo » Fri Oct 11, 2019 5:50 pm

I think I made it.
From the MariaDB terminal I have executed these commands

Code: Select all

grant all privileges on *.* to 'javier'@'localhost' with grant option;
flush privileges;
Now, miraculously, I get the Users tab and the ability to edit privileges.
I'm so happy that I haven't made the necessary checks yet. :D :D :lol: :lol:
I will inform you of the results when I do all the checks rigorously.
Thank you very much.

El_Viejo
Advisor
Advisor
Posts: 80
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Netatmo

Re: MySQL Configuration

Post by El_Viejo » Fri Oct 11, 2019 6:13 pm

Here's the proof.
Tomorrow I will check that in the MySQL section of the template the check is correct.
It is wonderful to find people like you, willing to dedicate their time to help inexperienced people like me.
My knowledge of Linux, web servers and MySQL is very limited. In addition, due to my age (78 years) I have lost mental agility.
Attachments
phpmyadmin_04.PNG
phpmyadmin_04.PNG (43.81 KiB) Viewed 4686 times

El_Viejo
Advisor
Advisor
Posts: 80
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Netatmo

Re: MySQL Configuration

Post by El_Viejo » Sat Oct 12, 2019 9:45 am

As they say in Spanish "my joy at a well" (mi gozo en un pozo).
When checking MySQL in the main configuration, again, an error appears.

"Error: Unable to connect to MySQL.
Debugging error number: 2002.
Debugging error: php-network-getaddresses: getaddrinfo failed: Name or service not know".


I'll try again doing a clean installation in another RPi.
Thanks.

staze
Observer
Observer
Posts: 32
Joined: Thu Nov 15, 2018 11:39 pm
Location: Oregon
Station model: Davis Vantage Vue
Software: Meteobridge Nano SD
Contact:

Re: MySQL Configuration

Post by staze » Sun Oct 13, 2019 1:11 am

slight tangent, but you want to make sure database ends up MyISAM and not InnoDB. Meteotemplate uses non-numbers for the primary key, and InnoDB hates it... inserts take multiple tens of seconds vs MyISAM which doesn't seem to care, and does normal insert speeds (less than a second).

El_Viejo
Advisor
Advisor
Posts: 80
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Netatmo

Re: MySQL Configuration

Post by El_Viejo » Thu Oct 17, 2019 7:42 pm

I finally made it.
The error was to write, Host address = /localhost/
The correct spelling is, Host address = localhost
In this way the message has been: "Success: A proper connection to MySQL ..."
Many thanks.
:D :P :D :lol: :lol:

Post Reply