First of all, you must know the full path of the mysql command or mysqldump command. You can use the find command to find it.
Unless you know the mysql installation path, you can skip this step.
find / -name mysql -print
For example, the path of my mysql is: /usr/local/mysql/bin/mysql, and then map a link to the /usr/bin directory, which is equivalent to creating a link file
ln -fs /usr/local/mysql/bin/mysql /usr/bin
mysqldump is the same, where /usr/local/mysql/ is the installation path of mysql.
- [Solved] Backup mysql8.0 with the mysqldump of mysql5.7 Error
- Mysqldump backup problems got error: 1045, error 1045 (28000), got error: 1449
- MySQL Error: the solution of command not found
- mysqldump unknown table ‘column_statistics’
- Linux error: command not found [How to Solve]
- Solution to empty backup file generated by mysqldump scheduled task
- How to Sovle mysqldump backup Error on the MySQL command line
- [Solved] MYSQL Install and Login Error: Access denied for user ‘ODBC’@’localhost’ (using password: NO)
- CentOS7 Install MYSQL8.0.13 error while loading shared libraries: libaio.so.1
- How to Backup MySQL database regularly