-bash: mysql: command not found on wamp 2.5
Posted by: andreea115 (---.4-3.cable.virginm.net)
Date: October 10, 2015 11:17AM

i am trying to log into mysql from my command line.

i went to this directory:

cd c/wamp/bin/mysql/mysql5.6.17/bin

i then did this:

mysql -u root -p

but i got this error message:

-bash: mysql: command not found


would appreciate any advice

Options: ReplyQuote
Re: -bash: mysql: command not found on wamp 2.5
Posted by: Otomatic (Moderator)
Date: October 10, 2015 03:52PM

Hi

It is the same command as given to go to Mysql Console (Wampmanager Icon->Mysql->Mysql Console)
Results of this command:
- 1 - wampmysqld service not started
J:\wamp\bin\mysql\mysql5.6.26\bin>mysql -u root -p
Enter password: ******
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

- 2 - wampmysqld service started
J:\wamp\bin\mysql\mysql5.6.26\bin>mysql -u root -p
Enter password: ******
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.27 MySQL Community Server (GPL)

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: -bash: mysql: command not found on wamp 2.5
Posted by: RiggsFolly (---.as43234.net)
Date: October 10, 2015 04:27PM

The `-bash` bit makes me think you are not doing this from a windows command prompt.

What are you using for your command windows?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.