Did you build mysql yourself, or did you install it along with Suse?

If it's installed with suse, start the mysql service via the suse method
(not sure what that is, on RedHat, one would simply say service mysqld
start).
If you built it by installing the binary, then your mysql should be
located in /usr/local/mysql
to start, cd to that folder and say
bin/mysqld_safe &    (for 4.x)
or
bin/safe_mysqld & (for 3.x)

Also, if you installed the binary, make sure the folder that contains
the mysql files ( /usr/local/mysql is a symlink to the actual location)
is owned by mysql user (chown -R mysql.mysql /path/to/files


>From the sounds of things however, it looks like you are trying to use
the version that came with suse.

For that, you normally need to run the mysql_install_db script first,
and then start the mysql daemon. Then you need to run mysqladmin to set
a root password and configure the grants
usually, 
mysqladmin -u root password 'your_root_password_for_mysql'
will set the root password. You will need to restart the mysql daemon
after that.


On Wed, 2003-07-30 at 13:07, D. K. wrote:
> Petre; 
> Running ps -aux i cannot see mysql among listed processes. I checked mysql folders 
> under several 
> directories , they are owned by root. Also mysql start/mysql stop etc. commands dont 
> work producing the 
> same warning "Cant connect.." What can i do more? 
> Thanks 
> Devrim 
>  
> Petre Agenbag <[EMAIL PROTECTED]> schrieb am 28.07.03 08:35:48: 
> >  
> > 1) make sure mysql is running [and as user mysql] do a ps -aux to see. 
> > 2) make sure that the mysql folder and files are owned by mysql (ls -l) 
> >  
> >   
> > On Sun, 2003-07-27 at 10:38, D. K. wrote: 
> > > Hi; 
> > > I have installed suse 8.2 a short while ago and at my first attempt to connect 
> > > mysql (via shell and a 
> perl dbi script) i get following error:  
> > >  
> > > can't connect to mysql server through socjet '/var/lib/mysql/mysql.sock'.  
> > >  
> > > i know this looks like a common error and I am terribly sorry if this kind of 
> > > subject has been posted 
> before but I'll appreciate any urgent help. 
> > > Thanks 
> > > Devrim 
> > >  
> > > ______________________________________________________________________________ 
> > > ComputerBild 15-03 bestaetigt: Den besten Spam-Schutz gibt es bei  
> > > WEB.DE FreeMail - Deutschlands beste E-Mail - http://s.web.de/?mc=021121
> > >  
> >  
>  
> ______________________________________________________________________________
> ComputerBild (15-03) empfiehlt: Der beste Spam-Schutz ist bei
> WEB.DE FreeMail - Deutschlands beste E-Mail - http://s.web.de/?mc=021124
> 


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to