Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 05-23-2006, 03:50 PM   #1
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Rep: Reputation: 31
installed mysql 5.0 and mysql command not available

I installed mysql from sources; i downloaded a tar.gz and didn't had to run ./configure etc; jsut like that
but I don't know how to create databases? when I type in the shell %mysql -u root

the shell tells me command not found. do I have to unistall it and reinstall it? there are any deb packages to install mysql 5?
thank you in advance.
Old 05-24-2006, 06:40 AM   #2
Registered: May 2006
Location: India
Distribution: Redhat
Posts: 49

Rep: Reputation: 15
Actually after installaion you have to start the mysqld deamon.Check whether mysqld deamon started. The mysql client is also provided in the MYSQL source directory

command: Change your directory to the mysql bin directory in the source(from where u have done ./configure etc).
#./mysqld &

hope it works....
Old 05-24-2006, 05:57 PM   #3
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Original Poster
Rep: Reputation: 31
in fact the issue is that it's not configured int he batch.. anyway yesterday i was making the wrong installation, today I did the right installation and to be able to have a prompt like
i have to go to the directory I installed mysql and type bin/mysql -u root -p

it's there a way to add it to the patch or something like that..
something else, i don't know how to make it on start on debian;. like an script on /etc/init.d/.. i always have to start mysql manually again running to the installation directory which by the way it's on /usr/local/mysql.
thank you in advance.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
Mysql development lib cannot be installed -> need mysql.h bitoiu Linux - Software 2 03-02-2005 12:02 PM
MySQL setup stops at command "./configure --prefix=/usr/local/mysql" k41184 Linux - Software 1 05-20-2004 02:44 PM
MySQL command prompt (/usr/local/mysql missing) sankar555 Linux - Software 3 03-22-2003 12:48 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration