davy_yg
1 month ago
559
29
General

Install phpmyadmin on linux

Posted 1 month ago by davy_yg

Hello,

I am trying to install phpmyadmin on linux:

ref: https://www.ostechnix.com/install-phpmyadmin-with-lamp-stack-on-ubuntu-18-04-lts/

I get stuck on :

$ mysql -u root -p

[email protected]:~$ mysql -u root -p Enter password: ERROR 1698 (28000): Access denied for user 'root'@'localhost'

I cannot remember setting any password for it.

This also does not work:

ref: https://tableplus.com/blog/2018/11/what-is-the-default-username-password-in-mysql.html

[email protected]@davy-Aspire-E5-476G:~$ sudo /etc/init.d/mysql stop
[ ok ] Stopping mysql (via systemctl): mysql.service.
[email protected]:~$ sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &
[1] 22752

[email protected]:~$ mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld /mysqld.sock' (2)
[1]+  Exit 1                  sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking
:~$ sudo /etc/init.d/mysql stop
[ ok ] Stopping mysql (via systemctl): mysql.service.
[email protected]:~$ sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &
[1] 22752
[email protected]:~$ sudo /etc/init.d/mysql stop
[ ok ] Stopping mysql (via systemctl): mysql.service.
[email protected]:~$ sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &
[1] 22752
[email protected]:~$ mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[1]+  Exit 1                  sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking

[email protected]:~$ mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[1]+  Exit 1                  sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking

Any clue what to do?

Please sign in or create an account to participate in this conversation.