Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Command ‘mysql’ not found in Ubuntu ?

In this tutorial im going to solve this issue ,The error message “Command ‘mysql’ not found” means that your system cannot find the mysql command. This can happen for a few reasons:

  • MySQL is not installed on your system.
  • MySQL is installed on your system, but the directory containing the mysql binary is not in your system’s path.
  • The mysql command has been renamed or moved to a different location.

Solution :-

apt install mysql-client-core-8.0
sudo apt install mysql-client

This command installs the MySQL client package, which includes additional utilities and libraries.

Once the installation is finished, you can try running mysql again:

root is a username whatever having you put

/opt/lampp/bin/mysql -u root -p

Now root set successfully run below command

CREATE USER 'wizbrand_learning'@'localhost' IDENTIFIED BY '8789';
GRANT ALL PRIVILEGES ON . TO 'wizbrand_learning'@'localhost';
FLUSH PRIVILEGES;

Thanks for learning..👍👍

Hi I am Amit Kumar Thakur Experienced as s Software Developer with a demonstrated history of working in the information technology and services industry. Skilled in HTML, CSS, Bootstrap4, PHP, Laravel-9 , REST API,FB API,Google API, Youtube Api, Bitbucket,Github,Linux and jQuery. Strong engineering professional focused in Computer/Information Technology Administration and Management. Currently my profile is to Software Developer, analyze the requirement, creating frame for web application, coding and maintenance.

Related Posts

How to change MySQL password in Ubuntu ?

In this tutorial we’re going to share how to change MySQL Password in Ubuntu in very easy way. Just go to lampp and puto below code Then…

“Unable to locate package” while trying to install packages with APT

When I try to install any package through the command line, I get an error E: Unable to locate package composer. Error :- Solutions:- Now installed successfully.

Enable compression in apache for improve performance ?

Enabling compression in Apache can significantly reduce the size of data transferred between the server and clients, leading to faster page load times. The most common method…

Implementation of opcode in apache Server for Improve Performance ?

What is opcode ? Opcode in Apache is a way to improve the performance of web applications by caching the compiled bytecode of PHP scripts. When a…

List of Performance Checklist for Apache

What is Apache ? Apache, in the context of web hosting and server software, usually refers to the Apache HTTP Server. Apache is designed to run on…

List of Checklist to improve MySql Query Performance

MySQL is a free and open-source relational database management system (RDBMS). It is one of the most popular database systems in the world, used by millions of…

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x