Page 1 of 1

how to connect mysql database through cmd prompt in linux

Posted: Thu Jul 10, 2008 4:59 am
by manohar
I want to connect mysql database through cmd prompt in linux
any one can u pls give me reply

Re: how to connect mysql database through cmd prompt in linux

Posted: Thu Jul 10, 2008 7:18 am
by Rovas
You shouldn' t have posted this here there is another section for this
Use

Code: Select all

 
service mysqld start then type mysql 
# if it' s working to this
find / -name mysq
#it will show the path directory of MySQL
cd path
cd share/mysql
./mysql.server start
cd ../..
cd bin
mysql 
 
After this you use the sql command USE to access the database.