LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-04-2023, 06:29 AM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
How to rerun the phpmyadmin setup script?


I have a Ubuntu 22.04 cloud server. I want to set up phpmyadmin.

I followed the steps here at Digital Ocean but missed the Warning "hit SPACE":

Quote:
Warning: When the prompt appears, “apache2” is highlighted, but not selected. If you do not hit SPACE to select Apache, the installer will not move the necessary files during installation. Hit SPACE, TAB, and then ENTER to select Apache.
I tried to install again using:

Quote:
sudo apt reinstall phpmyadmin php-mbstring php-zip php-gd php-json php-curl
But the setup script does not start in this case.

I do not see phpmyadmin after entering

Quote:
SELECT user,authentication_string,plugin,host FROM mysql.user;
on the mysql command line

Quote:
mysql> SELECT user,authentication_string,plugin,host FROM mysql.user;
+------------------+------------------------------------------------------------------------+-----------------------+-----------+
| user | authentication_string | plugin | host |
+------------------+------------------------------------------------------------------------+-----------------------+-----------+
| debian-sys-maint | $A$005$[IJp1p:#5w{a^"Sm`2;3p6GG3IOsp9Hqc4U4DwyEojoszPAQqGAD56HjJD6mE8 | caching_sha2_password | localhost |
| mysql.infoschema | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED | caching_sha2_password | localhost |
| mysql.session | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED | caching_sha2_password | localhost |
| mysql.sys | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED | caching_sha2_password | localhost |
| pedro | $A$005$_G8L R �%�*b#W?M+8nqHA91BpNt3CPao7uro61RU92vqoXLi4QWEK15A5T8 | caching_sha2_password | localhost |
| root | | auth_socket | localhost |
+------------------+------------------------------------------------------------------------+-----------------------+-----------+
6 rows in set (0.02 sec)

mysql>

Not sure what I should do now. Apache2 is not linked to phpmyadmin, I think.

Any tips please??

Last edited by Pedroski; 11-04-2023 at 06:31 AM.
 
Old 11-05-2023, 05:27 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Code:
dpkg-reconfigure phpmyadmin
 
1 members found this post helpful.
Old 11-07-2023, 03:55 AM   #3
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Thanks, that restarted the set up, at least partially.

But I still don't have phpmyadmin in mysql:

Quote:
pedro@ubuntu:~$ sudo mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 20
Server version: 8.0.35-0ubuntu0.22.04.1 (Ubuntu)

Copyright (c) 2000, 2023, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SELECT user,authentication_string,plugin,host FROM mysql.user;
+------------------+------------------------------------------------------------------------+-----------------------+-----------+
| user | authentication_string | plugin | host |
+------------------+------------------------------------------------------------------------+-----------------------+-----------+
| debian-sys-maint | $A$005$[IJp1p:#5w{a^"Sm`2;3p6GG3IOsp9Hqc4U4DwyEojoszPAQqGAD56HjJD6mE8 | caching_sha2_password | localhost |
| mysql.infoschema | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED | caching_sha2_password | localhost |
| mysql.session | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED | caching_sha2_password | localhost |
| mysql.sys | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED | caching_sha2_password | localhost |
| pedro | $A$005$_G8L R �%�*b#W?M+8nqHA91BpNt3CPao7uro61RU92vqoXLi4QWEK15A5T8 | caching_sha2_password | localhost |
| root | | auth_socket | localhost |
+------------------+------------------------------------------------------------------------+-----------------------+-----------+
6 rows in set (0.00 sec)

mysql>
Maybe I need to run dbconfig-common? That didn't start automatically after:

Quote:
dpkg-reconfigure phpmyadmin
Now where would that be??

I find:

Quote:
pedro@ubuntu:~$ dbconfig-common
dbconfig-common: command not found
pedro@ubuntu:~$ whereis dbconfig-common
dbconfig-common: /etc/dbconfig-common /usr/share/dbconfig-common
pedro@ubuntu:~$ ls -l /etc/dbconfig-common
total 8
-rw------- 1 root root 484 Nov 4 06:08 config
-rw------- 1 root root 3004 Nov 4 06:13 phpmyadmin.conf
pedro@ubuntu:~$ ls -l /usr/share/dbconfig-common
total 16
drwxr-xr-x 3 root root 4096 Nov 4 06:08 data
drwxr-xr-x 2 root root 4096 Nov 4 06:08 dpkg
drwxr-xr-x 2 root root 4096 Nov 4 06:08 internal
drwxr-xr-x 3 root root 4096 Nov 4 06:08 scripts
pedro@ubuntu:~$

Last edited by Pedroski; 11-07-2023 at 05:57 AM.
 
Old 11-07-2023, 09:07 AM   #4
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Maybe this will help? https://docs.phpmyadmin.net/en/latest/setup.html
 
1 members found this post helpful.
Old 11-07-2023, 11:28 AM   #5
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
@uteck

Thanks for your help!

I got there in the end!

I did this:

sudo apt-get remove phpmyadmin
sudo apt-get purge phpmyadmin
sudo apt-get autoremove

Then I followed the instructions from digitalocean again, more carefully.

MySQL or phpMyAdmin, or both are a bit fussy about passwords. I had to retry and enter a more secure password.

Now I can login to my database from the browser normally. In fact, what I had already set up was still there!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash: do not rerun script that fails kenneho Programming 3 02-17-2009 06:20 AM
How to rerun php cli script after crash Black187 Linux - Newbie 1 01-05-2009 05:00 AM
How to rerun network configuration script? pvv Debian 5 09-06-2005 02:12 PM
Want to rerun the network probe from install script rickh Debian 2 05-19-2005 09:57 AM
firewall script run at boot -> no masq, rerun manually -> masq worx Griffon26 Linux - Networking 2 06-24-2002 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration