Connect to mysql from bash

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Connect to mysql from bash

Postby btdrizzle » 24. April 2018 15:08

XAMPP is up and running, I can connect and work with the sql server with phpMyAdmin and it works fine.
I cannot connect to the sql server via bash.
When I type:
mysql -u root I get the error message:
bash: mysql: command not found. . .
Packages providing this file are:
'community-mysql'
'mariadb'
I don't understand... this is the only way I can find to work with the server from the command line. Please help?
btdrizzle
 
Posts: 1
Joined: 24. April 2018 15:00
XAMPP version: 7.2.4-0
Operating System: Fedora 27

Re: Connect to mysql from bash

Postby Nobbie » 24. April 2018 21:29

Enter /opt/lampp/bin/mysql instead of only mysql. Or append /opt/lampp/bin to your PATH. Thats very very basic linux knowlegde.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 26 guests