MySQL Forums
Forum List  »  Install & Repo

mysql server starts but mysqladmin gives not found error
Posted by: Zulfi Khan
Date: July 31, 2021 05:59PM

Hi,
I deleted mysql from ubuntu 18.04. Now I am trying to install again. I tried the command:
$ sudo apt install mysql-client-core-5.7

The above command worked and ended with:

Preparing to unpack .../mysql-client-core-5.7_5.7.35-0ubuntu0.18.04.1_amd64.deb ...
Unpacking mysql-client-core-5.7 (5.7.35-0ubuntu0.18.04.1) over (5.7.34-0ubuntu0.18.04.1) ...
Setting up mysql-client-core-5.7 (5.7.35-0ubuntu0.18.04.1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) …

But when I tried to install

@lc2530hz:~$ sudo apt install mariadb-client-core-10.1

I got following messages:

The following packages have unmet dependencies:
mariadb-client-core-10.1 : Conflicts: mysql-client-5.7 but 5.7.35-0ubuntu0.18.04.1 is to be installed
mysql-client-5.7 : Depends: mysql-client-core-5.7 but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


However, mysql start command executed:

@lc2530hz:~$ mysql server start
mysql Ver 14.14 Distrib 5.7.35, for Linux (x86_64) using EditLine wrapper
Copyright (c) 2000, 2021, 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.

But I can’t create the password:

@lc2530hz:~$ mysqladmin -u root password NEWPASSWORD

Command 'mysqladmin' not found, but can be installed with:

sudo apt install mysql-client-5.7
sudo apt install mariadb-client-10.1


Please guide me how I can create my account password first time because mysqladmin is not working.

Zulfi.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.