Find the answer to your Linux question:
Results 1 to 4 of 4
Hi I have just done a, almost, default server installation of Redhat 7.3. I tried installing it once with the default server settings and because the machine I am using ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2003
    Posts
    8

    starting mysql


    Hi

    I have just done a, almost, default server installation of Redhat 7.3. I tried installing it once with the default server settings and because the machine I am using is very low spec it crashed on install. After that I did a custom install and pretty much left everything as it was, except I removed a couple of large components like Python, which I knew I wouldn't need and installed MySQL instead of postgres. (Interesting that MySQL wasn't selected for a default server settin but that is off topic here).


    Anyway, I followed the instructions in the MySQL manual and ran...

    [root@mymachine /] mysql_install_db

    that installed all the various tables, no probs, and shows several different messages including...

    "You can start MySQL daemon with
    cd /usr ; /usr/bin/safe_mysqld &"

    I figure that that means change directory to "/usr" and then go "/usr/bin/safe_mysqld &"

    If I do that I get a message..

    "Starting MySQL daemon with databases from /var/lib/mysql
    031006 08:30:00 mysql ended"

    then if I try to run "mysql" I get the message..

    "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
    [1]+ Done /usr/bin/safe_mysqld"

    So, I guess this means MySQL is not running. I am a rank newbie (or perhaps I am just rank) so sorry if this is elementary and I have missed something really obvious.

    thx in advance

  2. #2
    Linux Newbie
    Join Date
    Aug 2001
    Location
    USA, Texas
    Posts
    217
    try running this: /etc/rc.d/init.d/mysqld start

    if that works and you want MySQL to start at boot then do the following:

    chkconfig --add mysqld
    chkconfig --level 35 mysqld on
    [ [ SykkN alloc ] initWithThePowerTo: destroyYouAll ];
    /* Don\'t make me use it! */

  3. #3
    Just Joined!
    Join Date
    Jan 2003
    Posts
    8

    thanks sykkn

    That worked a treat.

    Pardon my ignorance but what did "/etc/rc.d/init.d/mysqld start" actually do?

    Cheers.

  4. #4
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    Starting the mysql-database, all start and stop scripts for all services are located udner /etc/init.d in Redhat.
    Regards

    Andutt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •