VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Pages: 1 [2]

Author Topic: using MYSQL in VL 5.8  (Read 5484 times)

icedtea

  • Vectorite
  • ***
  • Posts: 142
Re: using MYSQL in VL 5.8
« Reply #15 on: December 17, 2007, 11:16:30 pm »

High likely your service is not running
this can be easily fixed by running

./mysqld_safe --user=mysql &
inside the /bin folder of the mysql directory.
where you can make the user command a user you wish to use.
Since you created your database as root, u'd have to boot it as root however this is UNSAFE, so change the permissions on the database files.

also see
http://vectorlinux.com/wiki/doku.php?id=howtos:lamp
since i am writing a full lamp how to. The last 2 code boxes apply to you.


hi Xeon. . hmm i have no

 /usr/local/mysql/scripts directory... :( is there something wrong?  PLUS also NO mysql dir in the /bin directory
Logged
using VL 5.1 SOHO , 5.8 GOLD

newt

  • Vectorian
  • ****
  • Posts: 1132
Re: using MYSQL in VL 5.8
« Reply #16 on: December 17, 2007, 11:30:05 pm »

give: whereis mysql or whereis mysqld_safe a shot to see the install directory.
Logged

bigpaws

  • Vectorian
  • ****
  • Posts: 1871
Re: using MYSQL in VL 5.8
« Reply #17 on: December 18, 2007, 03:28:22 am »

Apparently something is being missed so lets start
from the beginning. You stated you installed the latest
package. Where did it come from? From there what did
you do to get MySQL running. What tutorials did you
use?

This way there is a starting point to solve the problem.

Bigpaws
Logged

Xeon

  • Vectorite
  • ***
  • Posts: 115
Re: using MYSQL in VL 5.8
« Reply #18 on: December 18, 2007, 08:03:46 am »

bigpaws: from his huge quote i derived he installed the package, ran the mysql_install_db script and tries to change his root password on the mysql server, though he hasn't got his daemon running (missing mysql.sock is just not a spawned daemon.)

To be sure about it though:
icedtea do

pidof mysqld

as root in your console, and see if it gives any numbers back or not.
And as newtor suggested, locate the position of your mysqld_safe executable with his commands.

Xeon.
Logged

icedtea

  • Vectorite
  • ***
  • Posts: 142
Re: using MYSQL in VL 5.8
« Reply #19 on: December 18, 2007, 01:24:11 pm »

1.

$whereis mysql
mysql: /usr/bin/mysql /usr/lib/mysql /usr/include/mysql /usr/share/mysql /usr/man/man1/mysql.1.gz

$whereis mysqld_safe
mysqld_safe: /usr/bin/mysqld_safe /usr/man/man1/mysqld_safe.1.gz


2.

as root

pidof mysql -- blank result

pidof mysqld -- blank result
Logged
using VL 5.1 SOHO , 5.8 GOLD

Xeon

  • Vectorite
  • ***
  • Posts: 115
Re: using MYSQL in VL 5.8
« Reply #20 on: December 18, 2007, 02:25:15 pm »

as root write

mysqld_safe --user=mysql &

paste eventual error messages in here.
Logged

icedtea

  • Vectorite
  • ***
  • Posts: 142
Re: using MYSQL in VL 5.8
« Reply #21 on: December 23, 2007, 10:52:04 pm »

as root write

mysqld_safe --user=mysql &

paste eventual error messages in here.

after the command:


[1] 2964
root:# starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/lib/mysql/vector.linux.net.pid
071224 09:42:37 mysqld ended

(cursor blinking)
Logged
using VL 5.1 SOHO , 5.8 GOLD

newt

  • Vectorian
  • ****
  • Posts: 1132
Re: using MYSQL in VL 5.8
« Reply #22 on: December 24, 2007, 08:19:35 am »

IIRC, that's an ownership problem on the binaries.  Make sure they are owned by root (chown root:root /usr/bin/mysql*) and then try xeon's suggestion again.
Logged

icedtea

  • Vectorite
  • ***
  • Posts: 142
Re: using MYSQL in VL 5.8
« Reply #23 on: December 26, 2007, 11:16:14 pm »

IIRC, that's an ownership problem on the binaries.  Make sure they are owned by root (chown root:root /usr/bin/mysql*) and then try xeon's suggestion again.

hi i did the exact instruction you said. . but still same output that i replied in xeon's suggestion. .
Logged
using VL 5.1 SOHO , 5.8 GOLD
Pages: 1 [2]