How can I run php from the command line?

Thanks,
Rob Gillen

Clipart Downloads
http://www.GifArt.com
  ----- Original Message ----- 
  From: Tyler Lane 
  To: Gabriel Peugnet 
  Cc: [EMAIL PROTECTED] 
  Sent: Tuesday, October 14, 2003 5:31 PM
  Subject: Re: [PHP-DB] Can't conect with mysql_connect(), please help.


  On Tue, 2003-10-14 at 15:23, Gabriel Peugnet wrote:
  > My site is hosted in a remote server.
  You should contact your remote hosting company and have them help you
  get mysql running.

  > I can't find /etc/init.d/mysqld
  > /etc does exists but /etc/init.d doesn't
  > 
  > What I found is
  > /usr/bin/msql2mysql
  > /usr/bin/mysql_config
  > /usr/bin/mysql
  > /usr/bin/mysql_install_db
  > /usr/bin/mysql_find_rows
  > ...
  > and a lot of files like /usr/bin/mysql....
  > 
  > The one that seems to be useful is
  > /usr/lib/php4/mysql.so
  > it's the socket, isn't?
  > 
  > I guess that running /etc/init.d/mysqld start is kind of command line
  > executing
  > So, how can I start mysql from inside a php script?
  > 
  > Thanks again.
  > Gabriel.
  > 
  > 
  > "Joe Nilson Zegarra Galvez" <[EMAIL PROTECTED]> escribi en el mensaje
  > news:[EMAIL PROTECTED]
  > > You must start your mysql server :
  > >
  > > do it:
  > >
  > > /etc/init.d/mysqld start
  > >
  > > and when you read the line
  > >
  > > mysql start........ [OK]
  > >
  > > your problem will be fix ;)
  > >
  > > Regards
  > >
  > > Nilson
  > >
  > > Gabriel Peugnet dijo:
  > > >       phpinfo() says:
  > > >
  > > >       MySQL Support         enabled
  > > >
  > > >       MYSQL_SOCKET     /var/lib/mysql/mysql.sock
  > > >
  > > > but in fact the file /var/lib/mysql/mysql.sock doesn't exists.
  > > >
  > > > So I understand that the first step is to check the configuration of
  > > > MySQL,
  > > > is it?
  > > >
  > > >
  > > > "Dan Brunner" <[EMAIL PROTECTED]> escribi en el mensaje
  > > > news:[EMAIL PROTECTED]
  > > >> Hello!!
  > > >>
  > > >> Does that file "/var/lib/mysql/mysql.sock" exist?!!?!?
  > > >>
  > > >> Check to make sure mysql is running.
  > > >>
  > > >>
  > > >>
  > > >> Dan
  > > >>
  > > >>
  > > >> On Oct 14, 2003, at 4:34 PM, [EMAIL PROTECTED] wrote:
  > > >>
  > > >> > I'm starting to use MySQL, well, trying to, and I get the next
  > > >> message:
  > > >> >
  > > >> > Warning: mysql_connect(): Can't connect to local MySQL server through
  > > >> > socket
  > > >> > '/var/lib/mysql/mysql.sock' (2)
  > > >> >
  > > >> > The manual says that mysql_connect() can be called without arguments.
  > > >> > That's
  > > >> > what I'm doing.
  > > >> >
  > > >> > What's wrong?
  > > >> >
  > > >> > Thanks,
  > > >> > Gabriel.
  > > >> >
  > > >> > --
  > > >> > PHP Database Mailing List (http://www.php.net/)
  > > >> > To unsubscribe, visit: http://www.php.net/unsub.php
  > > >> >
  > > >
  > > > --
  > > > PHP Database Mailing List (http://www.php.net/)
  > > > To unsubscribe, visit: http://www.php.net/unsub.php
  > > >
  > >
  > >
  > > -------------------------
  > > Joe Nilson Zegarra Galvez
  > >    Sistemas Kola Real
  > >  Telefax : 0051-54-256658
  > >   Movil: 0051-54-9603244
  -- 
  Tyler Lane <[EMAIL PROTECTED]>
  Lyrical Communications

  -- 
  PHP Database Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to