How can I connect from command line to mysql in Centos?

Alles, was MariaDB und MySQL betrifft, kann hier besprochen werden.

How can I connect from command line to mysql in Centos?

Postby gertel86 » 13. April 2018 06:54

Please I need someone's help, I need to connect to mysql through command lines mysql -u root -p however it is not possible I am working with centos 7 additional eh searched in some forums and eh placed the following command cd / opt / lamp / bin
l localhost bin] # mysql
bash: mysql: don't find the order
gertel86
 
Posts: 1
Joined: 13. April 2018 06:45
XAMPP version: 7.2.4
Operating System: Centos

Re: How can I connect from command line to mysql in Centos?

Postby Nobbie » 13. April 2018 11:00

Instead of simply entering "mysql", enter "./mysql". Or enter the full path "/opt/lampp/bin/mysql" instead. Last not least you also can edit your profile and append /opt/lampp/bin to your PATH variable. Thats all very basic linux knowledge!
Nobbie
 
Posts: 10421
Joined: 09. March 2008 13:04


Return to MariaDB - MySQL

Who is online

Users browsing this forum: No registered users and 1 guest

cron